intr.h revision 1.9
11.9Smatt/* $NetBSD: intr.h,v 1.9 2008/04/27 18:58:47 matt Exp $ */ 21.1Sthorpej 31.1Sthorpej/* 41.1Sthorpej * Copyright (c) 1997 Mark Brinicombe. 51.1Sthorpej * All rights reserved. 61.1Sthorpej * 71.1Sthorpej * Redistribution and use in source and binary forms, with or without 81.1Sthorpej * modification, are permitted provided that the following conditions 91.1Sthorpej * are met: 101.1Sthorpej * 1. Redistributions of source code must retain the above copyright 111.1Sthorpej * notice, this list of conditions and the following disclaimer. 121.1Sthorpej * 2. Redistributions in binary form must reproduce the above copyright 131.1Sthorpej * notice, this list of conditions and the following disclaimer in the 141.1Sthorpej * documentation and/or other materials provided with the distribution. 151.1Sthorpej * 3. All advertising materials mentioning features or use of this software 161.1Sthorpej * must display the following acknowledgement: 171.1Sthorpej * This product includes software developed by Mark Brinicombe 181.1Sthorpej * for the NetBSD Project. 191.1Sthorpej * 4. The name of the company nor the name of the author may be used to 201.1Sthorpej * endorse or promote products derived from this software without specific 211.1Sthorpej * prior written permission. 221.1Sthorpej * 231.1Sthorpej * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 241.1Sthorpej * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 251.1Sthorpej * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 261.1Sthorpej * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 271.1Sthorpej * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 281.1Sthorpej * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 291.1Sthorpej * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 301.1Sthorpej * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 311.1Sthorpej * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 321.1Sthorpej * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 331.1Sthorpej * SUCH DAMAGE. 341.1Sthorpej */ 351.1Sthorpej 361.7Smatt#ifndef _SHARK_INTR_H_ 371.7Smatt#define _SHARK_INTR_H_ 381.1Sthorpej 391.5Smatt#define IPL_NONE 0 401.9Smatt#ifdef __HAVE_FAST_SOFTINTS 411.8Sad#define IPL_SOFTCLOCK 1 421.8Sad#define IPL_SOFTBIO 2 431.6Smatt#define IPL_SOFTNET 3 441.8Sad#define IPL_SOFTSERIAL 4 451.8Sad#define IPL_VM 5 461.8Sad#define IPL_SCHED 6 471.8Sad#define IPL_HIGH 7 481.1Sthorpej 491.9Smatt#define NIPL 8 501.9Smatt#else 511.9Smatt#define IPL_SOFTCLOCK IPL_NONE 521.9Smatt#define IPL_SOFTBIO IPL_NONE 531.9Smatt#define IPL_SOFTNET IPL_NONE 541.9Smatt#define IPL_SOFTSERIAL IPL_NONE 551.9Smatt#define IPL_VM 1 561.9Smatt#define IPL_SCHED 2 571.9Smatt#define IPL_HIGH 3 581.9Smatt 591.9Smatt#define NIPL 4 601.9Smatt#endif 611.1Sthorpej 621.1Sthorpej#define IST_UNUSABLE -1 /* interrupt cannot be used */ 631.1Sthorpej#define IST_NONE 0 /* none (dummy) */ 641.1Sthorpej#define IST_PULSE 1 /* pulsed */ 651.1Sthorpej#define IST_EDGE 2 /* edge-triggered */ 661.1Sthorpej#define IST_LEVEL 3 /* level-triggered */ 671.1Sthorpej 681.1Sthorpej#include <arm/arm32/psl.h> 691.1Sthorpej 701.7Smatt#endif /* _SHARK_INTR_H */ 71