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