diff options
Diffstat (limited to 'hw/e1000.c')
-rw-r--r-- | hw/e1000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/e1000.c b/hw/e1000.c index ccf9bc0e74..a38ab73ef5 100644 --- a/hw/e1000.c +++ b/hw/e1000.c @@ -1049,8 +1049,8 @@ pci_e1000_init(PCIBus *bus, NICInfo *nd, int devfn) pci_conf = d->dev.config; memset(pci_conf, 0, 256); - *(uint16_t *)(pci_conf+0x00) = cpu_to_le16(0x8086); - *(uint16_t *)(pci_conf+0x02) = cpu_to_le16(E1000_DEVID); + pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL); + pci_config_set_device_id(pci_conf, E1000_DEVID); *(uint16_t *)(pci_conf+0x04) = cpu_to_le16(0x0407); *(uint16_t *)(pci_conf+0x06) = cpu_to_le16(0x0010); pci_conf[0x08] = 0x03; |