[PATCH 1/3] staging: mt7621-pci: add data struct for mt7621 pci controller

Sergio Paracuellos sergio.paracuellos at gmail.com
Tue Jul 10 19:33:46 UTC 2018


Add new 'mt7621_pcie_port' struct as data for the pci controller.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos at gmail.com>
---
 drivers/staging/mt7621-pci/pci-mt7621.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/staging/mt7621-pci/pci-mt7621.c b/drivers/staging/mt7621-pci/pci-mt7621.c
index 4f56840..58c77bd 100644
--- a/drivers/staging/mt7621-pci/pci-mt7621.c
+++ b/drivers/staging/mt7621-pci/pci-mt7621.c
@@ -177,6 +177,16 @@ static int pcie_link_status = 0;
 #define PCI_ACCESS_WRITE_2 4
 #define PCI_ACCESS_WRITE_4 5
 
+/**
+ * struct mt7621_pcie_port - PCIe port information
+ * @reg_base: IO Mapped Register Base
+ * @dev: Device pointer
+ */
+struct mt7621_pcie_port {
+	void __iomem *reg_base;
+	struct device *dev;
+};
+
 static inline u32 mt7621_pci_get_cfgaddr(unsigned int bus, unsigned int slot,
 					 unsigned int func, unsigned int where)
 {
-- 
2.7.4



More information about the devel mailing list