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)
|
||||
{
|
||||
uint32_t version, *regs;
|
||||
@@ -335,6 +335,8 @@ ob_eccmemctl_init(void)
|
||||
fword("property");
|
||||
|
||||
fword("finish-device");
|
||||
|
||||
return version;
|
||||
}
|
||||
|
||||
static unsigned char *nvram;
|
||||
@@ -803,6 +805,9 @@ ob_nvram_init(uint64_t base, uint64_t offset)
|
||||
ob_eccmemctl_init();
|
||||
break;
|
||||
case 0x72:
|
||||
switch (ob_eccmemctl_init()) {
|
||||
default:
|
||||
case 0x10000000:
|
||||
push_str("SPARCstation 10 (1 X 390Z55)");
|
||||
fword("encode-string");
|
||||
push_str("banner-name");
|
||||
@@ -815,7 +820,22 @@ ob_nvram_init(uint64_t base, uint64_t offset)
|
||||
fword("encode-string");
|
||||
push_str("name");
|
||||
fword("property");
|
||||
ob_eccmemctl_init();
|
||||
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;
|
||||
case 0x80:
|
||||
push_str("SPARCstation 5");
|
||||
|
||||
Reference in New Issue
Block a user