xref: /netbsd-src/sys/dev/hdaudio/hdaudioio.h (revision 8a9ff04ba8402032638682bf30b93a2c8bd672e1)
1*8a9ff04bSjmcneill /* $NetBSD: hdaudioio.h,v 1.1 2015/03/28 14:09:59 jmcneill Exp $ */
2*8a9ff04bSjmcneill 
3*8a9ff04bSjmcneill /*
4*8a9ff04bSjmcneill  * Copyright (c) 2009 Precedence Technologies Ltd <support@precedence.co.uk>
5*8a9ff04bSjmcneill  * Copyright (c) 2009 Jared D. McNeill <jmcneill@invisible.ca>
6*8a9ff04bSjmcneill  * All rights reserved.
7*8a9ff04bSjmcneill  *
8*8a9ff04bSjmcneill  * This code is derived from software contributed to The NetBSD Foundation
9*8a9ff04bSjmcneill  * by Precedence Technologies Ltd
10*8a9ff04bSjmcneill  *
11*8a9ff04bSjmcneill  * Redistribution and use in source and binary forms, with or without
12*8a9ff04bSjmcneill  * modification, are permitted provided that the following conditions
13*8a9ff04bSjmcneill  * are met:
14*8a9ff04bSjmcneill  * 1. Redistributions of source code must retain the above copyright
15*8a9ff04bSjmcneill  *    notice, this list of conditions and the following disclaimer.
16*8a9ff04bSjmcneill  * 2. The name of the author may not be used to endorse or promote products
17*8a9ff04bSjmcneill  *    derived from this software without specific prior written permission.
18*8a9ff04bSjmcneill  *
19*8a9ff04bSjmcneill  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20*8a9ff04bSjmcneill  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21*8a9ff04bSjmcneill  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22*8a9ff04bSjmcneill  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23*8a9ff04bSjmcneill  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24*8a9ff04bSjmcneill  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25*8a9ff04bSjmcneill  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
26*8a9ff04bSjmcneill  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27*8a9ff04bSjmcneill  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28*8a9ff04bSjmcneill  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29*8a9ff04bSjmcneill  * SUCH DAMAGE.
30*8a9ff04bSjmcneill  */
31*8a9ff04bSjmcneill 
32*8a9ff04bSjmcneill #ifndef _HDAUDIOIO_H
33*8a9ff04bSjmcneill #define _HDAUDIOIO_H
34*8a9ff04bSjmcneill 
35*8a9ff04bSjmcneill #include <sys/ioctl.h>
36*8a9ff04bSjmcneill #include <prop/proplib.h>
37*8a9ff04bSjmcneill 
38*8a9ff04bSjmcneill #define	HDAUDIO_FGRP_INFO	_IOWR('h', 0, struct plistref)
39*8a9ff04bSjmcneill #define	HDAUDIO_FGRP_GETCONFIG	_IOWR('h', 1, struct plistref)
40*8a9ff04bSjmcneill #define	HDAUDIO_FGRP_SETCONFIG	_IOWR('h', 2, struct plistref)
41*8a9ff04bSjmcneill #define	HDAUDIO_FGRP_WIDGET_INFO	_IOWR('h', 3, struct plistref)
42*8a9ff04bSjmcneill #define	HDAUDIO_FGRP_CODEC_INFO	_IOWR('h', 4, struct plistref)
43*8a9ff04bSjmcneill 
44*8a9ff04bSjmcneill #define	HDAUDIO_AFG_WIDGET_INFO	_IOWR('H', 0, struct plistref)
45*8a9ff04bSjmcneill #define	HDAUDIO_AFG_CODEC_INFO	_IOWR('H', 1, struct plistref)
46*8a9ff04bSjmcneill 
47*8a9ff04bSjmcneill #endif /* !_HDAUDIOIO_H */
48