Revision 64a7fde8 hw/firmware_abi.h
b/hw/firmware_abi.h | ||
---|---|---|
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 |
Also available in: Unified diff