[OpenBIOS] [PATCH 1/5] pci: define pci_range_t typedef and add it to pci_arch_t struct
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Sat Jul 8 21:36:55 CEST 2017
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
include/drivers/pci.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/include/drivers/pci.h b/include/drivers/pci.h
index 5772b79..5a7480b 100644
--- a/include/drivers/pci.h
+++ b/include/drivers/pci.h
@@ -3,6 +3,15 @@
typedef uint32_t pci_addr;
+typedef struct pci_range_t pci_range_t;
+
+struct pci_range_t {
+ unsigned int type;
+ unsigned long childaddr;
+ unsigned long parentaddr;
+ unsigned long len;
+};
+
typedef struct pci_arch_t pci_arch_t;
struct pci_arch_t {
@@ -20,6 +29,7 @@ struct pci_arch_t {
unsigned long io_len;
unsigned long rbase;
unsigned long rlen;
+ pci_range_t host_ranges[4];
uint8_t irqs[4];
};
--
1.7.10.4
More information about the OpenBIOS
mailing list