mpu401.h revision 166971
1155192Srwatson/*- 2155192Srwatson * Copyright (c) 2003 Mathew Kanner 3155192Srwatson * All rights reserved. 4155192Srwatson * 5155192Srwatson * Redistribution and use in source and binary forms, with or without 6155192Srwatson * modification, are permitted provided that the following conditions 7155192Srwatson * are met: 8155192Srwatson * 1. Redistributions of source code must retain the above copyright 9155192Srwatson * notice, this list of conditions and the following disclaimer. 10155192Srwatson * 2. Redistributions in binary form must reproduce the above copyright 11155192Srwatson * notice, this list of conditions and the following disclaimer in the 12155192Srwatson * documentation and/or other materials provided with the distribution. 13155192Srwatson * 14155192Srwatson * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15155192Srwatson * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16155192Srwatson * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17155192Srwatson * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18155192Srwatson * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19155192Srwatson * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20155192Srwatson * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21155192Srwatson * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22155192Srwatson * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23155192Srwatson * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24155192Srwatson * SUCH DAMAGE. 25155192Srwatson * 26155192Srwatson * $FreeBSD: head/sys/dev/sound/midi/mpu401.h 166971 2007-02-25 13:51:52Z netchild $ 27155192Srwatson */ 28155192Srwatson 29155192Srwatson#ifndef MPU401_H 30155192Srwatson#define MPU401_H 31155192Srwatson 32155192Srwatsonstruct mpu401; 33155192Srwatson 34155192Srwatsontypedef int mpu401_intr_t(struct mpu401 *_obj); 35155192Srwatson 36155192Srwatsonextern struct mpu401 * 37156882Srwatsonmpu401_init(kobj_class_t _cls, void *cookie, driver_intr_t *_softintr, 38156882Srwatson mpu401_intr_t ** _cb); 39155192Srwatsonextern int mpu401_uninit(struct mpu401 *_obj); 40155192Srwatson 41155192Srwatson#endif 42155192Srwatson