intr.h revision 1.12
11.12Smatt/* 	$NetBSD: intr.h,v 1.12 2008/04/27 18:58:47 matt Exp $	*/
21.1Sichiro
31.1Sichiro/*
41.1Sichiro * Copyright (c) 1997 Mark Brinicombe.
51.1Sichiro * All rights reserved.
61.1Sichiro *
71.1Sichiro * Redistribution and use in source and binary forms, with or without
81.1Sichiro * modification, are permitted provided that the following conditions
91.1Sichiro * are met:
101.1Sichiro * 1. Redistributions of source code must retain the above copyright
111.1Sichiro *    notice, this list of conditions and the following disclaimer.
121.1Sichiro * 2. Redistributions in binary form must reproduce the above copyright
131.1Sichiro *    notice, this list of conditions and the following disclaimer in the
141.1Sichiro *    documentation and/or other materials provided with the distribution.
151.1Sichiro * 3. All advertising materials mentioning features or use of this software
161.1Sichiro *    must display the following acknowledgement:
171.1Sichiro *	This product includes software developed by Mark Brinicombe
181.1Sichiro *	for the NetBSD Project.
191.1Sichiro * 4. The name of the company nor the name of the author may be used to
201.1Sichiro *    endorse or promote products derived from this software without specific
211.1Sichiro *    prior written permission.
221.1Sichiro *
231.1Sichiro * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
241.1Sichiro * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
251.1Sichiro * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
261.1Sichiro * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
271.1Sichiro * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
281.1Sichiro * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
291.1Sichiro * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
301.1Sichiro * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
311.1Sichiro * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
321.1Sichiro * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
331.1Sichiro * SUCH DAMAGE.
341.1Sichiro */
351.1Sichiro
361.3Stoshii#ifndef _HPCARM_INTR_H_
371.3Stoshii#define _HPCARM_INTR_H_
381.1Sichiro
391.12Smatt#ifdef __HAVE_FAST_SOFTINTS
401.12Smatt#define IPL_NONE	0
411.12Smatt#define IPL_SOFTCLOCK	1
421.12Smatt#define IPL_SOFTBIO	2
431.12Smatt#define IPL_SOFTNET	3
441.12Smatt#define IPL_SOFTSERIAL	4
451.12Smatt#define IPL_VM		5
461.12Smatt#define IPL_SCHED	6
471.12Smatt#define IPL_HIGH	7
481.1Sichiro
491.11Sad#define NIPL		8
501.12Smatt#else
511.12Smatt#define IPL_NONE	0
521.12Smatt#define IPL_SOFTCLOCK	IPL_NONE
531.12Smatt#define IPL_SOFTBIO	IPL_NONE
541.12Smatt#define IPL_SOFTNET	IPL_NONE
551.12Smatt#define IPL_SOFTSERIAL	IPL_NONE
561.12Smatt#define IPL_VM		1
571.12Smatt#define IPL_SCHED	2
581.12Smatt#define IPL_HIGH	3
591.12Smatt
601.12Smatt#define NIPL		4
611.12Smatt#endif
621.1Sichiro
631.1Sichiro#define	IST_UNUSABLE	-1	/* interrupt cannot be used */
641.1Sichiro#define	IST_NONE	0	/* none (dummy) */
651.1Sichiro#define	IST_PULSE	1	/* pulsed */
661.1Sichiro#define	IST_EDGE	2	/* edge-triggered */
671.1Sichiro#define	IST_LEVEL	3	/* level-triggered */
681.1Sichiro
691.1Sichiro#include <machine/irqhandler.h>
701.6Sthorpej#include <arm/arm32/psl.h>
711.4Stoshii
721.3Stoshii#endif	/* _HPCARM_INTR_H */
73