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