From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmT7O-0001Qh-PK for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:58:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmT7K-0001OO-Ag for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:58:22 -0400 Received: from [199.232.76.173] (port=53268 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmT7K-0001OE-7J for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:58:18 -0400 Received: from mail.gmx.net ([213.165.64.20]:48616) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MmT7J-0003CM-JJ for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:58:17 -0400 Date: Sat, 12 Sep 2009 15:58:12 +0200 From: =?iso-8859-1?B?PT9VVEYtOD9xP1JlaW1hcj0yMEQ9QzM9QjZmZmluZ2VyPz0=?= Message-ID: <20090912135812.GA15043@1und1.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH] Set revision in eeprom correctly for 82557 versions. This is necessary to make FreeBSD recognize the device as 82557 - otherwise its driver will use unsupported features and fail to work. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Reimar Döffinger --- hw/eepro100.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/eepro100.c b/hw/eepro100.c index f930ccd..e1341af 100644 --- a/hw/eepro100.c +++ b/hw/eepro100.c @@ -498,6 +498,8 @@ static void nic_selective_reset(EEPRO100State * s) //~ eeprom93xx_reset(s->eeprom); memcpy(eeprom_contents, s->macaddr, 6); eeprom_contents[0xa] = 0x4000; + if (s->device == i82557B || s->device == i82557C) + eeprom_contents[5] = 0x0100; uint16_t sum = 0; for (i = 0; i < EEPROM_SIZE - 1; i++) { sum += eeprom_contents[i]; -- 1.6.4.2