Introduce range.h
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 18 Sep 2010 05:53:14 +0000 (05:53 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 27 Oct 2010 17:01:59 +0000 (19:01 +0200)
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 <blauwirbel@gmail.com>
(cherry picked from commit bf1b00712375bea65f2254dea8281fa646eebbd5)

hw/msi.c
hw/pci_bridge.c
hw/pcie.c

index a949d82..0f2913a 100644 (file)
--- 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
index 7e8488a..58cc2e4 100644 (file)
@@ -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
index 53d1fce..881af78 100644 (file)
--- 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