channel.h (89774) | channel.h (107285) |
---|---|
1/* 2 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/* 2 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/sound/pcm/channel.h 89774 2002-01-25 04:14:12Z scottl $ | 26 * $FreeBSD: head/sys/dev/sound/pcm/channel.h 107285 2002-11-26 18:16:27Z cg $ |
27 */ 28 29struct pcmchan_children { 30 SLIST_ENTRY(pcmchan_children) link; 31 struct pcm_channel *channel; 32}; 33 34struct pcmchan_caps { --- 22 unchanged lines hidden (view full) --- 57 int direction; 58 unsigned int interrupts, xruns; 59 struct snd_dbuf *bufhard, *bufsoft; 60 struct snddev_info *parentsnddev; 61 struct pcm_channel *parentchannel; 62 void *devinfo; 63 device_t dev; 64 char name[CHN_NAMELEN]; | 27 */ 28 29struct pcmchan_children { 30 SLIST_ENTRY(pcmchan_children) link; 31 struct pcm_channel *channel; 32}; 33 34struct pcmchan_caps { --- 22 unchanged lines hidden (view full) --- 57 int direction; 58 unsigned int interrupts, xruns; 59 struct snd_dbuf *bufhard, *bufsoft; 60 struct snddev_info *parentsnddev; 61 struct pcm_channel *parentchannel; 62 void *devinfo; 63 device_t dev; 64 char name[CHN_NAMELEN]; |
65 void *lock; | 65 struct mtx *lock; |
66 SLIST_HEAD(, pcmchan_children) children; 67}; 68 69#include "channel_if.h" 70 71int chn_reinit(struct pcm_channel *c); 72int chn_write(struct pcm_channel *c, struct uio *buf); 73int chn_read(struct pcm_channel *c, struct uio *buf); --- 86 unchanged lines hidden --- | 66 SLIST_HEAD(, pcmchan_children) children; 67}; 68 69#include "channel_if.h" 70 71int chn_reinit(struct pcm_channel *c); 72int chn_write(struct pcm_channel *c, struct uio *buf); 73int chn_read(struct pcm_channel *c, struct uio *buf); --- 86 unchanged lines hidden --- |