auccvar.h revision 1.3 1 1.3 is /* $NetBSD: auccvar.h,v 1.3 1997/07/04 21:00:18 is Exp $ */
2 1.1 is /*
3 1.1 is * Copyright (c) 1991-1993 Regents of the University of California.
4 1.1 is * All rights reserved.
5 1.1 is *
6 1.1 is * Redistribution and use in source and binary forms, with or without
7 1.1 is * modification, are permitted provided that the following conditions
8 1.1 is * are met:
9 1.1 is * 1. Redistributions of source code must retain the above copyright
10 1.1 is * notice, this list of conditions and the following disclaimer.
11 1.1 is * 2. Redistributions in binary form must reproduce the above copyright
12 1.1 is * notice, this list of conditions and the following disclaimer in the
13 1.1 is * documentation and/or other materials provided with the distribution.
14 1.1 is * 3. All advertising materials mentioning features or use of this software
15 1.1 is * must display the following acknowledgement:
16 1.1 is * This product includes software developed by the Computer Systems
17 1.1 is * Engineering Group at Lawrence Berkeley Laboratory.
18 1.1 is * 4. Neither the name of the University nor of the Laboratory may be used
19 1.1 is * to endorse or promote products derived from this software without
20 1.1 is * specific prior written permission.
21 1.1 is *
22 1.1 is * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23 1.1 is * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 1.1 is * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 1.1 is * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26 1.1 is * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 1.1 is * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 1.1 is * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 1.1 is * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 1.1 is * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 1.1 is * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 1.1 is * SUCH DAMAGE.
33 1.1 is */
34 1.1 is
35 1.1 is
36 1.1 is #ifndef _AUCCVAR_H_
37 1.1 is #define _AUCCVAR_H_
38 1.1 is
39 1.1 is #define AUDIO_BUF_SIZE 8192
40 1.1 is
41 1.1 is /* per channel data */
42 1.1 is typedef struct aucc_data {
43 1.1 is u_int nd_freq; /* frequency */
44 1.1 is u_int nd_per; /* period = clock/freq */
45 1.1 is u_int nd_volume; /* 0..63 */
46 1.1 is u_int nd_busy; /* 1, if channel is busy */
47 1.1 is u_short *nd_dma; /* pointer to dma buffer */
48 1.1 is u_int nd_dmalength; /* length of dma data */
49 1.1 is int nd_mask; /* mask of active channels,
50 1.1 is together with this one */
51 1.1 is void (*nd_intr)(void *); /* interrupt routine */
52 1.1 is void *nd_intrdata; /* interrupt data */
53 1.3 is int nd_doublebuf; /* double buffering */
54 1.1 is } aucc_data_t;
55 1.1 is
56 1.1 is
57 1.1 is /* mixer sets */
58 1.1 is #define AUCC_CHANNELS 0
59 1.1 is
60 1.1 is /* mixer values */
61 1.1 is #define AUCC_VOLUME 1
62 1.1 is #define AUCC_OUTPUT_CLASS 2
63 1.1 is
64 1.1 is #endif /* _AUCCVAR_H_ */
65