]> Git Repo - qemu.git/blobdiff - hw/firmware_abi.h
net: reorganize headers
[qemu.git] / hw / firmware_abi.h
index 54702b290e53630be3b6bf06126df084f240356b..5e6e5d4d34d835aa7c69ec387828087f8de935b3 100644 (file)
@@ -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
This page took 0.025094 seconds and 4 git commands to generate.