mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
pci: shorten pci_host_{conf, data}_register_xxx function a bit.
pci_host_data_register_io_memory and its variants are too long a bit. So shorten them. Now they are pci_host_{conf, data}_register_{mmio, mmio_noswap, ioport}() Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
8d6514f8dd
commit
f08b32fe95
9 changed files with 27 additions and 27 deletions
|
@ -236,10 +236,10 @@ static int pci_pbm_init_device(SysBusDevice *dev)
|
|||
pci_apb_iowrite, s);
|
||||
sysbus_init_mmio(dev, 0x10000ULL, pci_ioport);
|
||||
/* mem_config */
|
||||
pci_mem_config = pci_host_config_register_io_memory(&s->host_state);
|
||||
pci_mem_config = pci_host_conf_register_mmio(&s->host_state);
|
||||
sysbus_init_mmio(dev, 0x10ULL, pci_mem_config);
|
||||
/* mem_data */
|
||||
pci_mem_data = pci_host_data_register_io_memory(&s->host_state);
|
||||
pci_mem_data = pci_host_data_register_mmio(&s->host_state);
|
||||
sysbus_init_mmio(dev, 0x10000000ULL, pci_mem_data);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue