xref: /openbmc/qemu/include/hw/intc/i8259.h (revision a42706db)
1 #ifndef HW_I8259_H
2 #define HW_I8259_H
3 
4 /* i8259.c */
5 
6 typedef struct PICCommonState PICCommonState;
7 
8 extern PICCommonState *isa_pic;
9 
10 /*
11  * i8259_init()
12  *
13  * Create a i8259 device on an ISA @bus,
14  * connect its output to @parent_irq_in,
15  * return an (allocated) array of 16 input IRQs.
16  */
17 qemu_irq *i8259_init(ISABus *bus, qemu_irq parent_irq_in);
18 qemu_irq *kvm_i8259_init(ISABus *bus);
19 int pic_get_output(PICCommonState *s);
20 int pic_read_irq(PICCommonState *s);
21 
22 #endif
23