diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-01-29 13:38:13 (GMT) |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-01-29 13:38:13 (GMT) |
commit | 320e68da59353fe6ad51b81f6865c4b674ad66ea (patch) | |
tree | 9fc7f0f07a6a656a6384736f17f7d52da9a9f79e /arch/sh/include/asm | |
parent | ac8ab54a8e41a5ed0ee2161d45b6dc855490989f (diff) | |
download | linux-fsl-qoriq-320e68da59353fe6ad51b81f6865c4b674ad66ea.tar.xz |
sh: support PCI domains.
Newer SH parts are now commonly shipping with multiple controllers, so
we wire up PCI domain support to deal with them. Shamelessly cloned from
the MIPS implementation.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm')
-rw-r--r-- | arch/sh/include/asm/pci.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/sh/include/asm/pci.h b/arch/sh/include/asm/pci.h index f362d8a..d124a00 100644 --- a/arch/sh/include/asm/pci.h +++ b/arch/sh/include/asm/pci.h @@ -15,6 +15,7 @@ */ struct pci_channel { struct pci_channel *next; + struct pci_bus *bus; struct pci_ops *pci_ops; struct resource *io_resource; @@ -24,8 +25,10 @@ struct pci_channel { unsigned long mem_offset; unsigned long reg_base; - unsigned long io_map_base; + + unsigned int index; + unsigned int need_domain_info; }; extern void register_pci_controller(struct pci_channel *hose); @@ -108,6 +111,14 @@ extern void pcibios_resource_to_bus(struct pci_dev *dev, extern void pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res, struct pci_bus_region *region); +#define pci_domain_nr(bus) ((struct pci_channel *)(bus)->sysdata)->index + +static inline int pci_proc_domain(struct pci_bus *bus) +{ + struct pci_channel *hose = bus->sysdata; + return hose->need_domain_info; +} + /* Chances are this interrupt is wired PC-style ... */ static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) { |