ia64/xen-unstable

changeset 17243:8cc1ed987d5f

ioemu: Set subsystem vendor/device for ne2k device model.
From: Kamala Narasimhan <kamala.narasimhan@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 18 13:08:30 2008 +0000 (2008-03-18)
parents cbb0dffdc07a
children 2b3ab5377dbb
files tools/ioemu/hw/ne2000.c
line diff
     1.1 --- a/tools/ioemu/hw/ne2000.c	Tue Mar 18 11:47:58 2008 +0000
     1.2 +++ b/tools/ioemu/hw/ne2000.c	Tue Mar 18 13:08:30 2008 +0000
     1.3 @@ -834,6 +834,10 @@ void pci_ne2000_init(PCIBus *bus, NICInf
     1.4      pci_conf[0x0a] = 0x00; // ethernet network controller 
     1.5      pci_conf[0x0b] = 0x02;
     1.6      pci_conf[0x0e] = 0x00; // header_type
     1.7 +    pci_conf[0x2c] = 0x53; /* subsystem vendor: XenSource */
     1.8 +    pci_conf[0x2d] = 0x58;
     1.9 +    pci_conf[0x2e] = 0x01; /* subsystem device */
    1.10 +    pci_conf[0x2f] = 0x00;
    1.11      pci_conf[0x3d] = 1; // interrupt pin 0
    1.12      
    1.13      pci_register_io_region(&d->dev, 0, 0x100,