summaryrefslogtreecommitdiff
path: root/hw/alpha/pci.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-07-08 13:55:30 -0700
committerRichard Henderson <rth@twiddle.net>2013-07-13 16:00:51 -0700
commit056e6bae1c91f47165d962564f82f5176bae47f0 (patch)
treedb4f27ff8e8b36de3e202488eedb9a554ff1da89 /hw/alpha/pci.c
parentc3cb8e77804313e1be99b5f28a34a346736707a5 (diff)
downloadqemu-056e6bae1c91f47165d962564f82f5176bae47f0.tar.gz
hw/alpha: Don't use get_system_io
Advancements in the ioport subsystem mean that we need no longer thunk memory-mapped i/o through the system-io address space. Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'hw/alpha/pci.c')
-rw-r--r--hw/alpha/pci.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/hw/alpha/pci.c b/hw/alpha/pci.c
index 7327d488fd..25637e0327 100644
--- a/hw/alpha/pci.c
+++ b/hw/alpha/pci.c
@@ -12,50 +12,6 @@
#include "sysemu/sysemu.h"
-/* PCI IO reads/writes, to byte-word addressable memory. */
-/* ??? Doesn't handle multiple PCI busses. */
-
-static uint64_t bw_io_read(void *opaque, hwaddr addr, unsigned size)
-{
- switch (size) {
- case 1:
- return cpu_inb(addr);
- case 2:
- return cpu_inw(addr);
- case 4:
- return cpu_inl(addr);
- }
- abort();
-}
-
-static void bw_io_write(void *opaque, hwaddr addr,
- uint64_t val, unsigned size)
-{
- switch (size) {
- case 1:
- cpu_outb(addr, val);
- break;
- case 2:
- cpu_outw(addr, val);
- break;
- case 4:
- cpu_outl(addr, val);
- break;
- default:
- abort();
- }
-}
-
-const MemoryRegionOps alpha_pci_bw_io_ops = {
- .read = bw_io_read,
- .write = bw_io_write,
- .endianness = DEVICE_LITTLE_ENDIAN,
- .impl = {
- .min_access_size = 1,
- .max_access_size = 4,
- },
-};
-
/* PCI config space reads/writes, to byte-word addressable memory. */
static uint64_t bw_conf1_read(void *opaque, hwaddr addr,
unsigned size)