qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] document sun ID PROM contents
@ 2009-03-26 23:55 Robert Reif
  2009-03-28 16:18 ` Blue Swirl
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Reif @ 2009-03-26 23:55 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 48 bytes --]

Signed-off-by: Robert Reif <reif@earthlink.net>

[-- Attachment #2: idprom.diff.txt --]
[-- Type: text/plain, Size: 853 bytes --]

Index: hw/firmware_abi.h
===================================================================
--- hw/firmware_abi.h	(revision 6777)
+++ hw/firmware_abi.h	(working copy)
@@ -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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] document sun ID PROM contents
  2009-03-26 23:55 [Qemu-devel] [PATCH] document sun ID PROM contents Robert Reif
@ 2009-03-28 16:18 ` Blue Swirl
  0 siblings, 0 replies; 2+ messages in thread
From: Blue Swirl @ 2009-03-28 16:18 UTC (permalink / raw)
  To: qemu-devel

On 3/27/09, Robert Reif <reif@earthlink.net> wrote:
> Signed-off-by: Robert Reif <reif@earthlink.net>

Thanks, applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-28 16:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-26 23:55 [Qemu-devel] [PATCH] document sun ID PROM contents Robert Reif
2009-03-28 16:18 ` Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).