diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-02-01 06:01:50 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-02-01 06:01:50 -0500 |
commit | b6c58b1d987a5795086c5c2babd8c7367d2fdb8c (patch) | |
tree | 3ec992af50f44dd09ff125165ea1c4ef41b2aecc /arch/sh/include | |
parent | ef407beefbd9928792ccc93857e408e0057bc17b (diff) |
sh: Improved multi-resource handling for SH7780 PCI.
The SH7780 PCI controller supports 3 different ranges of PCI memory in
addition to its PCI I/O window. In the case of 29-bit mode, only 2 memory
windows are supported, while in 32-bit mode all 3 are visible. This
attempts to make the resource handling completely dynamic and to permit
platforms to map in as many apertures as they can handle.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include')
-rw-r--r-- | arch/sh/include/asm/pci.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/sh/include/asm/pci.h b/arch/sh/include/asm/pci.h index 1de83f2161f7..6d762cca2312 100644 --- a/arch/sh/include/asm/pci.h +++ b/arch/sh/include/asm/pci.h | |||
@@ -18,8 +18,9 @@ struct pci_channel { | |||
18 | struct pci_bus *bus; | 18 | struct pci_bus *bus; |
19 | 19 | ||
20 | struct pci_ops *pci_ops; | 20 | struct pci_ops *pci_ops; |
21 | struct resource *io_resource; | 21 | |
22 | struct resource *mem_resource; | 22 | struct resource *resources; |
23 | unsigned int nr_resources; | ||
23 | 24 | ||
24 | unsigned long io_offset; | 25 | unsigned long io_offset; |
25 | unsigned long mem_offset; | 26 | unsigned long mem_offset; |