mirror of
https://github.com/qemu/qemu.git
synced 2024-12-02 00:03:35 +08:00
3023f3329d
Patch 5/7 This patch changes the graphical_console_init function to return an allocated DisplayState instead of a QEMUConsole. This patch contains just the graphical_console_init change and few other modifications mainly in console.c and vl.c. It was necessary to move the display frontends (e.g. sdl and vnc) initialization after machine->init in vl.c. This patch does *not* include any required changes to any device, these changes come with the following patches. Patch 6/7 This patch changes the QEMUMachine init functions not to take a DisplayState as an argument because is not needed any more; In few places the graphic hardware initialization function was called only if DisplayState was not NULL, now they are always called. Apart from these cases, the rest are all mechanical substitutions. Patch 7/7 This patch updates the graphic device code to use the new graphical_console_init function. As for the previous patch, in few places graphical_console_init was called only if DisplayState was not NULL, now it is always called. Apart from these cases, the rest are all mechanical substitutions. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6344 c046a42c-6fe2-441c-8c8c-71466251a162
62 lines
1.5 KiB
C
62 lines
1.5 KiB
C
#ifndef PRIMECELL_H
|
|
#define PRIMECELL_H
|
|
|
|
/* Declarations for ARM PrimeCell based periperals. */
|
|
/* Also includes some devices that are currently only used by the
|
|
ARM boards. */
|
|
|
|
/* pl031.c */
|
|
void pl031_init(uint32_t base, qemu_irq irq);
|
|
|
|
/* pl110.c */
|
|
void *pl110_init(uint32_t base, qemu_irq irq, int);
|
|
|
|
/* pl011.c */
|
|
enum pl011_type {
|
|
PL011_ARM,
|
|
PL011_LUMINARY
|
|
};
|
|
|
|
void pl011_init(uint32_t base, qemu_irq irq, CharDriverState *chr,
|
|
enum pl011_type type);
|
|
|
|
/* pl022.c */
|
|
typedef int (*ssi_xfer_cb)(void *, int);
|
|
void pl022_init(uint32_t base, qemu_irq irq, ssi_xfer_cb xfer_cb,
|
|
void *opaque);
|
|
|
|
/* pl050.c */
|
|
void pl050_init(uint32_t base, qemu_irq irq, int is_mouse);
|
|
|
|
/* pl061.c */
|
|
void pl061_float_high(void *opaque, uint8_t mask);
|
|
qemu_irq *pl061_init(uint32_t base, qemu_irq irq, qemu_irq **out);
|
|
|
|
/* pl080.c */
|
|
void *pl080_init(uint32_t base, qemu_irq irq, int nchannels);
|
|
|
|
/* pl181.c */
|
|
void pl181_init(uint32_t base, BlockDriverState *bd,
|
|
qemu_irq irq0, qemu_irq irq1);
|
|
|
|
/* pl190.c */
|
|
qemu_irq *pl190_init(uint32_t base, qemu_irq irq, qemu_irq fiq);
|
|
|
|
/* realview_gic.c */
|
|
qemu_irq *realview_gic_init(uint32_t base, qemu_irq parent_irq);
|
|
|
|
/* mpcore.c */
|
|
extern qemu_irq *mpcore_irq_init(qemu_irq *cpu_irq);
|
|
|
|
/* arm-timer.c */
|
|
void sp804_init(uint32_t base, qemu_irq irq);
|
|
void icp_pit_init(uint32_t base, qemu_irq *pic, int irq);
|
|
|
|
/* arm_sysctl.c */
|
|
void arm_sysctl_init(uint32_t base, uint32_t sys_id);
|
|
|
|
/* versatile_pci.c */
|
|
PCIBus *pci_vpb_init(qemu_irq *pic, int irq, int realview);
|
|
|
|
#endif
|