sndstat.c (111119) | sndstat.c (111815) |
---|---|
1/* 2 * Copyright (c) 2001 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 --- 13 unchanged lines hidden (view full) --- 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 27#include <dev/sound/pcm/sound.h> 28#include <dev/sound/pcm/vchan.h> 29 | 1/* 2 * Copyright (c) 2001 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 --- 13 unchanged lines hidden (view full) --- 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 27#include <dev/sound/pcm/sound.h> 28#include <dev/sound/pcm/vchan.h> 29 |
30SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/sndstat.c 111119 2003-02-19 05:47:46Z imp $"); | 30SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pcm/sndstat.c 111815 2003-03-03 12:15:54Z phk $"); |
31 32#define SS_TYPE_MODULE 0 33#define SS_TYPE_FIRST 1 34#define SS_TYPE_PCM 1 35#define SS_TYPE_MIDI 2 36#define SS_TYPE_SEQUENCER 3 37#define SS_TYPE_LAST 3 38 39static d_open_t sndstat_open; 40static d_close_t sndstat_close; 41static d_read_t sndstat_read; 42 43static struct cdevsw sndstat_cdevsw = { | 31 32#define SS_TYPE_MODULE 0 33#define SS_TYPE_FIRST 1 34#define SS_TYPE_PCM 1 35#define SS_TYPE_MIDI 2 36#define SS_TYPE_SEQUENCER 3 37#define SS_TYPE_LAST 3 38 39static d_open_t sndstat_open; 40static d_close_t sndstat_close; 41static d_read_t sndstat_read; 42 43static struct cdevsw sndstat_cdevsw = { |
44 /* open */ sndstat_open, 45 /* close */ sndstat_close, 46 /* read */ sndstat_read, 47 /* write */ nowrite, 48 /* ioctl */ noioctl, 49 /* poll */ nopoll, 50 /* mmap */ nommap, 51 /* strategy */ nostrategy, 52 /* name */ "sndstat", 53 /* maj */ SND_CDEV_MAJOR, 54 /* dump */ nodump, 55 /* psize */ nopsize, 56 /* flags */ 0, | 44 .d_open = sndstat_open, 45 .d_close = sndstat_close, 46 .d_read = sndstat_read, 47 .d_name = "sndstat", 48 .d_maj = SND_CDEV_MAJOR, |
57}; 58 59struct sndstat_entry { 60 SLIST_ENTRY(sndstat_entry) link; 61 device_t dev; 62 char *str; 63 sndstat_handler handler; 64 int type, unit; --- 336 unchanged lines hidden --- | 49}; 50 51struct sndstat_entry { 52 SLIST_ENTRY(sndstat_entry) link; 53 device_t dev; 54 char *str; 55 sndstat_handler handler; 56 int type, unit; --- 336 unchanged lines hidden --- |