xref: /linux/arch/sparc/kernel/irq.h (revision 32231a66b4e1b649c346dc76b7d191f7e64a663a)
1*32231a66SAl Viro #include <asm/btfixup.h>
2*32231a66SAl Viro 
3*32231a66SAl Viro BTFIXUPDEF_CALL(void, disable_pil_irq, unsigned int)
4*32231a66SAl Viro BTFIXUPDEF_CALL(void, enable_pil_irq, unsigned int)
5*32231a66SAl Viro BTFIXUPDEF_CALL(void, clear_clock_irq, void)
6*32231a66SAl Viro BTFIXUPDEF_CALL(void, clear_profile_irq, int)
7*32231a66SAl Viro BTFIXUPDEF_CALL(void, load_profile_irq, int, unsigned int)
8*32231a66SAl Viro 
9*32231a66SAl Viro static inline void disable_pil_irq(unsigned int irq)
10*32231a66SAl Viro {
11*32231a66SAl Viro 	BTFIXUP_CALL(disable_pil_irq)(irq);
12*32231a66SAl Viro }
13*32231a66SAl Viro 
14*32231a66SAl Viro static inline void enable_pil_irq(unsigned int irq)
15*32231a66SAl Viro {
16*32231a66SAl Viro 	BTFIXUP_CALL(enable_pil_irq)(irq);
17*32231a66SAl Viro }
18*32231a66SAl Viro 
19*32231a66SAl Viro static inline void clear_clock_irq(void)
20*32231a66SAl Viro {
21*32231a66SAl Viro 	BTFIXUP_CALL(clear_clock_irq)();
22*32231a66SAl Viro }
23*32231a66SAl Viro 
24*32231a66SAl Viro static inline void clear_profile_irq(int irq)
25*32231a66SAl Viro {
26*32231a66SAl Viro 	BTFIXUP_CALL(clear_profile_irq)(irq);
27*32231a66SAl Viro }
28*32231a66SAl Viro 
29*32231a66SAl Viro static inline void load_profile_irq(int cpu, int limit)
30*32231a66SAl Viro {
31*32231a66SAl Viro 	BTFIXUP_CALL(load_profile_irq)(cpu, limit);
32*32231a66SAl Viro }
33*32231a66SAl Viro 
34*32231a66SAl Viro extern void (*sparc_init_timers)(irq_handler_t lvl10_irq);
35*32231a66SAl Viro 
36*32231a66SAl Viro extern void claim_ticker14(irq_handler_t irq_handler,
37*32231a66SAl Viro 			   int irq,
38*32231a66SAl Viro 			   unsigned int timeout);
39*32231a66SAl Viro 
40*32231a66SAl Viro #ifdef CONFIG_SMP
41*32231a66SAl Viro BTFIXUPDEF_CALL(void, set_cpu_int, int, int)
42*32231a66SAl Viro BTFIXUPDEF_CALL(void, clear_cpu_int, int, int)
43*32231a66SAl Viro BTFIXUPDEF_CALL(void, set_irq_udt, int)
44*32231a66SAl Viro 
45*32231a66SAl Viro #define set_cpu_int(cpu,level) BTFIXUP_CALL(set_cpu_int)(cpu,level)
46*32231a66SAl Viro #define clear_cpu_int(cpu,level) BTFIXUP_CALL(clear_cpu_int)(cpu,level)
47*32231a66SAl Viro #define set_irq_udt(cpu) BTFIXUP_CALL(set_irq_udt)(cpu)
48*32231a66SAl Viro #endif
49