Revision eedfac6f hw/net/pcnet-pci.c
b/hw/net/pcnet-pci.c | ||
---|---|---|
315 | 315 |
pci_conf[PCI_MAX_LAT] = 0xff; |
316 | 316 |
|
317 | 317 |
/* Handler for memory-mapped I/O */ |
318 |
memory_region_init_io(&d->state.mmio, NULL, &pcnet_mmio_ops, s, "pcnet-mmio",
|
|
319 |
PCNET_PNPMMIO_SIZE); |
|
318 |
memory_region_init_io(&d->state.mmio, OBJECT(d), &pcnet_mmio_ops, s,
|
|
319 |
"pcnet-mmio", PCNET_PNPMMIO_SIZE);
|
|
320 | 320 |
|
321 |
memory_region_init_io(&d->io_bar, NULL, &pcnet_io_ops, s, "pcnet-io",
|
|
321 |
memory_region_init_io(&d->io_bar, OBJECT(d), &pcnet_io_ops, s, "pcnet-io",
|
|
322 | 322 |
PCNET_IOPORT_SIZE); |
323 | 323 |
pci_register_bar(pci_dev, 0, PCI_BASE_ADDRESS_SPACE_IO, &d->io_bar); |
324 | 324 |
|
Also available in: Unified diff