/* * linux/include/asm-generic/pci.h * * Copyright (C) 2003 Russell King */#ifndef _ASM_GENERIC_PCI_H#define _ASM_GENERIC_PCI_Hstaticinlinestructresource*pcibios_select_root(structpci_dev*pdev,structresource*res){structresource*root=NULL;if(res->flags&IORESOURCE_IO)root=&ioport_resource;if(res->flags&IORESOURCE_MEM)root=&iomem_resource;returnroot;}#ifndef HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQstaticinlineintpci_get_legacy_ide_irq(structpci_dev*dev,intchannel){returnchannel?15:14;}#endif /* HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ *//* * By default, assume that no iommu is in use and that the PCI * space is mapped to address physical 0. */#ifndef PCI_DMA_BUS_IS_PHYS#define PCI_DMA_BUS_IS_PHYS (1)#endif#endif /* _ASM_GENERIC_PCI_H */