mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
hw/alpha: Provide a PCI-ISA bridge device node
- Move initialization of the ISA bus from typhoon_init() to clipper_init(); this apsect of device topology is really associated with the individual model, not the core logic chipset. typhoon_init() now returns the IRQ to use for the output of the ISA PIC. - In clipper_init(), instantiate an i82378 instance, and connect its PIC output to the ISA IRQ input provided by typhoon_init(). Remove the explicit instantiations of i8254 and i82374, as these devices are subsumed by the i82378. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Jason Thorpe <thorpej@me.com> Message-Id: <20210616141538.25436-1-thorpej@me.com> [rth: Remove direct dependencies on i82374, i8254, i8259.] Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
387a1dcb35
commit
5ec4f1d348
4 changed files with 36 additions and 27 deletions
|
@ -814,9 +814,9 @@ static void typhoon_alarm_timer(void *opaque)
|
|||
cpu_interrupt(CPU(s->cchip.cpu[cpu]), CPU_INTERRUPT_TIMER);
|
||||
}
|
||||
|
||||
PCIBus *typhoon_init(MemoryRegion *ram, ISABus **isa_bus, qemu_irq *p_rtc_irq,
|
||||
AlphaCPU *cpus[4], pci_map_irq_fn sys_map_irq,
|
||||
uint8_t devfn_min)
|
||||
PCIBus *typhoon_init(MemoryRegion *ram, qemu_irq *p_isa_irq,
|
||||
qemu_irq *p_rtc_irq, AlphaCPU *cpus[4],
|
||||
pci_map_irq_fn sys_map_irq, uint8_t devfn_min)
|
||||
{
|
||||
MemoryRegion *addr_space = get_system_memory();
|
||||
DeviceState *dev;
|
||||
|
@ -844,6 +844,7 @@ PCIBus *typhoon_init(MemoryRegion *ram, ISABus **isa_bus, qemu_irq *p_rtc_irq,
|
|||
}
|
||||
}
|
||||
|
||||
*p_isa_irq = qemu_allocate_irq(typhoon_set_isa_irq, s, 0);
|
||||
*p_rtc_irq = qemu_allocate_irq(typhoon_set_timer_irq, s, 0);
|
||||
|
||||
/* Main memory region, 0x00.0000.0000. Real hardware supports 32GB,
|
||||
|
@ -919,18 +920,6 @@ PCIBus *typhoon_init(MemoryRegion *ram, ISABus **isa_bus, qemu_irq *p_rtc_irq,
|
|||
/* Pchip1 PCI I/O, 0x802.FC00.0000, 32MB. */
|
||||
/* Pchip1 PCI configuration, 0x802.FE00.0000, 16MB. */
|
||||
|
||||
/* Init the ISA bus. */
|
||||
/* ??? Technically there should be a cy82c693ub pci-isa bridge. */
|
||||
{
|
||||
qemu_irq *isa_irqs;
|
||||
|
||||
*isa_bus = isa_bus_new(NULL, get_system_memory(), &s->pchip.reg_io,
|
||||
&error_abort);
|
||||
isa_irqs = i8259_init(*isa_bus,
|
||||
qemu_allocate_irq(typhoon_set_isa_irq, s, 0));
|
||||
isa_bus_irqs(*isa_bus, isa_irqs);
|
||||
}
|
||||
|
||||
return b;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue