From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LmzPm-0006rI-Of for qemu-devel@nongnu.org; Thu, 26 Mar 2009 19:55:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LmzPi-0006qs-5W for qemu-devel@nongnu.org; Thu, 26 Mar 2009 19:55:14 -0400 Received: from [199.232.76.173] (port=38213 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LmzPh-0006qn-TV for qemu-devel@nongnu.org; Thu, 26 Mar 2009 19:55:09 -0400 Received: from pop-gadwall.atl.sa.earthlink.net ([207.69.195.61]:46840) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LmzPh-0008Ad-Iu for qemu-devel@nongnu.org; Thu, 26 Mar 2009 19:55:09 -0400 Received: from user-142h2k8.cable.mindspring.com ([72.40.138.136] helo=[192.168.0.90]) by pop-gadwall.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1LmzPg-0000Gz-00 for qemu-devel@nongnu.org; Thu, 26 Mar 2009 19:55:08 -0400 Message-ID: <49CC15DC.6070409@earthlink.net> Date: Thu, 26 Mar 2009 19:55:08 -0400 From: Robert Reif MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090705010408060008010804" Subject: [Qemu-devel] [PATCH] document sun ID PROM contents Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------090705010408060008010804 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Signed-off-by: Robert Reif --------------090705010408060008010804 Content-Type: text/plain; name="idprom.diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="idprom.diff.txt" 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 --------------090705010408060008010804--