Commit 64a7fde8e85fbadb0dadee6ed1c293cd86f5fb29

Authored by blueswir1
1 parent 7403b14e

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
Showing 1 changed file with 7 additions and 5 deletions
hw/firmware_abi.h
... ... @@ -43,12 +43,14 @@ OpenBIOS_set_var(uint8_t *nvram, uint32_t addr, const char *str)
43 43 }
44 44  
45 45 /* Sun IDPROM structure at the end of NVRAM */
  46 +/* from http://www.squirrel.com/squirrel/sun-nvram-hostid.faq.html */
46 47 struct Sun_nvram {
47   - uint8_t type;
48   - uint8_t machine_id;
49   - uint8_t macaddr[6];
50   - uint8_t unused[7];
51   - uint8_t checksum;
  48 + uint8_t type; /* always 01 */
  49 + uint8_t machine_id; /* first byte of host id (machine type) */
  50 + uint8_t macaddr[6]; /* 6 byte ethernet address (first 3 bytes 08, 00, 20) */
  51 + uint8_t date[4]; /* date of manufacture */
  52 + uint8_t hostid[3]; /* remaining 3 bytes of host id (serial number) */
  53 + uint8_t checksum; /* bitwise xor of previous bytes */
52 54 };
53 55  
54 56 static inline void
... ...