intr.h revision 1.31
11.31Sthorpej/*	$NetBSD: intr.h,v 1.31 2024/01/19 03:09:05 thorpej Exp $	*/
21.1Stsutsui
31.21Stsutsui/*-
41.29Sthorpej * Copyright (c) 2024 The NetBSD Foundation, Inc.
51.1Stsutsui * All rights reserved.
61.1Stsutsui *
71.1Stsutsui * This code is derived from software contributed to The NetBSD Foundation
81.29Sthorpej * by Jason R. Thorpe.
91.1Stsutsui *
101.1Stsutsui * Redistribution and use in source and binary forms, with or without
111.1Stsutsui * modification, are permitted provided that the following conditions
121.1Stsutsui * are met:
131.1Stsutsui * 1. Redistributions of source code must retain the above copyright
141.1Stsutsui *    notice, this list of conditions and the following disclaimer.
151.1Stsutsui * 2. Redistributions in binary form must reproduce the above copyright
161.1Stsutsui *    notice, this list of conditions and the following disclaimer in the
171.1Stsutsui *    documentation and/or other materials provided with the distribution.
181.1Stsutsui *
191.21Stsutsui * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
201.21Stsutsui * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
211.21Stsutsui * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
221.21Stsutsui * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
231.21Stsutsui * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
241.21Stsutsui * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
251.21Stsutsui * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
261.21Stsutsui * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
271.21Stsutsui * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
281.21Stsutsui * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
291.21Stsutsui * POSSIBILITY OF SUCH DAMAGE.
301.1Stsutsui */
311.1Stsutsui
321.1Stsutsui#ifndef _NEWS68K_INTR_H_
331.29Sthorpej#define _NEWS68K_INTR_H_
341.1Stsutsui
351.31Sthorpej#ifdef _KERNEL
361.31Sthorpej
371.29Sthorpej#include <m68k/psl.h>
381.28Sriastrad
391.29Sthorpej#define	MACHINE_PSL_IPL_SOFTCLOCK	PSL_IPL2
401.29Sthorpej#define	MACHINE_PSL_IPL_SOFTBIO		PSL_IPL2
411.29Sthorpej#define	MACHINE_PSL_IPL_SOFTNET		PSL_IPL2
421.29Sthorpej#define	MACHINE_PSL_IPL_SOFTSERIAL	PSL_IPL2
431.29Sthorpej#define	MACHINE_PSL_IPL_VM		PSL_IPL5
441.29Sthorpej#define	MACHINE_PSL_IPL_SCHED		PSL_IPL7
451.28Sriastrad
461.30Sthorpej#define	MACHINE_INTREVCNT_NAMES						\
471.30Sthorpej	{ "spur", "AST", "softint", "lev3", "lev4", "lev5", "clock", "nmi" }
481.30Sthorpej
491.31Sthorpej#endif /* _KERNEL */
501.31Sthorpej
511.29Sthorpej#include <m68k/intr.h>
521.28Sriastrad
531.29Sthorpej#endif	/* _NEWS68K_INTR_H_ */
54