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>
This commit is contained in:
Paul Mundt
2010-02-01 20:01:50 +09:00
parent ef407beefb
commit b6c58b1d98
9 changed files with 133 additions and 92 deletions

View File

@@ -18,8 +18,9 @@ struct pci_channel {
struct pci_bus *bus;
struct pci_ops *pci_ops;
struct resource *io_resource;
struct resource *mem_resource;
struct resource *resources;
unsigned int nr_resources;
unsigned long io_offset;
unsigned long mem_offset;