Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags   |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef _ASM_IA64_IRQ_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define _ASM_IA64_IRQ_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * Copyright (C) 1999-2000, 2002 Hewlett-Packard Co
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  *	David Mosberger-Tang <davidm@hpl.hp.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  *	Stephane Eranian <eranian@hpl.hp.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  * 11/24/98	S.Eranian 	updated TIMER_IRQ and irq_canonicalize
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)  * 01/20/99	S.Eranian	added keyboard interrupt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)  * 02/29/00     D.Mosberger	moved most things into hw_irq.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #include <linux/cpumask.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #include <generated/nr-irqs.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) static __inline__ int
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) irq_canonicalize (int irq)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	/*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	 * We do the legacy thing here of pretending that irqs < 16
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	 * are 8259 irqs.  This really shouldn't be necessary at all,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	 * but we keep it here as serial.c still uses it...
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	return ((irq == 2) ? 9 : irq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) extern void set_irq_affinity_info (unsigned int irq, int dest, int redir);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) int create_irq(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) void destroy_irq(unsigned int irq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #endif /* _ASM_IA64_IRQ_H */