blob: 16f3a069b85c78865929c7bd302b163a79feb36b [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/* SPDX-License-Identifier: GPL-2.0 */
2#define ALLOW_SELECT
3#undef NO_INLINE_ASM
4#define SHORT_BANNERS
5#define MANUAL_PNP
6#undef DO_TIMINGS
7
8#include <linux/module.h>
9
10#ifdef __KERNEL__
11#include <linux/string.h>
12#include <linux/fs.h>
13#include <asm/dma.h>
14#include <asm/io.h>
15#include <asm/param.h>
16#include <linux/sched.h>
17#include <linux/slab.h>
18#include <linux/ioport.h>
19#include <asm/page.h>
20#include <linux/vmalloc.h>
21#include <linux/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
31extern int sound_alloc_dma(int chn, char *deviceID);
32extern int sound_open_dma(int chn, char *deviceID);
33extern void sound_free_dma(int chn);
34extern void sound_close_dma(int chn);
35
36extern void reprogram_timer(void);
37
38#define USE_AUTOINIT_DMA
39
40extern void *sound_mem_blocks[1024];
41extern int sound_nblocks;
42
43#undef PSEUDO_DMA_AUTOINIT
44#define ALLOW_BUFFER_MAPPING
45
46extern const struct file_operations oss_sound_fops;