1*42b74af3Sphx /* $NetBSD: isr.h,v 1.13 2009/05/19 18:39:26 phx Exp $ */ 2ec77f0b3Scgd 333e84123Smw /* 433e84123Smw * Copyright (c) 1982 Regents of the University of California. 533e84123Smw * All rights reserved. 633e84123Smw * 733e84123Smw * Redistribution and use in source and binary forms, with or without 833e84123Smw * modification, are permitted provided that the following conditions 933e84123Smw * are met: 1033e84123Smw * 1. Redistributions of source code must retain the above copyright 1133e84123Smw * notice, this list of conditions and the following disclaimer. 1233e84123Smw * 2. Redistributions in binary form must reproduce the above copyright 1333e84123Smw * notice, this list of conditions and the following disclaimer in the 1433e84123Smw * documentation and/or other materials provided with the distribution. 15aad01611Sagc * 3. Neither the name of the University nor the names of its contributors 1633e84123Smw * may be used to endorse or promote products derived from this software 1733e84123Smw * without specific prior written permission. 1833e84123Smw * 1933e84123Smw * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2033e84123Smw * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2133e84123Smw * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2233e84123Smw * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2333e84123Smw * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2433e84123Smw * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2533e84123Smw * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2633e84123Smw * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2733e84123Smw * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2833e84123Smw * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2933e84123Smw * SUCH DAMAGE. 3033e84123Smw * 312be73160Smw * @(#)isr.h 7.1 (Berkeley) 5/8/90 3233e84123Smw */ 3333e84123Smw 34fa924b7bSchs #ifndef _AMIGA_ISR_H_ 35fa924b7bSchs #define _AMIGA_ISR_H_ 1 36fa924b7bSchs 3733e84123Smw struct isr { 3833e84123Smw struct isr *isr_forw; 3933e84123Smw struct isr *isr_back; 4008fd7bc9Saymeric int (*isr_intr)(void *); 4132dc3c58Schopps void *isr_arg; 4233e84123Smw int isr_ipl; 4333e84123Smw }; 4433e84123Smw 4533e84123Smw #define NISR 3 4633e84123Smw #define ISRIPL(x) ((x) - 3) 4778bd8945Schopps 4878bd8945Schopps #ifdef _KERNEL 4908fd7bc9Saymeric void add_isr(struct isr *); 5008fd7bc9Saymeric void remove_isr(struct isr *); 5178bd8945Schopps #endif 52fa924b7bSchs 53fa924b7bSchs #endif /* _AMIGA_ISR_H_ */ 54