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 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 = { |
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, |
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 --- |