1*4b386d5dSscole /* $NetBSD: isa_machdep.h,v 1.3 2017/04/03 17:19:43 scole Exp $ */
2833b1484Skiyohara /*
3833b1484Skiyohara * Copyright (c) 2009 KIYOHARA Takashi
4833b1484Skiyohara * All rights reserved.
5833b1484Skiyohara *
6833b1484Skiyohara * Redistribution and use in source and binary forms, with or without
7833b1484Skiyohara * modification, are permitted provided that the following conditions
8833b1484Skiyohara * are met:
9833b1484Skiyohara * 1. Redistributions of source code must retain the above copyright
10833b1484Skiyohara * notice, this list of conditions and the following disclaimer.
11833b1484Skiyohara * 2. Redistributions in binary form must reproduce the above copyright
12833b1484Skiyohara * notice, this list of conditions and the following disclaimer in the
13833b1484Skiyohara * documentation and/or other materials provided with the distribution.
14833b1484Skiyohara *
15833b1484Skiyohara * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16833b1484Skiyohara * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17833b1484Skiyohara * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18833b1484Skiyohara * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
19833b1484Skiyohara * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20833b1484Skiyohara * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21833b1484Skiyohara * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22833b1484Skiyohara * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
23833b1484Skiyohara * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
24833b1484Skiyohara * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25833b1484Skiyohara * POSSIBILITY OF SUCH DAMAGE.
26833b1484Skiyohara */
27833b1484Skiyohara
28833b1484Skiyohara #ifndef _ISA_MACHDEP_H_
29833b1484Skiyohara #define _ISA_MACHDEP_H_
30833b1484Skiyohara
31833b1484Skiyohara typedef int isa_chipset_tag_t;
32833b1484Skiyohara
33833b1484Skiyohara static __inline void *
isa_intr_establish(isa_chipset_tag_t ic,int irq,int type,int level,int (* ih_func)(void *),void * ih_arg)34833b1484Skiyohara isa_intr_establish(isa_chipset_tag_t ic, int irq, int type, int level,
35833b1484Skiyohara int (*ih_func)(void *), void *ih_arg)
36833b1484Skiyohara {
37833b1484Skiyohara return intr_establish(irq, type, level, ih_func, ih_arg);
38833b1484Skiyohara }
39833b1484Skiyohara
40*4b386d5dSscole /* XXX - com_isa.c requires _xname now */
41*4b386d5dSscole #define isa_intr_establish_xname(ic, irq, type, level, fun, arg, xname) \
42*4b386d5dSscole isa_intr_establish(ic, irq, type, level, fun, arg)
43e1d3e1b0Sjdolecek
44833b1484Skiyohara #endif /* _ISA_MACHDEP_H_ */
45