xref: /OK3568_Linux_fs/kernel/include/asm-generic/irq.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef __ASM_GENERIC_IRQ_H
3*4882a593Smuzhiyun #define __ASM_GENERIC_IRQ_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun /*
6*4882a593Smuzhiyun  * NR_IRQS is the upper bound of how many interrupts can be handled
7*4882a593Smuzhiyun  * in the platform. It is used to size the static irq_map array,
8*4882a593Smuzhiyun  * so don't make it too big.
9*4882a593Smuzhiyun  */
10*4882a593Smuzhiyun #ifndef NR_IRQS
11*4882a593Smuzhiyun #define NR_IRQS 64
12*4882a593Smuzhiyun #endif
13*4882a593Smuzhiyun 
irq_canonicalize(int irq)14*4882a593Smuzhiyun static inline int irq_canonicalize(int irq)
15*4882a593Smuzhiyun {
16*4882a593Smuzhiyun 	return irq;
17*4882a593Smuzhiyun }
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun #endif /* __ASM_GENERIC_IRQ_H */
20