Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | #ifdef __KERNEL__ |
| 11 | #include <linux/utsname.h> |
| 12 | #include <linux/string.h> |
| 13 | #include <linux/fs.h> |
| 14 | #include <asm/dma.h> |
| 15 | #include <asm/io.h> |
| 16 | #include <asm/param.h> |
| 17 | #include <linux/sched.h> |
| 18 | #include <linux/slab.h> |
| 19 | #include <linux/ioport.h> |
| 20 | #include <asm/page.h> |
| 21 | #include <asm/system.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | #include <linux/vmalloc.h> |
| 23 | #include <asm/uaccess.h> |
| 24 | #include <linux/poll.h> |
| 25 | #include <linux/pci.h> |
| 26 | #endif |
| 27 | |
| 28 | #include <linux/soundcard.h> |
| 29 | |
| 30 | #define FALSE 0 |
| 31 | #define TRUE 1 |
| 32 | |
| 33 | extern int sound_alloc_dma(int chn, char *deviceID); |
| 34 | extern int sound_open_dma(int chn, char *deviceID); |
| 35 | extern void sound_free_dma(int chn); |
| 36 | extern void sound_close_dma(int chn); |
| 37 | |
| 38 | extern void reprogram_timer(void); |
| 39 | |
| 40 | #define USE_AUTOINIT_DMA |
| 41 | |
| 42 | extern void *sound_mem_blocks[1024]; |
| 43 | extern int sound_nblocks; |
| 44 | |
| 45 | #undef PSEUDO_DMA_AUTOINIT |
| 46 | #define ALLOW_BUFFER_MAPPING |
| 47 | |
| 48 | extern struct file_operations oss_sound_fops; |