18486eb86SNathan Whitehorn /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3718cf2ccSPedro F. Giffuni * 48486eb86SNathan Whitehorn * Copyright 2008 by Marco Trillo. All rights reserved. 58486eb86SNathan Whitehorn * 68486eb86SNathan Whitehorn * Redistribution and use in source and binary forms, with or without 78486eb86SNathan Whitehorn * modification, are permitted provided that the following conditions 88486eb86SNathan Whitehorn * are met: 98486eb86SNathan Whitehorn * 1. Redistributions of source code must retain the above copyright 108486eb86SNathan Whitehorn * notice, this list of conditions and the following disclaimer. 118486eb86SNathan Whitehorn * 2. Redistributions in binary form must reproduce the above copyright 128486eb86SNathan Whitehorn * notice, this list of conditions and the following disclaimer in the 138486eb86SNathan Whitehorn * documentation and/or other materials provided with the distribution. 148486eb86SNathan Whitehorn * 158486eb86SNathan Whitehorn * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 168486eb86SNathan Whitehorn * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 178486eb86SNathan Whitehorn * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 188486eb86SNathan Whitehorn * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 198486eb86SNathan Whitehorn * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 208486eb86SNathan Whitehorn * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 218486eb86SNathan Whitehorn * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 228486eb86SNathan Whitehorn * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 238486eb86SNathan Whitehorn * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 248486eb86SNathan Whitehorn * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 258486eb86SNathan Whitehorn * SUCH DAMAGE. 268486eb86SNathan Whitehorn */ 278486eb86SNathan Whitehorn 288486eb86SNathan Whitehorn #ifndef SOUND_AOA_H 298486eb86SNathan Whitehorn #define SOUND_AOA_H 308486eb86SNathan Whitehorn 31a808d017SNathan Whitehorn #ifndef AOA_DEBUG 328486eb86SNathan Whitehorn #define DPRINTF(x) /* nothing */ 33a808d017SNathan Whitehorn #else 34a808d017SNathan Whitehorn #define DPRINTF(x) printf x 35a808d017SNathan Whitehorn #endif 368486eb86SNathan Whitehorn 378486eb86SNathan Whitehorn struct aoa_softc { 389772bc0bSNathan Whitehorn device_t sc_dev; 398486eb86SNathan Whitehorn void *sc_intrp; 408486eb86SNathan Whitehorn struct resource *sc_odma; 418486eb86SNathan Whitehorn }; 428486eb86SNathan Whitehorn 438486eb86SNathan Whitehorn void aoa_interrupt(void *); 449772bc0bSNathan Whitehorn int aoa_attach(void *xsc); 458486eb86SNathan Whitehorn 468486eb86SNathan Whitehorn #endif /* SOUND_AOA_H */ 47