mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
hw/char/pl011: Support all interrupt lines
The PL011 UART has six interrupt lines: * RX (receive data) * TX (transmit data) * RT (receive timeout) * MS (modem status) * E (errors) * combined (logical OR of all the above) So far we have only emulated the combined interrupt line; add support for the others, so that boards that wire them up to different interrupt controller inputs can do so. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
694cf20999
commit
a3c1ca56c0
2 changed files with 45 additions and 3 deletions
|
@ -45,7 +45,7 @@ typedef struct PL011State {
|
|||
int read_count;
|
||||
int read_trigger;
|
||||
CharBackend chr;
|
||||
qemu_irq irq;
|
||||
qemu_irq irq[6];
|
||||
const unsigned char *id;
|
||||
} PL011State;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue