From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LlWQG-0004sg-4d for qemu-devel@nongnu.org; Sun, 22 Mar 2009 18:45:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LlWQA-0004rw-QG for qemu-devel@nongnu.org; Sun, 22 Mar 2009 18:45:38 -0400 Received: from [199.232.76.173] (port=44863 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LlWQA-0004rt-Jm for qemu-devel@nongnu.org; Sun, 22 Mar 2009 18:45:34 -0400 Received: from pop-knobcone.atl.sa.earthlink.net ([207.69.195.64]:50004) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LlWQA-0000Q2-BM for qemu-devel@nongnu.org; Sun, 22 Mar 2009 18:45:34 -0400 Received: from user-142h2k8.cable.mindspring.com ([72.40.138.136] helo=[192.168.0.90]) by pop-knobcone.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1LlWQ7-0007ZI-00 for qemu-devel@nongnu.org; Sun, 22 Mar 2009 18:45:31 -0400 Message-ID: <49C6BF8A.6090807@earthlink.net> Date: Sun, 22 Mar 2009 18:45:30 -0400 From: Robert Reif MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090406000302050100010703" Subject: [Qemu-devel] [PATCH] better 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. --------------090406000302050100010703 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit --------------090406000302050100010703 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 --------------090406000302050100010703--