From 5afb9869171c15c777eee09bc98624221009555f Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 18 Sep 2010 05:53:14 +0000 Subject: [PATCH] Introduce range.h Extract range functions from pci.h. These will be used by later patches by non-PCI devices. Adjust current users. Signed-off-by: Blue Swirl (cherry picked from commit bf1b00712375bea65f2254dea8281fa646eebbd5) --- hw/msi.c | 1 + hw/pci_bridge.c | 1 + hw/pcie.c | 1 + 3 files changed, 3 insertions(+) diff --git a/hw/msi.c b/hw/msi.c index a949d821fd..0f2913aaa2 100644 --- a/hw/msi.c +++ b/hw/msi.c @@ -19,6 +19,7 @@ */ #include "msi.h" +#include "range.h" /* Eventually those constants should go to Linux pci_regs.h */ #define PCI_MSI_PENDING_32 0x10 diff --git a/hw/pci_bridge.c b/hw/pci_bridge.c index 7e8488a4fb..58cc2e4cee 100644 --- a/hw/pci_bridge.c +++ b/hw/pci_bridge.c @@ -31,6 +31,7 @@ #include "pci_bridge.h" #include "pci_internals.h" +#include "range.h" /* PCI bridge subsystem vendor ID helper functions */ #define PCI_SSVID_SIZEOF 8 diff --git a/hw/pcie.c b/hw/pcie.c index 53d1fce7c7..881af7878c 100644 --- a/hw/pcie.c +++ b/hw/pcie.c @@ -25,6 +25,7 @@ #include "msi.h" #include "pci_internals.h" #include "pcie_regs.h" +#include "range.h" //#define DEBUG_PCIE #ifdef DEBUG_PCIE