From e2de84920d9489f7fd87fa4b04d996d569def4fa Mon Sep 17 00:00:00 2001 From: Yoichi Yuasa Date: Sat, 3 Sep 2005 15:56:19 -0700 Subject: [PATCH] [PATCH] mips: add pcibios_select_root Add pcibios_select_root to MIPS. Signed-off-by: Yoichi Yuasa Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/asm-mips/pci.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 */ -- 2.39.5