3a8233dc1f
Since we are emulating a Clipper device topology, we need to set the minimum PCI device ID to 1, as there is no IRQ mapping for a device at ID 0 (see sys_dp264.c:clipper_map_irq()). - Add a 'devfn_min' argument to typhoon_init(). Pass that argument along to pci_register_root_bus(). - In clipper_init(), pass PCI_DEVFN(1, 0) as the minimum PCI device ID/function. Signed-off-by: Jason Thorpe <thorpej@me.com> Message-Id: <20210613211549.18094-3-thorpej@me.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
22 lines
543 B
C
22 lines
543 B
C
/* Alpha cores and system support chips. */
|
|
|
|
#ifndef HW_ALPHA_SYS_H
|
|
#define HW_ALPHA_SYS_H
|
|
|
|
#include "target/alpha/cpu-qom.h"
|
|
#include "hw/pci/pci.h"
|
|
#include "hw/pci/pci_host.h"
|
|
#include "hw/boards.h"
|
|
#include "hw/intc/i8259.h"
|
|
|
|
|
|
PCIBus *typhoon_init(MemoryRegion *, ISABus **, qemu_irq *, AlphaCPU *[4],
|
|
pci_map_irq_fn, uint8_t devfn_min);
|
|
|
|
/* alpha_pci.c. */
|
|
extern const MemoryRegionOps alpha_pci_ignore_ops;
|
|
extern const MemoryRegionOps alpha_pci_conf1_ops;
|
|
extern const MemoryRegionOps alpha_pci_iack_ops;
|
|
|
|
#endif
|