mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
sh_intc: convert interrupt controller to memory API
Signed-off-by: Benoit Canet <benoit.canet@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
89e2945140
commit
b279e5efc0
4 changed files with 66 additions and 31 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "qemu-common.h"
|
||||
#include "irq.h"
|
||||
#include "exec-memory.h"
|
||||
|
||||
typedef unsigned char intc_enum;
|
||||
|
||||
|
@ -46,6 +47,8 @@ struct intc_source {
|
|||
};
|
||||
|
||||
struct intc_desc {
|
||||
MemoryRegion iomem;
|
||||
MemoryRegion *iomem_aliases;
|
||||
qemu_irq *irqs;
|
||||
struct intc_source *sources;
|
||||
int nr_sources;
|
||||
|
@ -53,7 +56,6 @@ struct intc_desc {
|
|||
int nr_mask_regs;
|
||||
struct intc_prio_reg *prio_regs;
|
||||
int nr_prio_regs;
|
||||
int iomemtype;
|
||||
int pending; /* number of interrupt sources that has pending set */
|
||||
};
|
||||
|
||||
|
@ -68,7 +70,8 @@ void sh_intc_register_sources(struct intc_desc *desc,
|
|||
struct intc_group *groups,
|
||||
int nr_groups);
|
||||
|
||||
int sh_intc_init(struct intc_desc *desc,
|
||||
int sh_intc_init(MemoryRegion *sysmem,
|
||||
struct intc_desc *desc,
|
||||
int nr_sources,
|
||||
struct intc_mask_reg *mask_regs,
|
||||
int nr_mask_regs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue