qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT f4e94df] Set revision in eeprom correctly for 825


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT f4e94df] Set revision in eeprom correctly for 82557 versions.
Date: Mon, 05 Oct 2009 14:53:35 -0000

From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= <address@hidden>

This is necessary to make FreeBSD recognize the device as 82557 - otherwise its
driver will use unsupported features and fail to work.

Signed-off-by: Reimar Döffinger <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/hw/eepro100.c b/hw/eepro100.c
index fa129e6..2d81eb9 100644
--- a/hw/eepro100.c
+++ b/hw/eepro100.c
@@ -502,6 +502,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];




reply via email to

[Prev in Thread] Current Thread [Next in Thread]