From patchwork Sat Sep 12 13:58:12 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Reimar_D=C3=B6ffinger?= X-Patchwork-Id: 33527 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id 69D63B6F1F for ; Sat, 12 Sep 2009 23:59:04 +1000 (EST) Received: from localhost ([127.0.0.1]:33620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmT80-0001R3-VW for incoming@patchwork.ozlabs.org; Sat, 12 Sep 2009 09:59:00 -0400 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 Received: (qmail invoked by alias); 12 Sep 2009 13:58:15 -0000 Received: from p5B134C78.dip.t-dialin.net (EHLO localhost) [91.19.76.120] by mail.gmx.net (mp071) with SMTP; 12 Sep 2009 15:58:15 +0200 X-Authenticated: #11956158 X-Provags-ID: V01U2FsdGVkX18T28hpggITg6PT/ObbdhB7hmNFKB1ORF7WKhOesd 9Xy7BNaxwebqsv Date: Sat, 12 Sep 2009 15:58:12 +0200 From: =?iso-8859-1?B?PT9VVEYtOD9xP1JlaW1hcj0yMEQ9QzM9QjZmZmluZ2VyPz0=?= To: qemu-devel@nongnu.org Message-ID: <20090912135812.GA15043@1und1.de> Mail-Followup-To: qemu-devel@nongnu.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.61 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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];