From patchwork Sat Sep 12 13:42:01 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: 33525 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 93D89B7B65 for ; Sat, 12 Sep 2009 23:45:36 +1000 (EST) Received: from localhost ([127.0.0.1]:43757 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmSuz-0002vu-Tz for incoming@patchwork.ozlabs.org; Sat, 12 Sep 2009 09:45:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmSrj-0001cB-PT for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:42:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmSrf-0001ZR-5J for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:42:11 -0400 Received: from [199.232.76.173] (port=52780 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmSrf-0001ZL-0Q for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:42:07 -0400 Received: from mail.gmx.net ([213.165.64.20]:47128) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MmSre-0000Dw-Aj for qemu-devel@nongnu.org; Sat, 12 Sep 2009 09:42:06 -0400 Received: (qmail invoked by alias); 12 Sep 2009 13:42:04 -0000 Received: from p5B134C78.dip.t-dialin.net (EHLO localhost) [91.19.76.120] by mail.gmx.net (mp041) with SMTP; 12 Sep 2009 15:42:04 +0200 X-Authenticated: #11956158 X-Provags-ID: V01U2FsdGVkX18o3g03+z8oJhvJfk8alW30FuecE/ENlqR/+rKP3o QY3EShQEs+zZzD Date: Sat, 12 Sep 2009 15:42:01 +0200 From: =?iso-8859-1?B?PT9VVEYtOD9xP1JlaW1hcj0yMEQ9QzM9QjZmZmluZ2VyPz0=?= To: qemu-devel@nongnu.org Message-ID: <20090912134201.GB14651@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: GNU/Linux 2.6 (newer, 3) 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];