aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2009-07-02 19:32:06 +0900
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-09 16:06:38 -0500
commit329939776005fad213086e54b038ccd39054e2bc (patch)
tree98bcd5fd7085b12c1e90b1fb8085846f0007c493 /hw
parent89e671e3f3d5754e78efc447f13386ced719f1f7 (diff)
split out ioport related stuffs from vl.c into ioport.c.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/hw.h5
-rw-r--r--hw/isa.h8
2 files changed, 3 insertions, 10 deletions
diff --git a/hw/hw.h b/hw/hw.h
index 2e43c1fe3d..a424d28f8e 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -10,6 +10,7 @@
#include "cpu-common.h"
#endif
+#include "ioport.h"
#include "irq.h"
/* VM Load/Save */
@@ -266,8 +267,4 @@ void qemu_register_reset(QEMUResetHandler *func, void *opaque);
typedef int QEMUBootSetHandler(void *opaque, const char *boot_device);
void qemu_register_boot_set(QEMUBootSetHandler *func, void *opaque);
-/* These should really be in isa.h, but are here to make pc.h happy. */
-typedef void (IOPortWriteFunc)(void *opaque, uint32_t address, uint32_t data);
-typedef uint32_t (IOPortReadFunc)(void *opaque, uint32_t address);
-
#endif
diff --git a/hw/isa.h b/hw/isa.h
index a8c1a56a45..f126eccb14 100644
--- a/hw/isa.h
+++ b/hw/isa.h
@@ -2,13 +2,9 @@
#define HW_ISA_H
/* ISA bus */
-extern target_phys_addr_t isa_mem_base;
+#include "ioport.h"
-int register_ioport_read(int start, int length, int size,
- IOPortReadFunc *func, void *opaque);
-int register_ioport_write(int start, int length, int size,
- IOPortWriteFunc *func, void *opaque);
-void isa_unassign_ioport(int start, int length);
+extern target_phys_addr_t isa_mem_base;
void isa_mmio_init(target_phys_addr_t base, target_phys_addr_t size);