Skip to contentSkip to conversation

better document sun ID PROM contents

PATCH In review Robert Reif 2 participants 2 messages Mar 22, 2009 – Mar 23, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 better document sun ID PROM contents

firmware_abi.h +7 -5
Index: hw/firmware_abi.h
===================================================================
@@ -43,12 +43,14 @@
 }
 
 /* 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
#1 lore raw
Quoted 1 line · Robert Reif

Needs a signed-off-by.

Regards,

Anthony Liguori