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