mpu_if.m revision 158979
1158979Snetchild#- 2158979Snetchild# (c) 2003 Mathew Kanner 3158979Snetchild# 4158979Snetchild# Redistribution and use in source and binary forms, with or without 5158979Snetchild# modification, are permitted provided that the following conditions are 6158979Snetchild# met: 1. Redistributions of source code must retain the above copyright 7158979Snetchild# notice, this list of conditions and the following disclaimer. 2. 8158979Snetchild# Redistributions in binary form must reproduce the above copyright notice, 9158979Snetchild# this list of conditions and the following disclaimer in the documentation 10158979Snetchild# and/or other materials provided with the distribution. 11158979Snetchild# 12158979Snetchild# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY 13158979Snetchild# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 14158979Snetchild# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 15158979Snetchild# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 16158979Snetchild# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 17158979Snetchild# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 18158979Snetchild# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 19158979Snetchild# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 20158979Snetchild# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 21158979Snetchild# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 22158979Snetchild# SUCH DAMAGE. 23158979Snetchild# 24158979Snetchild# $FreeBSD: head/sys/dev/sound/midi/mpu_if.m 158979 2006-05-27 16:32:05Z netchild $ 25158979Snetchild# 26158979Snetchild 27158979Snetchild#include <dev/sound/midi/midi.h> 28158979Snetchild 29158979SnetchildINTERFACE mpu; 30158979Snetchild 31158979SnetchildMETHOD int inqsize{ 32158979Snetchild struct snd_midi * _kobj; 33158979Snetchild void *_cookie; 34158979Snetchild}; 35158979Snetchild 36158979SnetchildMETHOD int outqsize { 37158979Snetchild struct snd_midi * _kobj; 38158979Snetchild void *_cookie; 39158979Snetchild}; 40158979Snetchild 41158979SnetchildMETHOD int init { 42158979Snetchild struct snd_midi * _kobj; 43158979Snetchild void *_cookie; 44158979Snetchild}; 45158979Snetchild 46158979SnetchildMETHOD void callbackp { 47158979Snetchild struct snd_midi * _kobj; 48158979Snetchild void *_cookie; 49158979Snetchild int _flags; 50158979Snetchild}; 51158979Snetchild 52158979SnetchildMETHOD void callback { 53158979Snetchild struct snd_midi * _kobj; 54158979Snetchild void *_cookie; 55158979Snetchild int _flags; 56158979Snetchild}; 57158979Snetchild 58158979SnetchildMETHOD const char * provider{ 59158979Snetchild struct snd_midi * _kobj; 60158979Snetchild void *_cookie; 61158979Snetchild}; 62158979Snetchild 63158979SnetchildMETHOD const char * descr { 64158979Snetchild struct snd_midi * _kobj; 65158979Snetchild void *_cookie; 66158979Snetchild int _verbosity; 67158979Snetchild}; 68158979Snetchild 69158979SnetchildMETHOD int uninit { 70158979Snetchild struct snd_midi * _kobj; 71158979Snetchild void *_cookie; 72158979Snetchild}; 73