mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
7a380ca350
commit
9aa78c425f
2 changed files with 14 additions and 10 deletions
7
hw/pc.h
7
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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue