qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= <Reimar.Doeffinger@gmx.de>
To: qemu-devel@nongnu.org
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.
Date: Sat, 12 Sep 2009 15:58:12 +0200	[thread overview]
Message-ID: <20090912135812.GA15043@1und1.de> (raw)

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
---
 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

             reply	other threads:[~2009-09-12 13:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-12 13:58 =?UTF-8?q?Reimar=20D=C3=B6ffinger?= [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-09-12 13:42 [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 =?UTF-8?q?Reimar=20D=C3=B6ffinger?=

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090912135812.GA15043@1und1.de \
    --to=reimar.doeffinger@gmx.de \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).