16fc729afSOlivier Houchard /* $NetBSD: intr.h,v 1.7 2003/06/16 20:01:00 thorpej Exp $ */ 26fc729afSOlivier Houchard 3d8315c79SWarner Losh /*- 46fc729afSOlivier Houchard * Copyright (c) 1997 Mark Brinicombe. 56fc729afSOlivier Houchard * All rights reserved. 66fc729afSOlivier Houchard * 76fc729afSOlivier Houchard * Redistribution and use in source and binary forms, with or without 86fc729afSOlivier Houchard * modification, are permitted provided that the following conditions 96fc729afSOlivier Houchard * are met: 106fc729afSOlivier Houchard * 1. Redistributions of source code must retain the above copyright 116fc729afSOlivier Houchard * notice, this list of conditions and the following disclaimer. 126fc729afSOlivier Houchard * 2. Redistributions in binary form must reproduce the above copyright 136fc729afSOlivier Houchard * notice, this list of conditions and the following disclaimer in the 146fc729afSOlivier Houchard * documentation and/or other materials provided with the distribution. 156fc729afSOlivier Houchard * 3. All advertising materials mentioning features or use of this software 166fc729afSOlivier Houchard * must display the following acknowledgement: 176fc729afSOlivier Houchard * This product includes software developed by Mark Brinicombe 186fc729afSOlivier Houchard * for the NetBSD Project. 196fc729afSOlivier Houchard * 4. The name of the company nor the name of the author may be used to 206fc729afSOlivier Houchard * endorse or promote products derived from this software without specific 216fc729afSOlivier Houchard * prior written permission. 226fc729afSOlivier Houchard * 236fc729afSOlivier Houchard * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 246fc729afSOlivier Houchard * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 256fc729afSOlivier Houchard * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 266fc729afSOlivier Houchard * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 276fc729afSOlivier Houchard * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 286fc729afSOlivier Houchard * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 296fc729afSOlivier Houchard * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 306fc729afSOlivier Houchard * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 316fc729afSOlivier Houchard * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 326fc729afSOlivier Houchard * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 336fc729afSOlivier Houchard * SUCH DAMAGE. 346fc729afSOlivier Houchard * 356fc729afSOlivier Houchard * $FreeBSD$ 366fc729afSOlivier Houchard * 376fc729afSOlivier Houchard */ 386fc729afSOlivier Houchard 396fc729afSOlivier Houchard #ifndef _MACHINE_INTR_H_ 406fc729afSOlivier Houchard #define _MACHINE_INTR_H_ 416fc729afSOlivier Houchard 427c320e5bSOlivier Houchard #define NIRQ 32 436fc729afSOlivier Houchard 446fc729afSOlivier Houchard #include <machine/psl.h> 456fc729afSOlivier Houchard 467c320e5bSOlivier Houchard int arm_get_irqnb(void *); 477c320e5bSOlivier Houchard void arm_mask_irqs(int); 487c320e5bSOlivier Houchard void arm_unmask_irqs(int); 496fc729afSOlivier Houchard void set_splmasks(void); 506fc729afSOlivier Houchard void arm_setup_irqhandler(const char *, void (*)(void*), void *, int, int, 516fc729afSOlivier Houchard void **); 526fc729afSOlivier Houchard #endif /* _MACHINE_INTR_H */ 53