intr.h revision 1.11
11.11Sad/* $NetBSD: intr.h,v 1.11 2007/12/03 15:33:42 ad 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.5Stoshii#define IPL_SOFTCLOCK 0 401.11Sad#define IPL_SOFTBIO 1 411.11Sad#define IPL_SOFTNET 2 421.11Sad#define IPL_SOFTSERIAL 3 431.11Sad#define IPL_VM 4 441.11Sad#define IPL_SCHED 5 451.11Sad#define IPL_HIGH 6 461.11Sad#define IPL_NONE 7 471.1Sichiro 481.11Sad#define NIPL 8 491.1Sichiro 501.1Sichiro#define IST_UNUSABLE -1 /* interrupt cannot be used */ 511.1Sichiro#define IST_NONE 0 /* none (dummy) */ 521.1Sichiro#define IST_PULSE 1 /* pulsed */ 531.1Sichiro#define IST_EDGE 2 /* edge-triggered */ 541.1Sichiro#define IST_LEVEL 3 /* level-triggered */ 551.1Sichiro 561.1Sichiro/* Software interrupt priority levels */ 571.1Sichiro 581.1Sichiro#define SOFTIRQ_CLOCK 0 591.11Sad#define SOFTIRQ_BIO 1 601.11Sad#define SOFTIRQ_NET 2 611.11Sad#define SOFTIRQ_SERIAL 3 621.1Sichiro 631.1Sichiro#define SOFTIRQ_BIT(x) (1 << x) 641.1Sichiro 651.1Sichiro#include <machine/irqhandler.h> 661.6Sthorpej#include <arm/arm32/psl.h> 671.4Stoshii 681.3Stoshii#endif /* _HPCARM_INTR_H */ 69