summaryrefslogtreecommitdiffstats
path: root/hw/pci_host.c
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2009-11-12 14:58:34 +0900
committerMichael S. Tsirkin <mst@redhat.com>2009-12-01 17:51:37 +0200
commitf08b32fe959c157d3c3acdad9c7bfe56b5597af1 (patch)
tree24a4eadb38a76c490d018dea62b1aba3ef0aeaf3 /hw/pci_host.c
parent8d6514f8dd2a8102ec3d577b13cb565fb9cfe73c (diff)
downloadhqemu-f08b32fe959c157d3c3acdad9c7bfe56b5597af1.zip
hqemu-f08b32fe959c157d3c3acdad9c7bfe56b5597af1.tar.gz
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>
Diffstat (limited to 'hw/pci_host.c')
-rw-r--r--hw/pci_host.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/pci_host.c b/hw/pci_host.c
index 403d040..45ddcd1 100644
--- a/hw/pci_host.c
+++ b/hw/pci_host.c
@@ -116,7 +116,7 @@ static CPUReadMemoryFunc * const pci_host_config_read[] = {
&pci_host_config_readl,
};
-int pci_host_config_register_io_memory(PCIHostState *s)
+int pci_host_conf_register_mmio(PCIHostState *s)
{
return cpu_register_io_memory(pci_host_config_read,
pci_host_config_write, s);
@@ -156,7 +156,7 @@ static CPUReadMemoryFunc * const pci_host_config_read_noswap[] = {
&pci_host_config_readl_noswap,
};
-int pci_host_config_register_io_memory_noswap(PCIHostState *s)
+int pci_host_conf_register_mmio_noswap(PCIHostState *s)
{
return cpu_register_io_memory(pci_host_config_read_noswap,
pci_host_config_write_noswap, s);
@@ -180,7 +180,7 @@ static uint32_t pci_host_config_readl_ioport(void *opaque, uint32_t addr)
return val;
}
-void pci_host_config_register_ioport(pio_addr_t ioport, PCIHostState *s)
+void pci_host_conf_register_ioport(pio_addr_t ioport, PCIHostState *s)
{
register_ioport_write(ioport, 4, 4, pci_host_config_writel_ioport, s);
register_ioport_read(ioport, 4, 4, pci_host_config_readl_ioport, s);
@@ -203,7 +203,7 @@ static CPUReadMemoryFunc * const pci_host_data_read_mmio[] = {
pci_host_data_readl_mmio,
};
-int pci_host_data_register_io_memory(PCIHostState *s)
+int pci_host_data_register_mmio(PCIHostState *s)
{
return cpu_register_io_memory(pci_host_data_read_mmio,
pci_host_data_write_mmio,
OpenPOWER on IntegriCloud