diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2012-12-08 14:28:13 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-12-08 14:28:13 +0000 |
commit | 4cdd2e665ec4bd10c20c26432ee9ffe4db7bcc1c (patch) | |
tree | a764e6ea07f06acf51df4d62790cdf9ae922d55d /hw/apm.h | |
parent | 475363176c80feedb8feb5e335ba64de68c7b055 (diff) | |
parent | 582299336879504353e60c7937fbc70fea93f3da (diff) | |
download | hqemu-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |