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 a949d821fdd4c2cfbeb85821546e17e7ff512c37..0f2913aaa25ff27ef229f05b1ea9bbcc97e8aeac 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 7e8488a4fb4986281ea529a539a59663f9046563..58cc2e4cee20ac4b99f286a26ab29bb1b442c3a0 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 53d1fce7c708ec11387724e63add1b6f0158f1c4..881af7878c7d80e1aec75e8013849f7af9a68c05 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