aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/pci.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-04-20 03:14:29 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-04-20 03:14:29 -0400
commita3c0e0d0032d5bbfd7dc04827a257c717d432a5b (patch)
treeba853dce3346b33c44cd4d224ca662632186594e /arch/sh/include/asm/pci.h
parent9833385131fc4e8c52f95320ab899051d1c06831 (diff)
sh: pci: Consolidate pcibios_align_resource() definitions.
This introduces a saner pcibios_align_resource() that can be used regardless of whether pci-auto or pci-new are being used, and consolidates it in pci-lib.c. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/pci.h')
-rw-r--r--arch/sh/include/asm/pci.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/sh/include/asm/pci.h b/arch/sh/include/asm/pci.h
index 46afd449739d..5212bf6dd4b1 100644
--- a/arch/sh/include/asm/pci.h
+++ b/arch/sh/include/asm/pci.h
@@ -33,10 +33,7 @@ struct pci_channel {
33 */ 33 */
34extern struct pci_channel board_pci_channels[]; 34extern struct pci_channel board_pci_channels[];
35 35
36/* ugly as hell, but makes drivers/pci/setup-res.c compile and work */ 36extern unsigned long PCIBIOS_MIN_IO, PCIBIOS_MIN_MEM;
37#define __PCI_CHAN(bus) ((struct pci_channel *)bus->sysdata)
38#define PCIBIOS_MIN_IO __PCI_CHAN(bus)->io_resource->start
39#define PCIBIOS_MIN_MEM __PCI_CHAN(bus)->mem_resource->start
40 37
41struct pci_dev; 38struct pci_dev;
42 39