1
2 #define ALLOW_SELECT
3 #undef NO_INLINE_ASM
4 #define SHORT_BANNERS
5
6 #ifdef MODULE
7 #define __NO_VERSION__
8 #include <linux/module.h>
9 #include <linux/version.h>
10 #ifdef MODVERSIONS
11 #include <linux/modversions.h>
12 #endif
13 #endif
14
15 #include <linux/param.h>
16 #include <linux/types.h>
17 #include <linux/errno.h>
18 #include <linux/signal.h>
19 #include <linux/fcntl.h>
20 #include <linux/sched.h>
21 #include <linux/timer.h>
22 #include <linux/tty.h>
23 #include <linux/ctype.h>
24 #include <asm/io.h>
25 #include <asm/segment.h>
26 #include <asm/system.h>
27 #include <asm/dma.h>
28 #include <sys/kd.h>
29 #include <linux/wait.h>
30 #include <linux/malloc.h>
31 #include <linux/string.h>
32 #include <linux/ioport.h>
33
34 #include <linux/wrapper.h>
35
36 #include <linux/soundcard.h>
37
38 #define FALSE 0
39 #define TRUE 1
40
41 struct snd_wait {
42 int mode;
43 };
44
45 extern int sound_alloc_dma(int chn, char *deviceID);
46 extern int sound_open_dma(int chn, char *deviceID);
47 extern void sound_free_dma(int chn);
48 extern void sound_close_dma(int chn);
49
50 #define RUNTIME_DMA_ALLOC
51
52 extern caddr_t sound_mem_blocks[1024];
53 extern int sound_num_blocks;
54
55 #undef PSEUDO_DMA_AUTOINIT
56 #define ALLOW_BUFFER_MAPPING