xref: /netbsd-src/sys/arch/amigappc/include/intr.h (revision 1e72df6a037fdd3c6d3014a2679ffff7daab84ca)
1*1e72df6aStsutsui /*	$NetBSD: intr.h,v 1.27 2019/12/15 16:48:25 tsutsui Exp $	*/
20ce3451dSis 
30ce3451dSis /*-
40ce3451dSis  * Copyright (c) 1997 The NetBSD Foundation, Inc.
50ce3451dSis  * All rights reserved.
60ce3451dSis  *
70ce3451dSis  * This code is derived from software contributed to The NetBSD Foundation
80ce3451dSis  * by Ignatios Souvatzis.
90ce3451dSis  *
100ce3451dSis  * Redistribution and use in source and binary forms, with or without
110ce3451dSis  * modification, are permitted provided that the following conditions
120ce3451dSis  * are met:
130ce3451dSis  * 1. Redistributions of source code must retain the above copyright
140ce3451dSis  *    notice, this list of conditions and the following disclaimer.
150ce3451dSis  * 2. Redistributions in binary form must reproduce the above copyright
160ce3451dSis  *    notice, this list of conditions and the following disclaimer in the
170ce3451dSis  *    documentation and/or other materials provided with the distribution.
180ce3451dSis  *
190ce3451dSis  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
200ce3451dSis  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
210ce3451dSis  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
220ce3451dSis  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
230ce3451dSis  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
240ce3451dSis  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
250ce3451dSis  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
260ce3451dSis  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
270ce3451dSis  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
280ce3451dSis  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
290ce3451dSis  * POSSIBILITY OF SUCH DAMAGE.
300ce3451dSis  */
310ce3451dSis 
32b6cfe437Sphx #ifndef _AMIGAPPC_INTR_H_
33b6cfe437Sphx #define _AMIGAPPC_INTR_H_
340ce3451dSis 
35e8c5c358Sphx #ifdef _KERNEL
36e8c5c358Sphx #include <amiga/amiga/isr.h>
37e8c5c358Sphx #endif
38b6cfe437Sphx #include <powerpc/intr.h>
390ce3451dSis 
40638ebb87Smatt /*
41638ebb87Smatt  * Compatibility with m68k/include/psl.h for amiga/68k devices.
42638ebb87Smatt  * Has to match with interrupt IPLs in amigappc_install_handlers().
43638ebb87Smatt  */
44638ebb87Smatt #define spl1()		splbio()
45638ebb87Smatt #define spl2()		splbio()
46638ebb87Smatt #define spl3()		spltty()
47638ebb87Smatt #define spl4()		splaudio()
48638ebb87Smatt #define spl5()		splserial()
49638ebb87Smatt #define spl6()		splserial()
50638ebb87Smatt #define spl7()		splhigh()
51638ebb87Smatt 
52b6cfe437Sphx #endif /* !_AMIGAPPC_INTR_H_ */
53