diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-07-02 19:32:06 +0900 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-09 16:06:38 -0500 |
commit | 329939776005fad213086e54b038ccd39054e2bc (patch) | |
tree | 98bcd5fd7085b12c1e90b1fb8085846f0007c493 /hw | |
parent | 89e671e3f3d5754e78efc447f13386ced719f1f7 (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.h | 5 | ||||
-rw-r--r-- | hw/isa.h | 8 |
2 files changed, 3 insertions, 10 deletions
@@ -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 @@ -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); |