Home | History | Annotate | Line # | Download | only in footbridge
footbridge_irqhandler.h revision 1.5.50.1
      1  1.5.50.1  chris /*	$NetBSD: footbridge_irqhandler.h,v 1.5.50.1 2007/08/18 12:12:13 chris Exp $	*/
      2       1.1  chris 
      3       1.1  chris /*
      4       1.3  chris  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
      5       1.1  chris  * All rights reserved.
      6       1.1  chris  *
      7       1.3  chris  * Written by Jason R. Thorpe for Wasabi Systems, Inc.
      8       1.1  chris  *
      9       1.1  chris  * Redistribution and use in source and binary forms, with or without
     10       1.1  chris  * modification, are permitted provided that the following conditions
     11       1.1  chris  * are met:
     12       1.1  chris  * 1. Redistributions of source code must retain the above copyright
     13       1.1  chris  *    notice, this list of conditions and the following disclaimer.
     14       1.1  chris  * 2. Redistributions in binary form must reproduce the above copyright
     15       1.1  chris  *    notice, this list of conditions and the following disclaimer in the
     16       1.1  chris  *    documentation and/or other materials provided with the distribution.
     17       1.1  chris  * 3. All advertising materials mentioning features or use of this software
     18       1.1  chris  *    must display the following acknowledgement:
     19       1.3  chris  *	This product includes software developed for the NetBSD Project by
     20       1.3  chris  *	Wasabi Systems, Inc.
     21       1.3  chris  * 4. The name of Wasabi Systems, Inc. may not be used to endorse
     22       1.3  chris  *    or promote products derived from this software without specific prior
     23       1.3  chris  *    written permission.
     24       1.1  chris  *
     25       1.3  chris  * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND
     26       1.3  chris  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     27       1.3  chris  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     28       1.3  chris  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL WASABI SYSTEMS, INC
     29       1.3  chris  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     30       1.3  chris  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     31       1.3  chris  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     32       1.3  chris  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     33       1.3  chris  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     34       1.3  chris  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     35       1.3  chris  * POSSIBILITY OF SUCH DAMAGE.
     36       1.1  chris  */
     37       1.1  chris 
     38       1.1  chris #ifndef _FOOTBRIDGE_IRQHANDLER_H_
     39       1.1  chris #define _FOOTBRIDGE_IRQHANDLER_H_
     40       1.1  chris 
     41       1.1  chris #ifndef _LOCORE
     42       1.1  chris #include <sys/types.h>
     43       1.1  chris #endif /* _LOCORE */
     44       1.1  chris 
     45       1.1  chris #include <machine/intr.h>
     46       1.1  chris 
     47       1.2  chris void	footbridge_intr_init(void);
     48       1.2  chris void	*footbridge_intr_establish(int, int, int (*)(void *), void *);
     49       1.2  chris void	footbridge_intr_disestablish(void *);
     50       1.1  chris 
     51       1.1  chris #ifdef _KERNEL
     52       1.4     he void *footbridge_intr_claim(int irq, int ipl, const char *name, int (*func)(void *), void *arg);
     53       1.2  chris void footbridge_intr_init(void);
     54       1.2  chris void footbridge_intr_disestablish(void *cookie);
     55  1.5.50.1  chris void	footbridge_intr_dispatch(struct clockframe *);
     56       1.1  chris #endif	/* _KERNEL */
     57       1.1  chris 
     58       1.1  chris #endif	/* _FOOTBRIDGE_IRQHANDLER_H_ */
     59       1.1  chris 
     60       1.1  chris /* End of irqhandler.h */
     61