Revision b90c73cf hw/e1000.c
b/hw/e1000.c | ||
---|---|---|
1130 | 1130 |
d->mmio_index = cpu_register_io_memory(e1000_mmio_read, |
1131 | 1131 |
e1000_mmio_write, d); |
1132 | 1132 |
|
1133 |
pci_register_bar((PCIDevice *)d, 0, PNPMMIO_SIZE,
|
|
1133 |
pci_register_bar(&d->dev, 0, PNPMMIO_SIZE,
|
|
1134 | 1134 |
PCI_BASE_ADDRESS_SPACE_MEMORY, e1000_mmio_map); |
1135 | 1135 |
|
1136 |
pci_register_bar((PCIDevice *)d, 1, IOPORT_SIZE,
|
|
1136 |
pci_register_bar(&d->dev, 1, IOPORT_SIZE,
|
|
1137 | 1137 |
PCI_BASE_ADDRESS_SPACE_IO, ioport_map); |
1138 | 1138 |
|
1139 | 1139 |
memmove(d->eeprom_data, e1000_eeprom_template, |
Also available in: Unified diff