diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-10-30 21:21:07 +0900 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-11-09 08:43:08 -0600 |
commit | a455783bb6ecede44450f54980c42951fd06b7fb (patch) | |
tree | 7c7b95b96400315efc8fe46a3455cbae9c045fbb /hw/prep_pci.c | |
parent | pci_host.h: move functions in pci_host.h into .c file. (diff) | |
download | qemu-kvm-a455783bb6ecede44450f54980c42951fd06b7fb.tar.gz qemu-kvm-a455783bb6ecede44450f54980c42951fd06b7fb.tar.bz2 qemu-kvm-a455783bb6ecede44450f54980c42951fd06b7fb.zip |
pci_host: consolidate pci config address access.
consolidate pci_config address access into pci_host.c
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/prep_pci.c')
-rw-r--r-- | hw/prep_pci.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/hw/prep_pci.c b/hw/prep_pci.c index 5a5b3da79..a338f81e1 100644 --- a/hw/prep_pci.c +++ b/hw/prep_pci.c @@ -28,18 +28,6 @@ typedef PCIHostState PREPPCIState; -static void pci_prep_addr_writel(void* opaque, uint32_t addr, uint32_t val) -{ - PREPPCIState *s = opaque; - s->config_reg = val; -} - -static uint32_t pci_prep_addr_readl(void* opaque, uint32_t addr) -{ - PREPPCIState *s = opaque; - return s->config_reg; -} - static inline uint32_t PPC_PCIIO_config(target_phys_addr_t addr) { int i; @@ -139,8 +127,7 @@ PCIBus *pci_prep_init(qemu_irq *pic) s->bus = pci_register_bus(NULL, "pci", prep_set_irq, prep_map_irq, pic, 0, 4); - register_ioport_write(0xcf8, 4, 4, pci_prep_addr_writel, s); - register_ioport_read(0xcf8, 4, 4, pci_prep_addr_readl, s); + pci_host_config_register_ioport(0xcf8, s); pci_host_data_register_ioport(0xcfc, s); |