From 1442125843baabc053b71684c85ddb02b9080d6c Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Fri, 30 Oct 2009 21:21:11 +0900 Subject: pci: 64bit bar support. implemented pci 64bit bar support. The tricky bit is pci_update_mapping(). An OS is allowed to set the BAR such that OS can't address the area pointed by BAR. It doesn't make sense, though. In that case, don't map the BAR. Signed-off-by: Isaku Yamahata Signed-off-by: Anthony Liguori --- hw/pci.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/pci.h') diff --git a/hw/pci.h b/hw/pci.h index 305c030f9c..e83faf598d 100644 --- a/hw/pci.h +++ b/hw/pci.h @@ -114,6 +114,7 @@ typedef struct PCIIORegion { #define PCI_BASE_ADDRESS_0 0x10 /* 32 bits */ #define PCI_BASE_ADDRESS_SPACE_IO 0x01 #define PCI_BASE_ADDRESS_SPACE_MEMORY 0x00 +#define PCI_BASE_ADDRESS_MEM_TYPE_64 0x04 /* 64 bit address */ #define PCI_BASE_ADDRESS_MEM_PREFETCH 0x08 /* prefetchable? */ #define PCI_PRIMARY_BUS 0x18 /* Primary bus number */ #define PCI_SECONDARY_BUS 0x19 /* Secondary bus number */ -- cgit v1.2.3