dsp.h revision 77269
1129473Spjd/* 2142727Spjd * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk> 3129473Spjd * All rights reserved. 4129473Spjd * 5129473Spjd * Redistribution and use in source and binary forms, with or without 6129473Spjd * modification, are permitted provided that the following conditions 7129473Spjd * are met: 8129473Spjd * 1. Redistributions of source code must retain the above copyright 9129473Spjd * notice, this list of conditions and the following disclaimer. 10129473Spjd * 2. Redistributions in binary form must reproduce the above copyright 11129473Spjd * notice, this list of conditions and the following disclaimer in the 12129473Spjd * documentation and/or other materials provided with the distribution. 13155174Spjd * 14129473Spjd * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15129473Spjd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16129473Spjd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17129473Spjd * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18129473Spjd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19129473Spjd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20129473Spjd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21129473Spjd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22129473Spjd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23129473Spjd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24129473Spjd * SUCH DAMAGE. 25129473Spjd * 26129473Spjd * $FreeBSD: head/sys/dev/sound/pcm/dsp.h 77269 2001-05-27 17:22:00Z cg $ 27129473Spjd */ 28129473Spjd 29129473Spjdint dsp_open(struct snddev_info *d, int chan, int oflags, int devtype, pid_t pid); 30129473Spjdint dsp_close(struct snddev_info *d, int chan, int devtype); 31129473Spjdint dsp_read(struct snddev_info *d, int chan, struct uio *buf, int flag); 32129473Spjdint dsp_write(struct snddev_info *d, int chan, struct uio *buf, int flag); 33129473Spjdint dsp_ioctl(struct snddev_info *d, int chan, u_long cmd, caddr_t arg); 34129473Spjdint dsp_poll(struct snddev_info *d, int chan, int events, struct proc *p); 35129473Spjdint dsp_mmap(struct snddev_info *d, int chan, vm_offset_t offset, int nprot); 36129473Spjd 37129473Spjd 38129473Spjd