xref: /freebsd/sys/dev/sound/sndstat.h (revision 2aa16666e2fa5c98be8d330cd0c32c9dc3801ba7)
1bafa8c95SChristos Margiolis /*-
2bafa8c95SChristos Margiolis  * SPDX-License-Identifier: BSD-2-Clause
3bafa8c95SChristos Margiolis  *
4bafa8c95SChristos Margiolis  * Copyright (c) 2025 The FreeBSD Foundation
5bafa8c95SChristos Margiolis  *
6bafa8c95SChristos Margiolis  * Portions of this software were developed by Christos Margiolis
7bafa8c95SChristos Margiolis  * <christos@FreeBSD.org> under sponsorship from the FreeBSD Foundation.
8bafa8c95SChristos Margiolis  *
9bafa8c95SChristos Margiolis  * Redistribution and use in source and binary forms, with or without
10bafa8c95SChristos Margiolis  * modification, are permitted provided that the following conditions
11bafa8c95SChristos Margiolis  * are met:
12bafa8c95SChristos Margiolis  * 1. Redistributions of source code must retain the above copyright
13bafa8c95SChristos Margiolis  *    notice, this list of conditions and the following disclaimer.
14bafa8c95SChristos Margiolis  * 2. Redistributions in binary form must reproduce the above copyright
15bafa8c95SChristos Margiolis  *    notice, this list of conditions and the following disclaimer in the
16bafa8c95SChristos Margiolis  *    documentation and/or other materials provided with the distribution.
17bafa8c95SChristos Margiolis  *
18bafa8c95SChristos Margiolis  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19bafa8c95SChristos Margiolis  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20bafa8c95SChristos Margiolis  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21bafa8c95SChristos Margiolis  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22bafa8c95SChristos Margiolis  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23bafa8c95SChristos Margiolis  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24bafa8c95SChristos Margiolis  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25bafa8c95SChristos Margiolis  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26bafa8c95SChristos Margiolis  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27bafa8c95SChristos Margiolis  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28bafa8c95SChristos Margiolis  * SUCH DAMAGE.
29bafa8c95SChristos Margiolis  */
30bafa8c95SChristos Margiolis 
31bafa8c95SChristos Margiolis #ifndef _SNDSTAT_H_
32bafa8c95SChristos Margiolis #define _SNDSTAT_H_
33bafa8c95SChristos Margiolis 
34*2aa16666SChristos Margiolis enum sndstat_type {
35*2aa16666SChristos Margiolis 	SNDST_TYPE_PCM,
36*2aa16666SChristos Margiolis 	SNDST_TYPE_MIDI,
37*2aa16666SChristos Margiolis };
38*2aa16666SChristos Margiolis 
39*2aa16666SChristos Margiolis void sndstat_register(device_t dev, enum sndstat_type type, char *str);
40bafa8c95SChristos Margiolis int sndstat_unregister(device_t dev);
41bafa8c95SChristos Margiolis 
42bafa8c95SChristos Margiolis #endif /* _SNDSTAT_H_ */
43