Home | History | Annotate | Download | only in machine
      1 /*	$NetBSD: intr.h,v 1.1 2006/04/07 14:21:18 cherry Exp $	*/
      2 
      3 /* XXX: cherry: To Be fixed when we switch on interrupts. */
      4 
      5 #ifndef _IA64_INTR_H_
      6 #define _IA64_INTR_H_
      7 
      8 #define	IPL_NONE	0	/* XXX: Placeholder */
      9 #define	IPL_BIO		0	/* XXX: Placeholder */
     10 #define	IPL_NET		0	/* XXX: Placeholder */
     11 #define	IPL_TTY		0	/* XXX: Placeholder */
     12 #define	IPL_CLOCK	0	/* XXX: Placeholder */
     13 #define	IPL_HIGH	0	/* XXX: Placeholder */
     14 #define	IPL_SERIAL	0	/* XXX: Placeholder */
     15 #define IPL_SCHED       0       /* XXX: Placeholder */
     16 #define	IPL_VM    	0	/* XXX: Placeholder */
     17 
     18 #define IPL_SOFTCLOCK   0	/* XXX: Placeholder */
     19 #define IPL_SOFTNET     0	/* XXX: Placeholder */
     20 #define IPL_SOFTSERIAL  0	/* XXX: Placeholder */
     21 
     22 static __inline int splraise(int dummy) { return 0; }
     23 static __inline void spllower(int dummy) { }
     24 
     25 /*
     26  * Hardware interrupt masks
     27  */
     28 #define	splbio()	splraise(IPL_BIO)
     29 #define	splnet()	splraise(IPL_NET)
     30 #define	spltty()	splraise(IPL_TTY)
     31 #define	splaudio()	splraise(IPL_AUDIO)
     32 #define	splclock()	splraise(IPL_CLOCK)
     33 #define	splstatclock()	splclock()
     34 #define	splserial()	splraise(IPL_SERIAL)
     35 #define splipi()	splraise(IPL_IPI)
     36 
     37 
     38 /*
     39  * Miscellaneous
     40  */
     41 #define	splvm()		splraise(IPL_VM)
     42 #define	splhigh()	splraise(IPL_HIGH)
     43 #define	spl0()		spllower(IPL_NONE)
     44 #define	splsched()	splraise(IPL_SCHED)
     45 #define spllock() 	splhigh()
     46 #define	splx(x)		spllower(x)
     47 
     48 /*
     49  * Software interrupt masks
     50  *
     51  * NOTE: spllowersoftclock() is used by hardclock() to lower the priority from
     52  * clock to softclock before it calls softclock().
     53  */
     54 
     55 #define spllowersoftclock() spllower(IPL_SOFTCLOCK)
     56 #define	splsoftclock() splraise(IPL_SOFTCLOCK)
     57 #define	splsoftnet()	splraise(IPL_SOFTNET)
     58 #define	splsoftserial()	splraise(IPL_SOFTSERIAL)
     59 
     60 #endif /* ! _IA64_INTR_H_ */
     61