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