Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / intc / i8259.h
blob1f2420231f1774e474ee47ecb1243c90696cbf48
1 #ifndef HW_I8259_H
2 #define HW_I8259_H
4 /* i8259.c */
6 typedef struct PICCommonState PICCommonState;
8 extern PICCommonState *isa_pic;
11 * i8259_init()
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.
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);
22 #endif