diff options
author | Michael S. Tsirkin | 2009-12-10 14:42:56 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2009-12-23 15:35:00 +0100 |
commit | e6c4cfd50327d730e4c0cfd6ece43e7b59224acd (patch) | |
tree | 5721c276665dc32ca457afa63c00236853b39d32 /hw/ne2000.c | |
parent | e1000: switch to symbolic names for pci registers (diff) | |
download | qemu-e6c4cfd50327d730e4c0cfd6ece43e7b59224acd.tar.gz qemu-e6c4cfd50327d730e4c0cfd6ece43e7b59224acd.tar.xz qemu-e6c4cfd50327d730e4c0cfd6ece43e7b59224acd.zip |
ne2000: switch to symbolic names for pci registers
No functional changes. I verified that the generated binary
does not change.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Juan Quintela <quintela@redhat.com>
Acked-by: Glauber Costa <glommer@gmail.com>
Diffstat (limited to 'hw/ne2000.c')
-rw-r--r-- | hw/ne2000.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/ne2000.c b/hw/ne2000.c index d1416cfb7f..78fe14fe1c 100644 --- a/hw/ne2000.c +++ b/hw/ne2000.c @@ -724,7 +724,8 @@ static int pci_ne2000_init(PCIDevice *pci_dev) pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_REALTEK_8029); pci_config_set_class(pci_conf, PCI_CLASS_NETWORK_ETHERNET); pci_conf[PCI_HEADER_TYPE] = PCI_HEADER_TYPE_NORMAL; // header_type - pci_conf[0x3d] = 1; // interrupt pin 0 + /* TODO: RST# value should be 0. PCI spec 6.2.4 */ + pci_conf[PCI_INTERRUPT_PIN] = 1; // interrupt pin 0 pci_register_bar(&d->dev, 0, 0x100, PCI_BASE_ADDRESS_SPACE_IO, ne2000_map); |