From d40c32a82362822dbea1b8955ff6967365cbcd85 Mon Sep 17 00:00:00 2001 From: Jean Guyader Date: Thu, 9 Oct 2008 17:50:13 +0100 Subject: [PATCH] - Change the VSLOT_START to keep the same BDF for intel graphic card passthrough. --- hw/pci.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/pci.h b/hw/pci.h index 4adc4d74..96b097d4 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -101,8 +101,8 @@ PCIBus *pci_bridge_init(PCIBus *bus, int devfn, uint32_t id, pci_map_irq_fn map_irq, const char *name); /* PCI slot 6~7 support ACPI PCI hot plug */ -#define PHP_SLOT_START (6) -#define PHP_SLOT_END (8) +#define PHP_SLOT_START (2) +#define PHP_SLOT_END (5) #define PHP_SLOT_LEN (PHP_SLOT_END - PHP_SLOT_START) #define PHP_TO_PCI_SLOT(x) (x + PHP_SLOT_START) #define PCI_TO_PHP_SLOT(x) (x - PHP_SLOT_START) @@ -167,4 +167,7 @@ PCIBus *pci_apb_init(target_phys_addr_t special_base, target_phys_addr_t mem_bas /* pass-through.c */ int pt_init(PCIBus *e_bus, const char *direct_pci_opt); +/* pass-through.c */ +int pt_init(PCIBus *e_bus, const char *direct_pci_opt); + #endif -- 2.39.5