qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6894] Document sun ID PROM contents
Date: Sat, 28 Mar 2009 16:17:51 +0000	[thread overview]
Message-ID: <E1LnbEF-0005Eb-HN@cvs.savannah.gnu.org> (raw)

Revision: 6894
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6894
Author:   blueswir1
Date:     2009-03-28 16:17:50 +0000 (Sat, 28 Mar 2009)
Log Message:
-----------
Document sun ID PROM contents

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

Modified Paths:
--------------
    trunk/hw/firmware_abi.h

Modified: trunk/hw/firmware_abi.h
===================================================================
--- trunk/hw/firmware_abi.h	2009-03-28 16:11:25 UTC (rev 6893)
+++ trunk/hw/firmware_abi.h	2009-03-28 16:17:50 UTC (rev 6894)
@@ -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

                 reply	other threads:[~2009-03-28 16:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1LnbEF-0005Eb-HN@cvs.savannah.gnu.org \
    --to=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).