xref: /netbsd-src/usr.bin/audiocfg/drvctl.h (revision e90b0e0082b1895e7ca5e014c7d89a13ff49e383)
1*e90b0e00Sjmcneill /* $NetBSD: drvctl.h,v 1.2 2010/09/02 02:17:35 jmcneill Exp $ */
2172ca3ccSmrg 
3172ca3ccSmrg /*
4172ca3ccSmrg  * Copyright (c) 2010 Jared D. McNeill <jmcneill@invisible.ca>
5172ca3ccSmrg  * All rights reserved.
6172ca3ccSmrg  *
7172ca3ccSmrg  * Redistribution and use in source and binary forms, with or without
8172ca3ccSmrg  * modification, are permitted provided that the following conditions
9172ca3ccSmrg  * are met:
10172ca3ccSmrg  * 1. Redistributions of source code must retain the above copyright
11172ca3ccSmrg  *    notice, this list of conditions and the following disclaimer.
12172ca3ccSmrg  * 2. Redistributions in binary form must reproduce the above copyright
13172ca3ccSmrg  *    notice, this list of conditions and the following disclaimer in the
14172ca3ccSmrg  *    documentation and/or other materials provided with the distribution.
15172ca3ccSmrg  *
16172ca3ccSmrg  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17172ca3ccSmrg  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18172ca3ccSmrg  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19172ca3ccSmrg  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20172ca3ccSmrg  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21172ca3ccSmrg  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22172ca3ccSmrg  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23172ca3ccSmrg  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24172ca3ccSmrg  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25172ca3ccSmrg  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26172ca3ccSmrg  * POSSIBILITY OF SUCH DAMAGE.
27172ca3ccSmrg  */
28172ca3ccSmrg 
29172ca3ccSmrg #ifndef _HAVE_DRVCTL_H
30172ca3ccSmrg #define _HAVE_DRVCTL_H
31172ca3ccSmrg 
32172ca3ccSmrg #include <sys/ioctl.h>
33172ca3ccSmrg #include <sys/drvctlio.h>
34172ca3ccSmrg 
35172ca3ccSmrg int	drvctl_foreach(int, const char *,
36*e90b0e00Sjmcneill 	    void (*)(void *, const char *, const char *, unsigned int), void *);
37172ca3ccSmrg 
38172ca3ccSmrg #endif /* !_HAVE_DRVCTL_H */
39