#include <linux/delay.h>
#include <linux/module.h>
#include <linux/init.h>
#include "sound_config.h"
Go to the source code of this file.
|
| module_param (io, int, 0) |
|
| MODULE_PARM_DESC (io,"I/O base address (0x220 0x240)") |
|
| module_param (irq, int, 0) |
|
| MODULE_PARM_DESC (irq,"IRQ line (5 7 9 10 11)") |
|
| module_param (dma, int, 0) |
|
| MODULE_PARM_DESC (dma,"dma line (0 1 3)") |
|
| module_param (mpu_irq, int, 0) |
|
| MODULE_PARM_DESC (mpu_irq,"MPU-401 IRQ line (5 7 9 10 0)") |
|
| module_param (mss_base, int, 0) |
|
| MODULE_PARM_DESC (mss_base,"MSS emulation I/O base address (0x530 0xE80)") |
|
| module_param (mpu_base, int, 0) |
|
| MODULE_PARM_DESC (mpu_base,"MPU-401 I/O base address (0x300 0x310 0x320 0x330)") |
|
| MODULE_AUTHOR ("Riccardo Facchetti <[email protected]>") |
|
| MODULE_DESCRIPTION ("Audio Excel DSP 16 Driver Version "VERSION) |
|
| MODULE_LICENSE ("GPL") |
|
| module_init (do_init_aedsp16) |
|
| module_exit (cleanup_aedsp16) |
|
| __setup ("aedsp16=", setup_aedsp16) |
|
#define CARDVERDIGITS 2 /* Number of digits in the version */ |
#define COMMAND_52 0x52 /* */ |
#define COMMAND_5C 0x5c /* */ |
#define COMMAND_60 0x60 /* */ |
#define COMMAND_66 0x66 /* */ |
#define COMMAND_6C 0x6c /* */ |
#define COMMAND_6E 0x6e /* */ |
#define COMMAND_88 0x88 /* */ |
#define COMMAND_C5 0xc5 /* */ |
#define DEF_AEDSP16_DMA 1 /* 0 1(default) 3 */ |
#define DEF_AEDSP16_IOB 0x220 /* 0x220(default) 0x240 */ |
#define DEF_AEDSP16_IRQ 7 /* 5 7(default) 9 10 11 */ |
#define DEF_AEDSP16_MRQ 0 /* 5 7 9 10 0(default), 0 means disable */ |
#define DSP_COMMAND 0x0c /* offset of DSP COMMAND (w-) */ |
#define DSP_DATAVAIL 0x0e /* offset of DSP DATA AVAILABLE (ro) */ |
#define DSP_INIT_MSS 0x8c /* Enable Microsoft Sound System mode */ |
#define DSP_READ 0x0a /* offset of DSP READ (ro) */ |
#define DSP_RESET 0x06 /* offset of DSP RESET (wo) */ |
#define DSP_STATUS 0x0c /* offset of DSP STATUS (r-) */ |
#define DSP_WRITE 0x0c /* offset of DSP WRITE (w-) */ |
#define GET_DSP_COPYRIGHT 0xe3 /* Get DSP Copyright */ |
#define GET_DSP_VERSION 0xe1 /* Get DSP Version */ |
#define INIT_MPU401 (1<<2) |
#define INIT_SBPRO (1<<0) |
#define IOBASE_REGION_SIZE 0x10 |
#define READ_HARD_CFG 0x58 /* Read Hardware Config (I/O base etc) */ |
#define STATUSRETRY 1000 /* tions. Sometimes we have to */ |
#define WRITE_MDIRQ_CFG 0x50 /* Set M&I&DRQ mask (the real config) */ |
MODULE_DESCRIPTION |
( |
"Audio Excel DSP 16 Driver Version " |
VERSION | ) |
|
module_exit |
( |
cleanup_aedsp16 |
| ) |
|
module_init |
( |
do_init_aedsp16 |
| ) |
|
module_param |
( |
io |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
irq |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
dma |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
mpu_irq |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
mss_base |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
mpu_base |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
irq |
, |
|
|
"IRQ line (5 7 9 10 11)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
dma |
, |
|
|
"dma line (0 1 3)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
mpu_irq |
, |
|
|
"MPU-401 IRQ line (5 7 9 10 0)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
mss_base |
, |
|
|
"MSS emulation I/O base address (0x530 0xE80)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
mpu_base |
, |
|
|
"MPU-401 I/O base address (0x300 0x310 0x320 0x330)" |
|
|
) |
| |