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_SH_IRQ_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define __ASM_SH_IRQ_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <linux/cpumask.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #include <asm/machvec.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  * Only legacy non-sparseirq platforms have to set a reasonably sane
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  * value here. sparseirq platforms allocate their irq_descs on the fly,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)  * so will expand automatically based on the number of registered IRQs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #ifdef CONFIG_SPARSE_IRQ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) # define NR_IRQS		8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) # define NR_IRQS		512
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)  * This is a special IRQ number for indicating that no IRQ has been
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)  * triggered and to simply ignore the IRQ dispatch. This is a special
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)  * case that can happen with IRQ auto-distribution when multiple CPUs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)  * are woken up and signalled in parallel.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #define NO_IRQ_IGNORE		((unsigned int)-1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)  * Simple Mask Register Support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) extern void make_maskreg_irq(unsigned int irq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) extern unsigned short *irq_mask_register;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)  * PINT IRQs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) void init_IRQ_pint(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) void make_imask_irq(unsigned int irq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) static inline int generic_irq_demux(int irq)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 	return irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #define irq_demux(irq)		sh_mv.mv_irq_demux(irq)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) void init_IRQ(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) void migrate_irqs(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) asmlinkage int do_IRQ(unsigned int irq, struct pt_regs *regs);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #ifdef CONFIG_IRQSTACKS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) extern void irq_ctx_init(int cpu);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) extern void irq_ctx_exit(int cpu);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) # define __ARCH_HAS_DO_SOFTIRQ
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) # define irq_ctx_init(cpu) do { } while (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) # define irq_ctx_exit(cpu) do { } while (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) #ifdef CONFIG_INTC_BALANCING
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) extern unsigned int irq_lookup(unsigned int irq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) extern void irq_finish(unsigned int irq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) #define irq_lookup(irq)		(irq)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) #define irq_finish(irq)		do { } while (0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) #include <asm-generic/irq.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) #endif /* __ASM_SH_IRQ_H */