mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Add support for SPARCstation 20 machine type
git-svn-id: svn://coreboot.org/openbios/openbios-devel@181 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -296,7 +296,7 @@ ob_zs_init(uint64_t base, uint64_t offset, int intr, int slave, int keyboard)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static uint32_t
|
||||||
ob_eccmemctl_init(void)
|
ob_eccmemctl_init(void)
|
||||||
{
|
{
|
||||||
uint32_t version, *regs;
|
uint32_t version, *regs;
|
||||||
@@ -335,6 +335,8 @@ ob_eccmemctl_init(void)
|
|||||||
fword("property");
|
fword("property");
|
||||||
|
|
||||||
fword("finish-device");
|
fword("finish-device");
|
||||||
|
|
||||||
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned char *nvram;
|
static unsigned char *nvram;
|
||||||
@@ -803,19 +805,37 @@ ob_nvram_init(uint64_t base, uint64_t offset)
|
|||||||
ob_eccmemctl_init();
|
ob_eccmemctl_init();
|
||||||
break;
|
break;
|
||||||
case 0x72:
|
case 0x72:
|
||||||
push_str("SPARCstation 10 (1 X 390Z55)");
|
switch (ob_eccmemctl_init()) {
|
||||||
fword("encode-string");
|
default:
|
||||||
push_str("banner-name");
|
case 0x10000000:
|
||||||
fword("property");
|
push_str("SPARCstation 10 (1 X 390Z55)");
|
||||||
push_str("SUNW,S10,501-2365");
|
fword("encode-string");
|
||||||
fword("encode-string");
|
push_str("banner-name");
|
||||||
push_str("model");
|
fword("property");
|
||||||
fword("property");
|
push_str("SUNW,S10,501-2365");
|
||||||
push_str("SUNW,SPARCstation-10");
|
fword("encode-string");
|
||||||
fword("encode-string");
|
push_str("model");
|
||||||
push_str("name");
|
fword("property");
|
||||||
fword("property");
|
push_str("SUNW,SPARCstation-10");
|
||||||
ob_eccmemctl_init();
|
fword("encode-string");
|
||||||
|
push_str("name");
|
||||||
|
fword("property");
|
||||||
|
break;
|
||||||
|
case 0x20000000:
|
||||||
|
push_str("SPARCstation 20 (1 X 390Z55)");
|
||||||
|
fword("encode-string");
|
||||||
|
push_str("banner-name");
|
||||||
|
fword("property");
|
||||||
|
push_str("SUNW,S20,501-2324");
|
||||||
|
fword("encode-string");
|
||||||
|
push_str("model");
|
||||||
|
fword("property");
|
||||||
|
push_str("SUNW,SPARCstation-20");
|
||||||
|
fword("encode-string");
|
||||||
|
push_str("name");
|
||||||
|
fword("property");
|
||||||
|
break;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 0x80:
|
case 0x80:
|
||||||
push_str("SPARCstation 5");
|
push_str("SPARCstation 5");
|
||||||
|
|||||||
Reference in New Issue
Block a user