aboutsummaryrefslogtreecommitdiff
path: root/hw/pc.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-01-10 16:31:16 +0100
committerJan Kiszka <jan.kiszka@siemens.com>2012-01-19 12:14:40 +0100
commit9aa78c425f6cd6a57ec53dd1a76233a080dc83b6 (patch)
tree966d41aba4166404e61fc0ae60555e67168190c5 /hw/pc.h
parent7a380ca350f84b5b99391da20a2b4ea505b0524d (diff)
downloadqemu-9aa78c425f6cd6a57ec53dd1a76233a080dc83b6.zip
qemu-9aa78c425f6cd6a57ec53dd1a76233a080dc83b6.tar.gz
qemu-9aa78c425f6cd6a57ec53dd1a76233a080dc83b6.tar.bz2
i8259: Completely privatize PicState
Use DeviceState instead of PicState in the public i8259 API. This is cleaner and allows to reorganize the PIC data structures for KVM reuse. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'hw/pc.h')
-rw-r--r--hw/pc.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/hw/pc.h b/hw/pc.h
index 13e41f1..ece069a 100644
--- a/hw/pc.h
+++ b/hw/pc.h
@@ -62,11 +62,10 @@ bool parallel_mm_init(MemoryRegion *address_space,
/* i8259.c */
-typedef struct PicState PicState;
-extern PicState *isa_pic;
+extern DeviceState *isa_pic;
qemu_irq *i8259_init(ISABus *bus, qemu_irq parent_irq);
-int pic_read_irq(PicState *s);
-int pic_get_output(PicState *s);
+int pic_read_irq(DeviceState *d);
+int pic_get_output(DeviceState *d);
void pic_info(Monitor *mon);
void irq_info(Monitor *mon);