diff options
Diffstat (limited to 'include/asm-parisc/pci.h')
-rw-r--r-- | include/asm-parisc/pci.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-parisc/pci.h b/include/asm-parisc/pci.h index 98d79a3d54fa..d0b761f690b5 100644 --- a/include/asm-parisc/pci.h +++ b/include/asm-parisc/pci.h | |||
@@ -257,6 +257,19 @@ extern void | |||
257 | pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res, | 257 | pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res, |
258 | struct pci_bus_region *region); | 258 | struct pci_bus_region *region); |
259 | 259 | ||
260 | static inline struct resource * | ||
261 | pcibios_select_root(struct pci_dev *pdev, struct resource *res) | ||
262 | { | ||
263 | struct resource *root = NULL; | ||
264 | |||
265 | if (res->flags & IORESOURCE_IO) | ||
266 | root = &ioport_resource; | ||
267 | if (res->flags & IORESOURCE_MEM) | ||
268 | root = &iomem_resource; | ||
269 | |||
270 | return root; | ||
271 | } | ||
272 | |||
260 | static inline void pcibios_add_platform_entries(struct pci_dev *dev) | 273 | static inline void pcibios_add_platform_entries(struct pci_dev *dev) |
261 | { | 274 | { |
262 | } | 275 | } |