mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
Allow multiple graphics devices.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1803 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
07435f7462
commit
95219897ff
11 changed files with 124 additions and 99 deletions
19
hw/sun4m.c
19
hw/sun4m.c
|
@ -187,23 +187,6 @@ void pic_set_irq_cpu(int irq, int level, unsigned int cpu)
|
|||
slavio_pic_set_irq_cpu(slavio_intctl, irq, level, cpu);
|
||||
}
|
||||
|
||||
static void *tcx;
|
||||
|
||||
void vga_update_display()
|
||||
{
|
||||
tcx_update_display(tcx);
|
||||
}
|
||||
|
||||
void vga_invalidate_display()
|
||||
{
|
||||
tcx_invalidate_display(tcx);
|
||||
}
|
||||
|
||||
void vga_screen_dump(const char *filename)
|
||||
{
|
||||
tcx_screen_dump(tcx, filename);
|
||||
}
|
||||
|
||||
static void *iommu;
|
||||
|
||||
uint32_t iommu_translate(uint32_t addr)
|
||||
|
@ -256,7 +239,7 @@ static void sun4m_init(int ram_size, int vga_ram_size, int boot_device,
|
|||
slavio_intctl_set_cpu(slavio_intctl, i, envs[i]);
|
||||
}
|
||||
|
||||
tcx = tcx_init(ds, PHYS_JJ_TCX_FB, phys_ram_base + ram_size, ram_size, vram_size, graphic_width, graphic_height);
|
||||
tcx_init(ds, PHYS_JJ_TCX_FB, phys_ram_base + ram_size, ram_size, vram_size, graphic_width, graphic_height);
|
||||
if (nd_table[0].vlan) {
|
||||
if (nd_table[0].model == NULL
|
||||
|| strcmp(nd_table[0].model, "lance") == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue