a42706dbe4
Move it to the existing "PIC related things" header, hw/intc/i8259.h. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
23 lines
473 B
C
23 lines
473 B
C
#ifndef HW_I8259_H
|
|
#define HW_I8259_H
|
|
|
|
/* i8259.c */
|
|
|
|
typedef struct PICCommonState PICCommonState;
|
|
|
|
extern PICCommonState *isa_pic;
|
|
|
|
/*
|
|
* i8259_init()
|
|
*
|
|
* Create a i8259 device on an ISA @bus,
|
|
* connect its output to @parent_irq_in,
|
|
* return an (allocated) array of 16 input IRQs.
|
|
*/
|
|
qemu_irq *i8259_init(ISABus *bus, qemu_irq parent_irq_in);
|
|
qemu_irq *kvm_i8259_init(ISABus *bus);
|
|
int pic_get_output(PICCommonState *s);
|
|
int pic_read_irq(PICCommonState *s);
|
|
|
|
#endif
|