mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
versatile_pci: Expose PCI memory space to system
The VersatilePB's PCI controller exposes the PCI memory space to the system via three regions controlled by the mapping control registers. Implement this so that guests can actually use MMIO-BAR PCI cards. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
a2bff788d2
commit
89a32d32fb
3 changed files with 77 additions and 1 deletions
|
@ -221,6 +221,9 @@ static void realview_init(QEMUMachineInitArgs *args,
|
|||
sysbus_mmio_map(busdev, 1, 0x60000000); /* PCI self-config */
|
||||
sysbus_mmio_map(busdev, 2, 0x61000000); /* PCI config */
|
||||
sysbus_mmio_map(busdev, 3, 0x62000000); /* PCI I/O */
|
||||
sysbus_mmio_map(busdev, 4, 0x63000000); /* PCI memory window 1 */
|
||||
sysbus_mmio_map(busdev, 5, 0x64000000); /* PCI memory window 2 */
|
||||
sysbus_mmio_map(busdev, 6, 0x68000000); /* PCI memory window 3 */
|
||||
sysbus_connect_irq(busdev, 0, pic[48]);
|
||||
sysbus_connect_irq(busdev, 1, pic[49]);
|
||||
sysbus_connect_irq(busdev, 2, pic[50]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue