xref: /freebsd/sys/dev/sound/midi/mpu401.h (revision 95ee2897)
1206b17d7SAlexander Leidinger /*-
24d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3718cf2ccSPedro F. Giffuni  *
448351eafSJoel Dahl  * Copyright (c) 2003 Mathew Kanner
548351eafSJoel Dahl  * All rights reserved.
6206b17d7SAlexander Leidinger  *
7206b17d7SAlexander Leidinger  * Redistribution and use in source and binary forms, with or without
848351eafSJoel Dahl  * modification, are permitted provided that the following conditions
948351eafSJoel Dahl  * are met:
1048351eafSJoel Dahl  * 1. Redistributions of source code must retain the above copyright
1148351eafSJoel Dahl  *    notice, this list of conditions and the following disclaimer.
1248351eafSJoel Dahl  * 2. Redistributions in binary form must reproduce the above copyright
1348351eafSJoel Dahl  *    notice, this list of conditions and the following disclaimer in the
1448351eafSJoel Dahl  *    documentation and/or other materials provided with the distribution.
15206b17d7SAlexander Leidinger  *
1648351eafSJoel Dahl  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1748351eafSJoel Dahl  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1848351eafSJoel Dahl  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1948351eafSJoel Dahl  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2048351eafSJoel Dahl  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2148351eafSJoel Dahl  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2248351eafSJoel Dahl  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2348351eafSJoel Dahl  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24206b17d7SAlexander Leidinger  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25206b17d7SAlexander Leidinger  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26206b17d7SAlexander Leidinger  * SUCH DAMAGE.
27206b17d7SAlexander Leidinger  */
28206b17d7SAlexander Leidinger 
29206b17d7SAlexander Leidinger #ifndef MPU401_H
30206b17d7SAlexander Leidinger #define MPU401_H
31206b17d7SAlexander Leidinger 
32206b17d7SAlexander Leidinger struct mpu401;
33206b17d7SAlexander Leidinger 
34206b17d7SAlexander Leidinger typedef int mpu401_intr_t(struct mpu401 *_obj);
35206b17d7SAlexander Leidinger 
368f981688SAlexander Leidinger extern struct mpu401 *
378f981688SAlexander Leidinger mpu401_init(kobj_class_t _cls, void *cookie, driver_intr_t *_softintr,
388f981688SAlexander Leidinger     mpu401_intr_t ** _cb);
39206b17d7SAlexander Leidinger extern int mpu401_uninit(struct mpu401 *_obj);
408f981688SAlexander Leidinger 
41206b17d7SAlexander Leidinger #endif
42