mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
openpic: convert to qdev
This patch converts the OpenPIC device to qdev. Along the way it renames the "openpic" target to "raven" and the "mpic" target to "fsl_mpic_20", to better reflect the actual models they implement. This way we have a generic OpenPIC device now that can handle different flavors of the OpenPIC specification. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
5bac070111
commit
d0b7263134
4 changed files with 185 additions and 160 deletions
|
@ -11,11 +11,7 @@ enum {
|
|||
OPENPIC_OUTPUT_NB,
|
||||
};
|
||||
|
||||
/* OpenPIC capability flags */
|
||||
#define OPENPIC_FLAG_IDE_CRIT (1 << 0)
|
||||
#define OPENPIC_MODEL_RAVEN 0
|
||||
#define OPENPIC_MODEL_FSL_MPIC_20 1
|
||||
|
||||
qemu_irq *openpic_init (MemoryRegion **pmem, int nb_cpus,
|
||||
qemu_irq **irqs);
|
||||
qemu_irq *mpic_init (MemoryRegion *address_space, hwaddr base,
|
||||
int nb_cpus, qemu_irq **irqs);
|
||||
#endif /* __OPENPIC_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue