1158979Snetchild#-
2166322Sjoel# Copyright (c) 2003 Mathew Kanner
3166322Sjoel# All rights reserved.
4158979Snetchild#
5158979Snetchild# Redistribution and use in source and binary forms, with or without
6166322Sjoel# modification, are permitted provided that the following conditions
7166322Sjoel# are met:
8166322Sjoel# 1. Redistributions of source code must retain the above copyright
9166322Sjoel#    notice, this list of conditions and the following disclaimer.
10166322Sjoel# 2. Redistributions in binary form must reproduce the above copyright
11166322Sjoel#    notice, this list of conditions and the following disclaimer in the
12166322Sjoel#    documentation and/or other materials provided with the distribution.
13158979Snetchild#
14166322Sjoel# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15166322Sjoel# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16166322Sjoel# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17166322Sjoel# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18166322Sjoel# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19166322Sjoel# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20166322Sjoel# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21166322Sjoel# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22158979Snetchild# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23158979Snetchild# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24158979Snetchild# SUCH DAMAGE.
25158979Snetchild#
26158979Snetchild# $FreeBSD$
27158979Snetchild#
28158979Snetchild
29158979Snetchild#include <sys/bus.h>
30158979Snetchild#include <dev/sound/midi/mpu401.h>
31158979Snetchild
32158979SnetchildINTERFACE mpufoi;
33158979Snetchild
34158979SnetchildMETHOD unsigned char read {
35158979Snetchild	struct mpu401 *_kobj;
36166971Snetchild	void   *_cookie;
37166971Snetchild	int	_reg;
38158979Snetchild};
39158979Snetchild
40158979SnetchildMETHOD void write {
41158979Snetchild	struct mpu401 *_kobj;
42166971Snetchild	void   *_cookie;
43166971Snetchild	int	_reg;
44158979Snetchild	unsigned char _d;
45158979Snetchild};
46158979Snetchild
47158979SnetchildMETHOD int uninit {
48158979Snetchild	struct mpu401 *_kobj;
49166971Snetchild	void   *_cookie;
50158979Snetchild};
51