xref: /OK3568_Linux_fs/kernel/include/asm-generic/pci.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * linux/include/asm-generic/pci.h
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  *  Copyright (C) 2003 Russell King
6*4882a593Smuzhiyun  */
7*4882a593Smuzhiyun #ifndef _ASM_GENERIC_PCI_H
8*4882a593Smuzhiyun #define _ASM_GENERIC_PCI_H
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun #ifndef HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ
pci_get_legacy_ide_irq(struct pci_dev * dev,int channel)11*4882a593Smuzhiyun static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
12*4882a593Smuzhiyun {
13*4882a593Smuzhiyun 	return channel ? 15 : 14;
14*4882a593Smuzhiyun }
15*4882a593Smuzhiyun #endif /* HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ */
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun #endif /* _ASM_GENERIC_PCI_H */
18