summaryrefslogtreecommitdiff
path: root/include/asm-mips
diff options
context:
space:
mode:
authorYoichi Yuasa <yuasa@hh.iij4u.or.jp>2005-09-04 02:56:19 +0400
committerLinus Torvalds <torvalds@evo.osdl.org>2005-09-05 11:06:08 +0400
commite2de84920d9489f7fd87fa4b04d996d569def4fa (patch)
tree85dbab6cbb94a4e8db9b54869607f312f313ef4e /include/asm-mips
parent4ce588cd563e6b817adb0c7d03b3ed9c74cadc27 (diff)
downloadlinux-e2de84920d9489f7fd87fa4b04d996d569def4fa.tar.xz
[PATCH] mips: add pcibios_select_root
Add pcibios_select_root to MIPS. Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp> Cc: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r--include/asm-mips/pci.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-mips/pci.h b/include/asm-mips/pci.h
index 092900f11654..049f01f648ed 100644
--- a/include/asm-mips/pci.h
+++ b/include/asm-mips/pci.h
@@ -167,4 +167,17 @@ static inline void pcibios_add_platform_entries(struct pci_dev *dev)
/* Do platform specific device initialization at pci_enable_device() time */
extern int pcibios_plat_dev_init(struct pci_dev *dev);
+static inline struct resource *
+pcibios_select_root(struct pci_dev *pdev, struct resource *res)
+{
+ struct resource *root = NULL;
+
+ if (res->flags & IORESOURCE_IO)
+ root = &ioport_resource;
+ if (res->flags & IORESOURCE_MEM)
+ root = &iomem_resource;
+
+ return root;
+}
+
#endif /* _ASM_PCI_H */