Commit 805fcc88 authored by Paul Mundt's avatar Paul Mundt

sh: pci: Kill off the last remnants of the now unused pci-auto code.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 2d5efc19
......@@ -18,24 +18,6 @@ config SH_PCIDMA_NONCOHERENT
bridge integrated with your SH CPU, refer carefully to the chip specs
to see if you can say 'N' here. Otherwise, leave it as 'Y'.
# Temporary config option for transitioning off of PCI_AUTO
config PCI_NEW
def_bool y
depends on PCI
# This is also board-specific
config PCI_AUTO
bool
depends on PCI && !PCI_NEW
default y
config PCI_AUTO_UPDATE_RESOURCES
bool
depends on PCI_AUTO
default y if !SH_DREAMCAST
help
Selecting this option will cause the PCI auto code to leave your
BAR values alone. Otherwise they will be updated automatically. If
for some reason, you have a board that simply refuses to work
with its resources updated beyond what they are when the device
is powered up, set this to N. Everyone else will want this as Y.
......@@ -2,7 +2,6 @@
# Makefile for the PCI specific kernel interface routines under Linux.
#
obj-y += pci-lib.o
obj-$(CONFIG_PCI_AUTO) += pci.o pci-auto.o
obj-$(CONFIG_PCI_NEW) += pci-new.o
obj-$(CONFIG_CPU_SUBTYPE_SH7751) += pci-sh7751.o ops-sh4.o
......
This diff is collapsed.
/*
* arch/sh/drivers/pci/pci.c
*
* Copyright (c) 2002 M. R. Brown <mrbrown@linux-sh.org>
* Copyright (c) 2004 - 2006 Paul Mundt <lethal@linux-sh.org>
*
* These functions are collected here to reduce duplication of common
* code amongst the many platform-specific PCI support code files.
*
* These routines require the following board-specific routines:
* void pcibios_fixup_irqs();
*
* See include/asm-sh/pci.h for more information.
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*/
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/dma-debug.h>
#include <asm/io.h>
static int __init pcibios_init(void)
{
struct pci_channel *p;
struct pci_bus *bus;
int busno;
/* init channels */
busno = 0;
for (p = board_pci_channels; p->init; p++) {
if (p->init(p) == 0)
p->enabled = 1;
else
pr_err("Unable to init pci channel %d\n", busno);
busno++;
}
#ifdef CONFIG_PCI_AUTO
/* assign resources */
busno = 0;
for (p = board_pci_channels; p->init; p++)
if (p->enabled)
busno = pciauto_assign_resources(busno, p) + 1;
#endif
/* scan the buses */
busno = 0;
for (p = board_pci_channels; p->init; p++) {
if (p->enabled) {
bus = pci_scan_bus(busno, p->pci_ops, p);
busno = bus->subordinate + 1;
}
}
pci_fixup_irqs(pci_common_swizzle, pcibios_map_platform_irq);
dma_debug_add_bus(&pci_bus_type);
return 0;
}
subsys_initcall(pcibios_init);
/*
* Called after each bus is probed, but before its children
* are examined.
*/
void __devinit __weak pcibios_fixup_bus(struct pci_bus *bus)
{
pci_read_bridge_bases(bus);
}
EXPORT_SYMBOL(board_pci_channels);
......@@ -19,8 +19,6 @@
struct pci_channel {
struct pci_channel *next;
int (*init)(struct pci_channel *chan);
struct pci_ops *pci_ops;
struct resource *io_resource;
struct resource *mem_resource;
......@@ -28,20 +26,11 @@ struct pci_channel {
unsigned long io_offset;
unsigned long mem_offset;
int first_devfn;
int last_devfn;
int enabled;
unsigned long reg_base;
unsigned long io_map_base;
};
/*
* Each board initializes this array and terminates it with a NULL entry.
*/
extern struct pci_channel board_pci_channels[];
extern void register_pci_controller(struct pci_channel *hose);
extern unsigned long PCIBIOS_MIN_IO, PCIBIOS_MIN_MEM;
......@@ -122,13 +111,8 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev,
#endif
/* Board-specific fixup routines. */
int pcibios_init_platform(void);
int pcibios_map_platform_irq(struct pci_dev *dev, u8 slot, u8 pin);
#ifdef CONFIG_PCI_AUTO
int pciauto_assign_resources(int busno, struct pci_channel *hose);
#endif
extern void pcibios_resource_to_bus(struct pci_dev *dev,
struct pci_bus_region *region, struct resource *res);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment