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