mpu401.h 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/mpu401.h 158979 2006-05-27 16:32:05Z netchild $ 25158979Snetchild */ 26158979Snetchild 27158979Snetchild#ifndef MPU401_H 28158979Snetchild#define MPU401_H 29158979Snetchild 30158979Snetchildstruct mpu401; 31158979Snetchild 32158979Snetchildtypedef int mpu401_intr_t(struct mpu401 * _obj); 33158979Snetchild 34158979Snetchildextern struct mpu401 *mpu401_init(kobj_class_t _cls, void *cookie, 35158979Snetchild driver_intr_t *_softintr,mpu401_intr_t **_cb); 36158979Snetchildextern int mpu401_uninit(struct mpu401 * _obj); 37158979Snetchild#endif 38