153553Stanimura/*-
253553Stanimura * Copyright (c) 1999 Seigo Tanimura
353553Stanimura * All rights reserved.
453553Stanimura *
553553Stanimura * Redistribution and use in source and binary forms, with or without
653553Stanimura * modification, are permitted provided that the following conditions
753553Stanimura * are met:
853553Stanimura * 1. Redistributions of source code must retain the above copyright
953553Stanimura *    notice, this list of conditions and the following disclaimer.
1053553Stanimura * 2. Redistributions in binary form must reproduce the above copyright
1153553Stanimura *    notice, this list of conditions and the following disclaimer in the
1253553Stanimura *    documentation and/or other materials provided with the distribution.
1353553Stanimura *
1453553Stanimura * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1553553Stanimura * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1653553Stanimura * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1753553Stanimura * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1853553Stanimura * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1953553Stanimura * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2053553Stanimura * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2153553Stanimura * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2253553Stanimura * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2353553Stanimura * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2453553Stanimura * SUCH DAMAGE.
2553553Stanimura *
2653553Stanimura * $FreeBSD$
2753553Stanimura */
2853553Stanimura
2953553Stanimura/*
3053553Stanimura * These are the function codes assigned to the children of
3153553Stanimura * sound cards.
3253553Stanimura */
3353553Stanimuraenum {
3453553Stanimura	SCF_PCM,
3553553Stanimura	SCF_MIDI,
3653553Stanimura	SCF_SYNTH,
3753553Stanimura};
3853553Stanimura
3953553Stanimura/*
4053553Stanimura * This is the device information struct, used by
4155320Stanimura * a bridge device to pass the device function code
4255320Stanimura * to the children.
4353553Stanimura */
4453553Stanimurastruct sndcard_func {
4555320Stanimura	int func;	/* The function code. */
4655320Stanimura	void *varinfo;	/* Bridge-specific information. */
4753553Stanimura};
48