mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
memory: add owner argument to initialization functions
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5767e4e198
commit
2c9b15cab1
319 changed files with 787 additions and 759 deletions
|
@ -1876,14 +1876,14 @@ static int e100_nic_init(PCIDevice *pci_dev)
|
|||
s->eeprom = eeprom93xx_new(&pci_dev->qdev, EEPROM_SIZE);
|
||||
|
||||
/* Handler for memory-mapped I/O */
|
||||
memory_region_init_io(&s->mmio_bar, &eepro100_ops, s, "eepro100-mmio",
|
||||
memory_region_init_io(&s->mmio_bar, NULL, &eepro100_ops, s, "eepro100-mmio",
|
||||
PCI_MEM_SIZE);
|
||||
pci_register_bar(&s->dev, 0, PCI_BASE_ADDRESS_MEM_PREFETCH, &s->mmio_bar);
|
||||
memory_region_init_io(&s->io_bar, &eepro100_ops, s, "eepro100-io",
|
||||
memory_region_init_io(&s->io_bar, NULL, &eepro100_ops, s, "eepro100-io",
|
||||
PCI_IO_SIZE);
|
||||
pci_register_bar(&s->dev, 1, PCI_BASE_ADDRESS_SPACE_IO, &s->io_bar);
|
||||
/* FIXME: flash aliases to mmio?! */
|
||||
memory_region_init_io(&s->flash_bar, &eepro100_ops, s, "eepro100-flash",
|
||||
memory_region_init_io(&s->flash_bar, NULL, &eepro100_ops, s, "eepro100-flash",
|
||||
PCI_FLASH_SIZE);
|
||||
pci_register_bar(&s->dev, 2, 0, &s->flash_bar);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue