mpufoi_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/mpufoi_if.m 158979 2006-05-27 16:32:05Z netchild $ 25158979Snetchild# 26158979Snetchild 27158979Snetchild#include <sys/bus.h> 28158979Snetchild#include <dev/sound/midi/mpu401.h> 29158979Snetchild 30158979SnetchildINTERFACE mpufoi; 31158979Snetchild 32158979SnetchildMETHOD unsigned char read { 33158979Snetchild struct mpu401 *_kobj; 34158979Snetchild void *_cookie; 35158979Snetchild int _reg; 36158979Snetchild}; 37158979Snetchild 38158979SnetchildMETHOD void write { 39158979Snetchild struct mpu401 *_kobj; 40158979Snetchild void *_cookie; 41158979Snetchild int _reg; 42158979Snetchild unsigned char _d; 43158979Snetchild}; 44158979Snetchild 45158979SnetchildMETHOD int uninit { 46158979Snetchild struct mpu401 *_kobj; 47158979Snetchild void *_cookie; 48158979Snetchild}; 49