2 * linux/include/asm-generic/pci.h
4 * Copyright (C) 2003 Russell King
6 #ifndef _ASM_GENERIC_PCI_H
7 #define _ASM_GENERIC_PCI_H
9 #define ARCH_HAS_GENERIC_PCI_OFFSETS
11 static inline struct resource
*
12 pcibios_select_root(struct pci_dev
*pdev
, struct resource
*res
)
14 struct resource
*root
= NULL
;
16 if (res
->flags
& IORESOURCE_IO
)
17 root
= &ioport_resource
;
18 if (res
->flags
& IORESOURCE_MEM
)
19 root
= &iomem_resource
;
24 #ifndef HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ
25 static inline int pci_get_legacy_ide_irq(struct pci_dev
*dev
, int channel
)
27 return channel
? 15 : 14;
29 #endif /* HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ */
32 * By default, assume that no iommu is in use and that the PCI
33 * space is mapped to address physical 0.
35 #ifndef PCI_DMA_BUS_IS_PHYS
36 #define PCI_DMA_BUS_IS_PHYS (1)
39 #endif /* _ASM_GENERIC_PCI_H */