xref: /openbsd/sys/arch/luna88k/cbus/nec86var.h (revision 09467b48)
1 /*	$OpenBSD: nec86var.h,v 1.1 2014/12/28 13:03:18 aoyama Exp $	*/
2 /*	$NecBSD: nec86var.h,v 1.6 1998/03/14 07:04:57 kmatsuda Exp $	*/
3 /*	$NetBSD$	*/
4 
5 /*
6  * [NetBSD for NEC PC-98 series]
7  *  Copyright (c) 1996, 1997, 1998
8  *	NetBSD/pc98 porting staff. All rights reserved.
9  *
10  *  Redistribution and use in source and binary forms, with or without
11  *  modification, are permitted provided that the following conditions
12  *  are met:
13  *  1. Redistributions of source code must retain the above copyright
14  *     notice, this list of conditions and the following disclaimer.
15  *  2. Redistributions in binary form must reproduce the above copyright
16  *     notice, this list of conditions and the following disclaimer in the
17  *     documentation and/or other materials provided with the distribution.
18  *  3. The name of the author may not be used to endorse or promote products
19  *     derived from this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
25  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
30  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31  * POSSIBILITY OF SUCH DAMAGE.
32  */
33 
34 /*
35  * nec86var.h
36  *
37  * NEC PC-9801-86 SoundBoard PCM driver for NetBSD/pc98.
38  * Written by NAGAO Tadaaki, Feb 10, 1996.
39  */
40 
41 #ifndef	_NEC86VAR_H_
42 #define	_NEC86VAR_H_
43 
44 struct nec86_softc {
45 	struct nec86hw_softc sc_nec86hw;
46 
47 	bus_space_tag_t sc_n86iot;
48 	bus_space_handle_t sc_n86ioh;
49 
50 	bus_space_tag_t sc_ym_iot;
51 	bus_space_handle_t sc_ym_iobase;
52 	bus_space_handle_t sc_ym_ioh;
53 
54 	int sc_attached;
55 	int sc_intlevel;
56 };
57 
58 extern  struct  audio_hw_if nec86_hw_if;
59 int	nec86_probesubr(bus_space_tag_t, bus_space_handle_t,
60 	    bus_space_handle_t);
61 void	nec86_attachsubr(struct nec86_softc *);
62 #endif	/* !_NEC86VAR_H_ */
63