]> xenbits.xensource.com Git - xen.git/commitdiff
ioemu: Set subsystem vendor/device for ne2k device model.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 18 Mar 2008 13:08:30 +0000 (13:08 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 18 Mar 2008 13:08:30 +0000 (13:08 +0000)
From: Kamala Narasimhan <kamala.narasimhan@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/ioemu/hw/ne2000.c

index 82168c020d559b6db80b84d4242bc8bb674bcf64..89126a875f3f4bdbcc2e8abd1200d5826a187b8b 100644 (file)
@@ -834,6 +834,10 @@ void pci_ne2000_init(PCIBus *bus, NICInfo *nd, int devfn)
     pci_conf[0x0a] = 0x00; // ethernet network controller 
     pci_conf[0x0b] = 0x02;
     pci_conf[0x0e] = 0x00; // header_type
+    pci_conf[0x2c] = 0x53; /* subsystem vendor: XenSource */
+    pci_conf[0x2d] = 0x58;
+    pci_conf[0x2e] = 0x01; /* subsystem device */
+    pci_conf[0x2f] = 0x00;
     pci_conf[0x3d] = 1; // interrupt pin 0
     
     pci_register_io_region(&d->dev, 0, 0x100,