Home | History | Annotate | Line # | Download | only in include
psl.h revision 1.14
      1  1.14  thorpej /*	$NetBSD: psl.h,v 1.14 1999/08/05 18:08:09 thorpej Exp $	*/
      2   1.7      cgd 
      3   1.6   chopps #ifndef _MACHINE_PSL_H_
      4   1.6   chopps #define _MACHINE_PSL_H_
      5   1.1       mw 
      6   1.4       mw #include <m68k/psl.h>
      7   1.5   chopps 
      8   1.8    veego #if defined(_KERNEL) && !defined(_LOCORE)
      9   1.8    veego 
     10  1.14  thorpej #define	spl0()			_spl0()	/* we have real software interrupts */
     11   1.8    veego 
     12  1.14  thorpej #define splnone()		spl0()
     13  1.14  thorpej #define	spllowersoftclock()	spl1()
     14   1.8    veego 
     15  1.14  thorpej #define splsoftclock()		splraise1()
     16  1.14  thorpej #define splsoftnet()		splraise1()
     17  1.14  thorpej #define splbio()		splraise3()
     18  1.14  thorpej #define splnet()		splraise3()
     19  1.11       is 
     20  1.11       is /*
     21  1.12       is  * splserial hack, idea by Jason Thorpe.
     22  1.12       is  * drivers which need it (at the present only the coms) raise the variable to
     23  1.13   kleink  * their serial interrupt level.
     24  1.11       is  *
     25  1.12       is  * serialspl is statically initialized in machdep.c at the moment; should
     26  1.11       is  * be some driver independent file.
     27  1.11       is  *
     28  1.12       is  * XXX should serialspl be volatile? I think not; it is intended to be set only
     29  1.11       is  * during xxx_attach() time, and will be used only later.
     30  1.11       is  *	-is
     31  1.11       is  */
     32  1.11       is 
     33  1.12       is extern u_int16_t	amiga_serialspl;
     34  1.14  thorpej #define splserial()	_splraise(amiga_serialspl)
     35  1.14  thorpej #define spltty()	splraise4()
     36  1.11       is #define splimp()	spltty()	/* XXX for the full story, see i386 */
     37  1.11       is 
     38   1.8    veego #ifndef LEV6_DEFER
     39  1.14  thorpej #define splclock()	splraise6()
     40  1.14  thorpej #define splstatclock()	splraise6()
     41  1.14  thorpej #define splvm()		splraise6()
     42   1.8    veego #define splhigh()	spl7()
     43   1.8    veego #define splsched()	spl7()
     44   1.8    veego #else
     45  1.14  thorpej #define splclock()	splraise4()
     46  1.14  thorpej #define splstatclock()	splraise4()
     47  1.14  thorpej #define splvm()		splraise4()
     48  1.14  thorpej #define splhigh()	splraise4()
     49  1.14  thorpej #define splsched()	splraise4()
     50   1.5   chopps #endif
     51   1.8    veego 
     52  1.14  thorpej #define splx(s)		_spl(s)
     53   1.8    veego 
     54   1.8    veego #endif	/* KERNEL && !_LOCORE */
     55   1.8    veego #endif	/* _MACHINE_PSL_H_ */
     56