aboutsummaryrefslogtreecommitdiff
path: root/hw/firmware_abi.h
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-28 16:17:50 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-28 16:17:50 +0000
commit64a7fde8e85fbadb0dadee6ed1c293cd86f5fb29 (patch)
tree5dd2c90eeba875cb66c0c3b215be1657d51a8f66 /hw/firmware_abi.h
parent7403b14eeb4670d54497284b110ca3e3be4a99a4 (diff)
Document sun ID PROM contents
Signed-off-by: Robert Reif <reif@earthlink.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6894 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/firmware_abi.h')
-rw-r--r--hw/firmware_abi.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/hw/firmware_abi.h b/hw/firmware_abi.h
index 54702b290e..5e6e5d4d34 100644
--- a/hw/firmware_abi.h
+++ b/hw/firmware_abi.h
@@ -43,12 +43,14 @@ OpenBIOS_set_var(uint8_t *nvram, uint32_t addr, const char *str)
}
/* Sun IDPROM structure at the end of NVRAM */
+/* from http://www.squirrel.com/squirrel/sun-nvram-hostid.faq.html */
struct Sun_nvram {
- uint8_t type;
- uint8_t machine_id;
- uint8_t macaddr[6];
- uint8_t unused[7];
- uint8_t checksum;
+ uint8_t type; /* always 01 */
+ uint8_t machine_id; /* first byte of host id (machine type) */
+ uint8_t macaddr[6]; /* 6 byte ethernet address (first 3 bytes 08, 00, 20) */
+ uint8_t date[4]; /* date of manufacture */
+ uint8_t hostid[3]; /* remaining 3 bytes of host id (serial number) */
+ uint8_t checksum; /* bitwise xor of previous bytes */
};
static inline void