summary refs log tree commit diff stats
path: root/hw/eepro100.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2010-04-06 13:44:04 +0200
committerMichael S. Tsirkin <mst@redhat.com>2010-04-06 15:32:28 +0300
commitdb667a1205587d7b5123330f1f0dc506a9b06459 (patch)
tree2111243c5e780427662508aa0508ccf6c8d273f1 /hw/eepro100.c
parent558c86345a8bacd8c763a9184baa169362fe3a43 (diff)
downloadfocaccia-qemu-db667a1205587d7b5123330f1f0dc506a9b06459.tar.gz
focaccia-qemu-db667a1205587d7b5123330f1f0dc506a9b06459.zip
eepro100: Add new device variant i82801
This ethernet device is used in Toshiba Tecra 8200 notebooks.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/eepro100.c')
-rw-r--r--hw/eepro100.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/hw/eepro100.c b/hw/eepro100.c
index 9f63893887..e74d3bb108 100644
--- a/hw/eepro100.c
+++ b/hw/eepro100.c
@@ -87,6 +87,7 @@
 #define i82559C         0x82559c
 #define i82559ER        0x82559e
 #define i82562          0x82562
+#define i82801          0x82801
 
 /* Use 64 word EEPROM. TODO: could be a runtime option. */
 #define EEPROM_SIZE     64
@@ -505,6 +506,7 @@ static void e100_pci_reset(EEPRO100State * s, E100PCIDeviceInfo *e100_device)
     case i82559B:
     case i82559ER:
     case i82562:
+    case i82801:
         break;
     case i82559C:
 #if EEPROM_SIZE > 0
@@ -2013,6 +2015,16 @@ static E100PCIDeviceInfo e100_devices[] = {
         .stats_size = 80,
         .has_extended_tcb_support = true,
         .power_management = true,
+    },{
+        /* Toshiba Tecra 8200. */
+        .pci.qdev.name = "i82801",
+        .pci.qdev.desc = "Intel i82801 Ethernet",
+        .device = i82801,
+        .device_id = 0x2449,
+        .revision = 0x03,
+        .stats_size = 80,
+        .has_extended_tcb_support = true,
+        .power_management = true,
     }
 };
 
@@ -2033,6 +2045,9 @@ static void eepro100_register_devices(void)
             case PCI_DEVICE_ID_INTEL_82557:
                 pci_dev->romfile = "gpxe-eepro100-80861229.rom";
                 break;
+            case 0x2449:
+                pci_dev->romfile = "gpxe-eepro100-80862449.rom";
+                break;
         }
         pci_dev->init = e100_nic_init;
         pci_dev->exit = pci_nic_uninit;