xref: /openbsd/sys/arch/luna88k/cbus/nec86var.h (revision 0d6a2fde)
1*0d6a2fdeSmiod /*	$OpenBSD: nec86var.h,v 1.2 2022/03/21 19:22:39 miod Exp $	*/
209871713Saoyama /*	$NecBSD: nec86var.h,v 1.6 1998/03/14 07:04:57 kmatsuda Exp $	*/
309871713Saoyama /*	$NetBSD$	*/
409871713Saoyama 
509871713Saoyama /*
609871713Saoyama  * [NetBSD for NEC PC-98 series]
709871713Saoyama  *  Copyright (c) 1996, 1997, 1998
809871713Saoyama  *	NetBSD/pc98 porting staff. All rights reserved.
909871713Saoyama  *
1009871713Saoyama  *  Redistribution and use in source and binary forms, with or without
1109871713Saoyama  *  modification, are permitted provided that the following conditions
1209871713Saoyama  *  are met:
1309871713Saoyama  *  1. Redistributions of source code must retain the above copyright
1409871713Saoyama  *     notice, this list of conditions and the following disclaimer.
1509871713Saoyama  *  2. Redistributions in binary form must reproduce the above copyright
1609871713Saoyama  *     notice, this list of conditions and the following disclaimer in the
1709871713Saoyama  *     documentation and/or other materials provided with the distribution.
1809871713Saoyama  *  3. The name of the author may not be used to endorse or promote products
1909871713Saoyama  *     derived from this software without specific prior written permission.
2009871713Saoyama  *
2109871713Saoyama  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2209871713Saoyama  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
2309871713Saoyama  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2409871713Saoyama  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
2509871713Saoyama  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
2609871713Saoyama  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
2709871713Saoyama  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2809871713Saoyama  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
2909871713Saoyama  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
3009871713Saoyama  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3109871713Saoyama  * POSSIBILITY OF SUCH DAMAGE.
3209871713Saoyama  */
3309871713Saoyama 
3409871713Saoyama /*
3509871713Saoyama  * nec86var.h
3609871713Saoyama  *
3709871713Saoyama  * NEC PC-9801-86 SoundBoard PCM driver for NetBSD/pc98.
3809871713Saoyama  * Written by NAGAO Tadaaki, Feb 10, 1996.
3909871713Saoyama  */
4009871713Saoyama 
4109871713Saoyama #ifndef	_NEC86VAR_H_
4209871713Saoyama #define	_NEC86VAR_H_
4309871713Saoyama 
4409871713Saoyama struct nec86_softc {
4509871713Saoyama 	struct nec86hw_softc sc_nec86hw;
4609871713Saoyama 
4709871713Saoyama 	bus_space_tag_t sc_n86iot;
4809871713Saoyama 	bus_space_handle_t sc_n86ioh;
4909871713Saoyama 
5009871713Saoyama 	bus_space_tag_t sc_ym_iot;
5109871713Saoyama 	bus_space_handle_t sc_ym_iobase;
5209871713Saoyama 	bus_space_handle_t sc_ym_ioh;
5309871713Saoyama 
5409871713Saoyama 	int sc_attached;
5509871713Saoyama 	int sc_intlevel;
5609871713Saoyama };
5709871713Saoyama 
58*0d6a2fdeSmiod extern  const struct  audio_hw_if nec86_hw_if;
5909871713Saoyama int	nec86_probesubr(bus_space_tag_t, bus_space_handle_t,
6009871713Saoyama 	    bus_space_handle_t);
6109871713Saoyama void	nec86_attachsubr(struct nec86_softc *);
6209871713Saoyama #endif	/* !_NEC86VAR_H_ */
63