1 #define ALLOW_SELECT 2 #undef NO_INLINE_ASM 3 #define SHORT_BANNERS 4 #define MANUAL_PNP 5 #undef DO_TIMINGS 6 7 #include <linux/module.h> 8 #include <linux/version.h> 9 10 #if LINUX_VERSION_CODE > 131328 11 #define LINUX21X 12 #endif 13 14 #ifdef __KERNEL__ 15 #include <linux/utsname.h> 16 #include <linux/string.h> 17 #include <linux/fs.h> 18 #include <asm/dma.h> 19 #include <asm/io.h> 20 #include <asm/param.h> 21 #include <linux/ptrace.h> 22 #include <linux/sched.h> 23 #include <linux/slab.h> 24 #include <linux/ioport.h> 25 #include <asm/page.h> 26 #include <asm/system.h> 27 #ifdef __alpha__ 28 #include <asm/segment.h> 29 #endif 30 #include <linux/vmalloc.h> 31 #include <asm/uaccess.h> 32 #include <linux/poll.h> 33 #include <linux/pci.h> 34 #endif 35 36 #include <linux/wrapper.h> 37 #include <linux/soundcard.h> 38 39 #define FALSE 0 40 #define TRUE 1 41 42 extern int sound_alloc_dma(int chn, char *deviceID); 43 extern int sound_open_dma(int chn, char *deviceID); 44 extern void sound_free_dma(int chn); 45 extern void sound_close_dma(int chn); 46 47 extern void reprogram_timer(void); 48 49 #define USE_AUTOINIT_DMA 50 51 extern caddr_t sound_mem_blocks[1024]; 52 extern int sound_nblocks; 53 54 #undef PSEUDO_DMA_AUTOINIT 55 #define ALLOW_BUFFER_MAPPING 56 57 extern struct file_operations oss_sound_fops; 58