]> xenbits.xensource.com Git - qemu-xen-4.1-testing.git/commitdiff
Set subsystem vendor/device for ne2k device model.
authorKamala Narasimhan <kamala.narasimhan@citrix.com>
Fri, 28 Mar 2008 16:11:11 +0000 (16:11 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 12 May 2008 11:20:10 +0000 (12:20 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Cross-ported from xen-unstable changeset
 8cc1ed987d5f726c4a57325b03e71f4b18b52525

hw/ne2000.c

index 44f30c2afbbeaaf3dae137908a690994ea41bffc..2ae140859dcfcaf80d6a6f8d6e50c92565a6c557 100644 (file)
@@ -802,6 +802,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,