diff options
Diffstat (limited to 'include/asm-mips/pci.h')
-rw-r--r-- | include/asm-mips/pci.h | 13 |
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) | |||
167 | /* Do platform specific device initialization at pci_enable_device() time */ | 167 | /* Do platform specific device initialization at pci_enable_device() time */ |
168 | extern int pcibios_plat_dev_init(struct pci_dev *dev); | 168 | extern int pcibios_plat_dev_init(struct pci_dev *dev); |
169 | 169 | ||
170 | static inline struct resource * | ||
171 | pcibios_select_root(struct pci_dev *pdev, struct resource *res) | ||
172 | { | ||
173 | struct resource *root = NULL; | ||
174 | |||
175 | if (res->flags & IORESOURCE_IO) | ||
176 | root = &ioport_resource; | ||
177 | if (res->flags & IORESOURCE_MEM) | ||
178 | root = &iomem_resource; | ||
179 | |||
180 | return root; | ||
181 | } | ||
182 | |||
170 | #endif /* _ASM_PCI_H */ | 183 | #endif /* _ASM_PCI_H */ |