175584Sru/*	$NetBSD: auccvar.h,v 1.4.16.1 2005/01/17 19:29:12 skrll Exp $	*/
275584Sru/*
375584Sru * Copyright (c) 1991-1993 Regents of the University of California.
475584Sru * All rights reserved.
575584Sru *
675584Sru * Redistribution and use in source and binary forms, with or without
775584Sru * modification, are permitted provided that the following conditions
875584Sru * are met:
975584Sru * 1. Redistributions of source code must retain the above copyright
1075584Sru *    notice, this list of conditions and the following disclaimer.
1175584Sru * 2. Redistributions in binary form must reproduce the above copyright
1275584Sru *    notice, this list of conditions and the following disclaimer in the
1375584Sru *    documentation and/or other materials provided with the distribution.
1475584Sru * 3. All advertising materials mentioning features or use of this software
1575584Sru *    must display the following acknowledgement:
1675584Sru *	This product includes software developed by the Computer Systems
1775584Sru *	Engineering Group at Lawrence Berkeley Laboratory.
1875584Sru * 4. Neither the name of the University nor of the Laboratory may be used
1975584Sru *    to endorse or promote products derived from this software without
2075584Sru *    specific prior written permission.
2175584Sru *
2275584Sru * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2375584Sru * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2475584Sru * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2575584Sru * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2675584Sru * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2775584Sru * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2875584Sru * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2975584Sru * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3075584Sru * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3175584Sru * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3275584Sru * SUCH DAMAGE.
3375584Sru */
3475584Sru
3575584Sru
3675584Sru#ifndef _AUCCVAR_H_
3775584Sru#define _AUCCVAR_H_
3875584Sru
3975584Sru#define AUDIO_BUF_SIZE 8192
4075584Sru
4175584Sru/* per channel data */
4275584Srutypedef struct aucc_data {
4375584Sru	u_int	nd_freq;	/* frequency */
4475584Sru	u_int	nd_per;		/* period = clock/freq */
4575584Sru	u_int	nd_volume;	/* 0..63 */
4675584Sru	u_int	nd_busy;	/* 1, if channel is busy */
4775584Sru	u_short	*nd_dma;	/* pointer to dma buffer */
4875584Sru	u_int	nd_dmalength;	/* length of dma data */
4975584Sru	int	nd_mask;	/* mask of active channels,
5075584Sru				   together with this one */
5175584Sru	void    (*nd_intr)(void *); /* interrupt routine */
5275584Sru	void   *nd_intrdata;	/* interrupt data */
5375584Sru	int	nd_doublebuf;	/* double buffering */
5475584Sru} aucc_data_t;
5575584Sru
5675584Sru
5775584Sru/* mixer sets */
5875584Sru#define AUCC_CHANNELS 0
5975584Sru
6075584Sru/* mixer values */
6175584Sru#define AUCC_VOLUME 1
6275584Sru#define AUCC_OUTPUT_CLASS 2
6375584Sru
6475584Sru#endif /* _AUCCVAR_H_ */
6575584Sru