aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/microblaze/pci
diff options
context:
space:
mode:
authorThippeswamy Havalige <thippeswamy.havalige@amd.com>2022-10-25 12:22:11 +0530
committerMichal Simek <michal.simek@amd.com>2022-11-25 11:39:23 +0100
commit3604ef61f18ae024b4bf2686361965469f9ff805 (patch)
tree5590c0d83aca04f00023a234fe52a8a01b0329a7 /arch/microblaze/pci
parentmicroblaze/PCI: Remove unused pci_address_to_pio() conversion of CPU address to I/O port (diff)
downloadwireguard-linux-3604ef61f18ae024b4bf2686361965469f9ff805.tar.xz
wireguard-linux-3604ef61f18ae024b4bf2686361965469f9ff805.zip
microblaze/PCI: Remove unused sys_pciconfig_iobase() and et al declaration
Removed unused code which provides information of various I/O regions. Signed-off-by: Thippeswamy Havalige <thippeswamy.havalige@amd.com> Link: https://lore.kernel.org/r/20221025065214.4663-11-thippeswamy.havalige@amd.com Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'arch/microblaze/pci')
-rw-r--r--arch/microblaze/pci/pci-common.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c
index 555281c389ff..a1de8532a04e 100644
--- a/arch/microblaze/pci/pci-common.c
+++ b/arch/microblaze/pci/pci-common.c
@@ -38,9 +38,6 @@
static DEFINE_SPINLOCK(hose_spinlock);
LIST_HEAD(hose_list);
-/* ISA Memory physical address */
-resource_size_t isa_mem_base;
-
unsigned long isa_io_base;
EXPORT_SYMBOL(isa_io_base);
@@ -92,44 +89,3 @@ int pci_proc_domain(struct pci_bus *bus)
{
return pci_domain_nr(bus);
}
-
-static struct pci_controller *pci_bus_to_hose(int bus)
-{
- struct pci_controller *hose, *tmp;
-
- list_for_each_entry_safe(hose, tmp, &hose_list, list_node)
- if (bus >= hose->first_busno && bus <= hose->last_busno)
- return hose;
- return NULL;
-}
-
-/* Provide information on locations of various I/O regions in physical
- * memory. Do this on a per-card basis so that we choose the right
- * root bridge.
- * Note that the returned IO or memory base is a physical address
- */
-
-long sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn)
-{
- struct pci_controller *hose;
- long result = -EOPNOTSUPP;
-
- hose = pci_bus_to_hose(bus);
- if (!hose)
- return -ENODEV;
-
- switch (which) {
- case IOBASE_BRIDGE_NUMBER:
- return (long)hose->first_busno;
- case IOBASE_MEMORY:
- return (long)hose->pci_mem_offset;
- case IOBASE_IO:
- return (long)hose->io_base_phys;
- case IOBASE_ISA_IO:
- return (long)isa_io_base;
- case IOBASE_ISA_MEM:
- return (long)isa_mem_base;
- }
-
- return result;
-}