summaryrefslogtreecommitdiffstats
path: root/hw/apm.h
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2012-12-08 14:28:13 +0000
committerBlue Swirl <blauwirbel@gmail.com>2012-12-08 14:28:13 +0000
commit4cdd2e665ec4bd10c20c26432ee9ffe4db7bcc1c (patch)
treea764e6ea07f06acf51df4d62790cdf9ae922d55d /hw/apm.h
parent475363176c80feedb8feb5e335ba64de68c7b055 (diff)
parent582299336879504353e60c7937fbc70fea93f3da (diff)
downloadhqemu-4cdd2e665ec4bd10c20c26432ee9ffe4db7bcc1c.zip
hqemu-4cdd2e665ec4bd10c20c26432ee9ffe4db7bcc1c.tar.gz
Merge branch 'memory-ioport' of git://github.com/afaerber/qemu-cpu
* 'memory-ioport' of git://github.com/afaerber/qemu-cpu: hw/dma.c: Replace register_ioport_* hw/pc.c: Replace register_ioport_* serial: Replace register_ioport_* hw/cirrus_vga.c: Replace register_ioport_* hw/apm.c: Replace register_ioport_* isa: Add isa_address_space_io()
Diffstat (limited to 'hw/apm.h')
-rw-r--r--hw/apm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/apm.h b/hw/apm.h
index f7c741e..5431b6d 100644
--- a/hw/apm.h
+++ b/hw/apm.h
@@ -4,6 +4,7 @@
#include <stdint.h>
#include "qemu-common.h"
#include "hw.h"
+#include "memory.h"
typedef void (*apm_ctrl_changed_t)(uint32_t val, void *arg);
@@ -13,9 +14,11 @@ typedef struct APMState {
apm_ctrl_changed_t callback;
void *arg;
+ MemoryRegion io;
} APMState;
-void apm_init(APMState *s, apm_ctrl_changed_t callback, void *arg);
+void apm_init(PCIDevice *dev, APMState *s, apm_ctrl_changed_t callback,
+ void *arg);
extern const VMStateDescription vmstate_apm;
OpenPOWER on IntegriCloud