1187692Snwhitehorn/*- 2187692Snwhitehorn * Copyright 2008 by Marco Trillo. All rights reserved. 3187692Snwhitehorn * 4187692Snwhitehorn * Redistribution and use in source and binary forms, with or without 5187692Snwhitehorn * modification, are permitted provided that the following conditions 6187692Snwhitehorn * are met: 7187692Snwhitehorn * 1. Redistributions of source code must retain the above copyright 8187692Snwhitehorn * notice, this list of conditions and the following disclaimer. 9187692Snwhitehorn * 2. Redistributions in binary form must reproduce the above copyright 10187692Snwhitehorn * notice, this list of conditions and the following disclaimer in the 11187692Snwhitehorn * documentation and/or other materials provided with the distribution. 12187692Snwhitehorn * 13187692Snwhitehorn * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 14187692Snwhitehorn * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 15187692Snwhitehorn * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 16187692Snwhitehorn * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 17187692Snwhitehorn * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 18187692Snwhitehorn * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 19187692Snwhitehorn * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 20187692Snwhitehorn * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 21187692Snwhitehorn * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22187692Snwhitehorn * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23187692Snwhitehorn * SUCH DAMAGE. 24187692Snwhitehorn * 25187692Snwhitehorn * $FreeBSD$ 26187692Snwhitehorn */ 27187692Snwhitehorn 28187692Snwhitehorn#ifndef SOUND_AOA_H 29187692Snwhitehorn#define SOUND_AOA_H 30187692Snwhitehorn 31187717Snwhitehorn#ifndef AOA_DEBUG 32187692Snwhitehorn#define DPRINTF(x) /* nothing */ 33187717Snwhitehorn#else 34187717Snwhitehorn#define DPRINTF(x) printf x 35187717Snwhitehorn#endif 36187692Snwhitehorn 37187692Snwhitehornstruct aoa_softc { 38188259Snwhitehorn device_t sc_dev; 39188259Snwhitehorn void *sc_intrp; 40188259Snwhitehorn struct resource *sc_odma; 41187692Snwhitehorn}; 42187692Snwhitehorn 43187692Snwhitehornvoid aoa_interrupt(void *); 44188259Snwhitehornint aoa_attach(void *xsc); 45187692Snwhitehorn 46187692Snwhitehorn#endif /* SOUND_AOA_H */ 47187692Snwhitehorn 48