PCI: cadence: Remove private bus number and range storage
[sfrench/cifs-2.6.git] / drivers / pci / controller / cadence / pcie-cadence.h
index df14ad002fe924470f01eb2b6393392a06fccc73..02803f262f0cad237be8ef382ce1a79333c4dc03 100644 (file)
@@ -235,7 +235,6 @@ struct cdns_pcie {
        struct resource         *mem_res;
        struct device           *dev;
        bool                    is_rc;
-       u8                      bus;
        int                     phy_count;
        struct phy              **phy;
        struct device_link      **link;
@@ -248,7 +247,6 @@ struct cdns_pcie {
  * @dev: pointer to PCIe device
  * @cfg_res: start/end offsets in the physical system memory to map PCI
  *           configuration space accesses
- * @bus_range: first/last buses behind the PCIe host controller
  * @cfg_base: IO mapped window to access the PCI configuration space of a
  *            single function at a time
  * @no_bar_nbits: Number of bits to keep for inbound (PCIe -> CPU) address
@@ -259,7 +257,6 @@ struct cdns_pcie {
 struct cdns_pcie_rc {
        struct cdns_pcie        pcie;
        struct resource         *cfg_res;
-       struct resource         *bus_range;
        void __iomem            *cfg_base;
        u32                     no_bar_nbits;
        u32                     vendor_id;
@@ -381,11 +378,12 @@ static inline int cdns_pcie_ep_setup(struct cdns_pcie_ep *ep)
        return 0;
 }
 #endif
-void cdns_pcie_set_outbound_region(struct cdns_pcie *pcie, u8 fn,
+void cdns_pcie_set_outbound_region(struct cdns_pcie *pcie, u8 busnr, u8 fn,
                                   u32 r, bool is_io,
                                   u64 cpu_addr, u64 pci_addr, size_t size);
 
-void cdns_pcie_set_outbound_region_for_normal_msg(struct cdns_pcie *pcie, u8 fn,
+void cdns_pcie_set_outbound_region_for_normal_msg(struct cdns_pcie *pcie,
+                                                 u8 busnr, u8 fn,
                                                  u32 r, u64 cpu_addr);
 
 void cdns_pcie_reset_outbound_region(struct cdns_pcie *pcie, u32 r);