chip.h revision 256281
1251876Speter/*-
2251876Speter * Copyright (c) 1999 Seigo Tanimura
3251876Speter * All rights reserved.
4251876Speter *
5251876Speter * Redistribution and use in source and binary forms, with or without
6251876Speter * modification, are permitted provided that the following conditions
7251876Speter * are met:
8251876Speter * 1. Redistributions of source code must retain the above copyright
9251876Speter *    notice, this list of conditions and the following disclaimer.
10251876Speter * 2. Redistributions in binary form must reproduce the above copyright
11251876Speter *    notice, this list of conditions and the following disclaimer in the
12251876Speter *    documentation and/or other materials provided with the distribution.
13251876Speter *
14251876Speter * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15251876Speter * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16251876Speter * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17251876Speter * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18253734Speter * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19253734Speter * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20251876Speter * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21253734Speter * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22251876Speter * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23251876Speter * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24251876Speter * SUCH DAMAGE.
25251876Speter *
26251876Speter * $FreeBSD: stable/10/sys/dev/sound/chip.h 55320 2000-01-03 02:51:16Z tanimura $
27251876Speter */
28251876Speter
29251876Speter/*
30251876Speter * These are the function codes assigned to the children of
31251876Speter * sound cards.
32251876Speter */
33251876Speterenum {
34251876Speter	SCF_PCM,
35251876Speter	SCF_MIDI,
36251876Speter	SCF_SYNTH,
37251876Speter};
38251876Speter
39251876Speter/*
40251876Speter * This is the device information struct, used by
41251876Speter * a bridge device to pass the device function code
42251876Speter * to the children.
43251876Speter */
44251876Speterstruct sndcard_func {
45251876Speter	int func;	/* The function code. */
46251876Speter	void *varinfo;	/* Bridge-specific information. */
47251876Speter};
48253734Speter