11.27Stsutsui/* $NetBSD: intr.h,v 1.27 2019/12/15 16:48:25 tsutsui Exp $ */ 21.1Sis 31.1Sis/*- 41.1Sis * Copyright (c) 1997 The NetBSD Foundation, Inc. 51.1Sis * All rights reserved. 61.1Sis * 71.1Sis * This code is derived from software contributed to The NetBSD Foundation 81.1Sis * by Ignatios Souvatzis. 91.1Sis * 101.1Sis * Redistribution and use in source and binary forms, with or without 111.1Sis * modification, are permitted provided that the following conditions 121.1Sis * are met: 131.1Sis * 1. Redistributions of source code must retain the above copyright 141.1Sis * notice, this list of conditions and the following disclaimer. 151.1Sis * 2. Redistributions in binary form must reproduce the above copyright 161.1Sis * notice, this list of conditions and the following disclaimer in the 171.1Sis * documentation and/or other materials provided with the distribution. 181.1Sis * 191.1Sis * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 201.1Sis * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 211.1Sis * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 221.1Sis * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 231.1Sis * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 241.1Sis * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 251.1Sis * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 261.1Sis * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 271.1Sis * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 281.1Sis * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 291.1Sis * POSSIBILITY OF SUCH DAMAGE. 301.1Sis */ 311.1Sis 321.22Sphx#ifndef _AMIGAPPC_INTR_H_ 331.22Sphx#define _AMIGAPPC_INTR_H_ 341.1Sis 351.23Sphx#ifdef _KERNEL 361.23Sphx#include <amiga/amiga/isr.h> 371.23Sphx#endif 381.22Sphx#include <powerpc/intr.h> 391.1Sis 401.26Smatt/* 411.26Smatt * Compatibility with m68k/include/psl.h for amiga/68k devices. 421.26Smatt * Has to match with interrupt IPLs in amigappc_install_handlers(). 431.26Smatt */ 441.26Smatt#define spl1() splbio() 451.26Smatt#define spl2() splbio() 461.26Smatt#define spl3() spltty() 471.26Smatt#define spl4() splaudio() 481.26Smatt#define spl5() splserial() 491.26Smatt#define spl6() splserial() 501.26Smatt#define spl7() splhigh() 511.26Smatt 521.22Sphx#endif /* !_AMIGAPPC_INTR_H_ */ 53