Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
aedsp16.c File Reference
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/init.h>
#include "sound_config.h"

Go to the source code of this file.

Data Structures

struct  orVals
 
struct  aedsp16_info
 

Macros

#define VERSION   "1.3" /* Version of Audio Excel DSP 16 driver */
 
#define DBG(x)
 
#define DBG1(x)
 
#define TRUE   1
 
#define FALSE   0
 
#define IOBASE_REGION_SIZE   0x10
 
#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 DEF_AEDSP16_DMA   1 /* 0 1(default) 3 */
 
#define WRITE_MDIRQ_CFG   0x50 /* Set M&I&DRQ mask (the real config) */
 
#define COMMAND_52   0x52 /* */
 
#define READ_HARD_CFG   0x58 /* Read Hardware Config (I/O base etc) */
 
#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 DSP_INIT_MSS   0x8c /* Enable Microsoft Sound System mode */
 
#define COMMAND_C5   0xc5 /* */
 
#define GET_DSP_VERSION   0xe1 /* Get DSP Version */
 
#define GET_DSP_COPYRIGHT   0xe3 /* Get DSP Copyright */
 
#define DSP_RESET   0x06 /* offset of DSP RESET (wo) */
 
#define DSP_READ   0x0a /* offset of DSP READ (ro) */
 
#define DSP_WRITE   0x0c /* offset of DSP WRITE (w-) */
 
#define DSP_COMMAND   0x0c /* offset of DSP COMMAND (w-) */
 
#define DSP_STATUS   0x0c /* offset of DSP STATUS (r-) */
 
#define DSP_DATAVAIL   0x0e /* offset of DSP DATA AVAILABLE (ro) */
 
#define RETRY   10 /* Various retry values on I/O opera- */
 
#define STATUSRETRY   1000 /* tions. Sometimes we have to */
 
#define HARDRETRY   500000 /* wait for previous cmd to complete */
 
#define CARDNAMELEN   15 /* Size of the card's name in chars */
 
#define CARDVERLEN   10 /* Size of the card's version in chars */
 
#define CARDVERDIGITS   2 /* Number of digits in the version */
 
#define INIT_NONE   (0 )
 
#define INIT_SBPRO   (1<<0)
 
#define INIT_MSS   (1<<1)
 
#define INIT_MPU401   (1<<2)
 

Functions

 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)
 

Macro Definition Documentation

#define CARDNAMELEN   15 /* Size of the card's name in chars */

Definition at line 328 of file aedsp16.c.

#define CARDVERDIGITS   2 /* Number of digits in the version */

Definition at line 330 of file aedsp16.c.

#define CARDVERLEN   10 /* Size of the card's version in chars */

Definition at line 329 of file aedsp16.c.

#define COMMAND_52   0x52 /* */

Definition at line 291 of file aedsp16.c.

#define COMMAND_5C   0x5c /* */

Definition at line 293 of file aedsp16.c.

#define COMMAND_60   0x60 /* */

Definition at line 294 of file aedsp16.c.

#define COMMAND_66   0x66 /* */

Definition at line 295 of file aedsp16.c.

#define COMMAND_6C   0x6c /* */

Definition at line 296 of file aedsp16.c.

#define COMMAND_6E   0x6e /* */

Definition at line 297 of file aedsp16.c.

#define COMMAND_88   0x88 /* */

Definition at line 298 of file aedsp16.c.

#define COMMAND_C5   0xc5 /* */

Definition at line 300 of file aedsp16.c.

#define DBG (   x)

Definition at line 263 of file aedsp16.c.

#define DBG1 (   x)

Definition at line 264 of file aedsp16.c.

#define DEF_AEDSP16_DMA   1 /* 0 1(default) 3 */

Definition at line 284 of file aedsp16.c.

#define DEF_AEDSP16_IOB   0x220 /* 0x220(default) 0x240 */

Definition at line 281 of file aedsp16.c.

#define DEF_AEDSP16_IRQ   7 /* 5 7(default) 9 10 11 */

Definition at line 282 of file aedsp16.c.

#define DEF_AEDSP16_MRQ   0 /* 5 7 9 10 0(default), 0 means disable */

Definition at line 283 of file aedsp16.c.

#define DSP_COMMAND   0x0c /* offset of DSP COMMAND (w-) */

Definition at line 316 of file aedsp16.c.

#define DSP_DATAVAIL   0x0e /* offset of DSP DATA AVAILABLE (ro) */

Definition at line 318 of file aedsp16.c.

#define DSP_INIT_MSS   0x8c /* Enable Microsoft Sound System mode */

Definition at line 299 of file aedsp16.c.

#define DSP_READ   0x0a /* offset of DSP READ (ro) */

Definition at line 314 of file aedsp16.c.

#define DSP_RESET   0x06 /* offset of DSP RESET (wo) */

Definition at line 313 of file aedsp16.c.

#define DSP_STATUS   0x0c /* offset of DSP STATUS (r-) */

Definition at line 317 of file aedsp16.c.

#define DSP_WRITE   0x0c /* offset of DSP WRITE (w-) */

Definition at line 315 of file aedsp16.c.

#define FALSE   0

Definition at line 271 of file aedsp16.c.

#define GET_DSP_COPYRIGHT   0xe3 /* Get DSP Copyright */

Definition at line 302 of file aedsp16.c.

#define GET_DSP_VERSION   0xe1 /* Get DSP Version */

Definition at line 301 of file aedsp16.c.

#define HARDRETRY   500000 /* wait for previous cmd to complete */

Definition at line 323 of file aedsp16.c.

#define INIT_MPU401   (1<<2)

Definition at line 410 of file aedsp16.c.

#define INIT_MSS   (1<<1)

Definition at line 409 of file aedsp16.c.

#define INIT_NONE   (0 )

Definition at line 407 of file aedsp16.c.

#define INIT_SBPRO   (1<<0)

Definition at line 408 of file aedsp16.c.

#define IOBASE_REGION_SIZE   0x10

Definition at line 276 of file aedsp16.c.

#define READ_HARD_CFG   0x58 /* Read Hardware Config (I/O base etc) */

Definition at line 292 of file aedsp16.c.

#define RETRY   10 /* Various retry values on I/O opera- */

Definition at line 321 of file aedsp16.c.

#define STATUSRETRY   1000 /* tions. Sometimes we have to */

Definition at line 322 of file aedsp16.c.

#define TRUE   1

Definition at line 270 of file aedsp16.c.

#define VERSION   "1.3" /* Version of Audio Excel DSP 16 driver */

Definition at line 249 of file aedsp16.c.

#define WRITE_MDIRQ_CFG   0x50 /* Set M&I&DRQ mask (the real config) */

Definition at line 290 of file aedsp16.c.

Function Documentation

__setup ( )
MODULE_AUTHOR ( "Riccardo Facchetti <[email protected]>"  )
MODULE_DESCRIPTION ( "Audio Excel DSP 16 Driver Version VERSION)
module_exit ( cleanup_aedsp16  )
module_init ( do_init_aedsp16  )
MODULE_LICENSE ( "GPL"  )
module_param ( io  ,
int  ,
 
)
module_param ( irq  ,
int  ,
 
)
module_param ( dma  ,
int  ,
 
)
module_param ( mpu_irq  ,
int  ,
 
)
module_param ( mss_base  ,
int  ,
 
)
module_param ( mpu_base  ,
int  ,
 
)
MODULE_PARM_DESC ( io  ,
"I/O base address (0x220 0x240)"   
)
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)"   
)