mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
ebus: wire up OBIO interrupts to APB pbm via qdev GPIOs
This enables us to remove the static array mapping in the ISA IRQ handler (and the embedded reference to the APB device) by formalising the interrupt wiring via the qdev GPIO API. For more clarity we replace the APB OBIO interrupt numbers with constants designating the interrupt source, and rename isa_irq_handler() to ebus_isa_irq_handler(). Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Artyom Tarasenko <atar4qemu@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
33c5eb02c4
commit
4b10c8d701
3 changed files with 32 additions and 25 deletions
|
@ -52,6 +52,13 @@ typedef struct IOMMUState {
|
|||
|
||||
#define MAX_IVEC 0x40
|
||||
|
||||
/* OBIO IVEC IRQs */
|
||||
#define OBIO_LPT_IRQ 0x22
|
||||
#define OBIO_FDD_IRQ 0x27
|
||||
#define OBIO_KBD_IRQ 0x29
|
||||
#define OBIO_MSE_IRQ 0x2a
|
||||
#define OBIO_SER_IRQ 0x2b
|
||||
|
||||
#define TYPE_APB "pbm"
|
||||
|
||||
#define APB_DEVICE(obj) \
|
||||
|
@ -76,7 +83,6 @@ typedef struct APBState {
|
|||
uint32_t pci_irq_map[8];
|
||||
uint32_t pci_err_irq_map[4];
|
||||
uint32_t obio_irq_map[32];
|
||||
qemu_irq *pbm_irqs;
|
||||
qemu_irq ivec_irqs[MAX_IVEC];
|
||||
unsigned int irq_request;
|
||||
uint32_t reset_control;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue