[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UNIKRAFT PATCH RFCv4 21/35] plat/pci_bus: Change pci_device.base from u16 to unsigned long



On arm64, no ioport at all. It uses iomem instead, hence change the
base from u16 to unsigned long.

Signed-off-by: Jia He <justin.he@xxxxxxx>
---
 plat/common/include/pci/pci_bus.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plat/common/include/pci/pci_bus.h 
b/plat/common/include/pci/pci_bus.h
index 88ed949..40c904d 100644
--- a/plat/common/include/pci/pci_bus.h
+++ b/plat/common/include/pci/pci_bus.h
@@ -69,6 +69,7 @@
 #include <uk/bus.h>
 #include <uk/alloc.h>
 #include <uk/ctors.h>
+#include <pci/pci_ecam.h>
 
 /**
  * A structure describing an ID for a PCI driver. Each driver provides a
@@ -150,7 +151,7 @@ struct pci_device {
        struct pci_driver     *drv;
        enum pci_device_state state;
 
-       uint16_t base;
+       unsigned long base;
        unsigned long irq;
 };
 
-- 
2.17.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.