Skip to content

Commit

Permalink
[PATCH] mips: add pcibios_select_root
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yoichi Yuasa authored and Linus Torvalds committed Sep 5, 2005
1 parent 4ce588c commit e2de849
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions include/asm-mips/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit e2de849

Please sign in to comment.