Revision 28c2c264 hw/eepro100.c
b/hw/eepro100.c | ||
---|---|---|
1752 | 1752 |
d->eepro100.mmio_index = |
1753 | 1753 |
cpu_register_io_memory(pci_mmio_read, pci_mmio_write, s); |
1754 | 1754 |
|
1755 |
pci_register_io_region(&d->dev, 0, PCI_MEM_SIZE,
|
|
1755 |
pci_register_bar(&d->dev, 0, PCI_MEM_SIZE,
|
|
1756 | 1756 |
PCI_ADDRESS_SPACE_MEM | |
1757 | 1757 |
PCI_ADDRESS_SPACE_MEM_PREFETCH, pci_mmio_map); |
1758 |
pci_register_io_region(&d->dev, 1, PCI_IO_SIZE, PCI_ADDRESS_SPACE_IO,
|
|
1758 |
pci_register_bar(&d->dev, 1, PCI_IO_SIZE, PCI_ADDRESS_SPACE_IO,
|
|
1759 | 1759 |
pci_map); |
1760 |
pci_register_io_region(&d->dev, 2, PCI_FLASH_SIZE, PCI_ADDRESS_SPACE_MEM,
|
|
1760 |
pci_register_bar(&d->dev, 2, PCI_FLASH_SIZE, PCI_ADDRESS_SPACE_MEM,
|
|
1761 | 1761 |
pci_mmio_map); |
1762 | 1762 |
|
1763 | 1763 |
qdev_get_macaddr(&d->dev.qdev, s->macaddr); |
Also available in: Unified diff