Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sc6000.c File Reference
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/isa.h>
#include <linux/io.h>
#include <asm/dma.h>
#include <sound/core.h>
#include <sound/wss.h>
#include <sound/opl3.h>
#include <sound/mpu401.h>
#include <sound/control.h>
#include <sound/initval.h>

Go to the source code of this file.

Macros

#define SNDRV_LEGACY_FIND_FREE_IRQ
 
#define SNDRV_LEGACY_FIND_FREE_DMA
 
#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 /* Unknown command */
 
#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 PFX   "sc6000: "
 
#define DRV_NAME   "SC-6000"
 

Functions

 MODULE_AUTHOR ("Krzysztof Helt")
 
 MODULE_DESCRIPTION ("Gallant SC-6000")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_SUPPORTED_DEVICE ("{{Gallant, SC-6000},""{AudioExcel, Audio Excel DSP 16},""{Zoltrix, AV302}}")
 
 module_param_array (index, int, NULL, 0444)
 
 MODULE_PARM_DESC (index,"Index value for sc-6000 based soundcard.")
 
 module_param_array (id, charp, NULL, 0444)
 
 MODULE_PARM_DESC (id,"ID string for sc-6000 based soundcard.")
 
 module_param_array (enable, bool, NULL, 0444)
 
 MODULE_PARM_DESC (enable,"Enable sc-6000 based soundcard.")
 
 module_param_array (port, long, NULL, 0444)
 
 MODULE_PARM_DESC (port,"Port # for sc-6000 driver.")
 
 module_param_array (mss_port, long, NULL, 0444)
 
 MODULE_PARM_DESC (mss_port,"MSS Port # for sc-6000 driver.")
 
 module_param_array (mpu_port, long, NULL, 0444)
 
 MODULE_PARM_DESC (mpu_port,"MPU-401 port # for sc-6000 driver.")
 
 module_param_array (irq, int, NULL, 0444)
 
 MODULE_PARM_DESC (irq,"IRQ # for sc-6000 driver.")
 
 module_param_array (mpu_irq, int, NULL, 0444)
 
 MODULE_PARM_DESC (mpu_irq,"MPU-401 IRQ # for sc-6000 driver.")
 
 module_param_array (dma, int, NULL, 0444)
 
 MODULE_PARM_DESC (dma,"DMA # for sc-6000 driver.")
 
 module_param_array (joystick, bool, NULL, 0444)
 
 MODULE_PARM_DESC (joystick,"Enable gameport.")
 

Macro Definition Documentation

#define COMMAND_52   0x52 /* */

Definition at line 87 of file sc6000.c.

#define COMMAND_5C   0x5c /* */

Definition at line 89 of file sc6000.c.

#define COMMAND_60   0x60 /* */

Definition at line 90 of file sc6000.c.

#define COMMAND_66   0x66 /* */

Definition at line 91 of file sc6000.c.

#define COMMAND_6C   0x6c /* */

Definition at line 92 of file sc6000.c.

#define COMMAND_6E   0x6e /* */

Definition at line 93 of file sc6000.c.

#define COMMAND_88   0x88 /* Unknown command */

Definition at line 94 of file sc6000.c.

#define COMMAND_C5   0xc5 /* */

Definition at line 96 of file sc6000.c.

#define DRV_NAME   "SC-6000"

Definition at line 117 of file sc6000.c.

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

Definition at line 112 of file sc6000.c.

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

Definition at line 114 of file sc6000.c.

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

Definition at line 95 of file sc6000.c.

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

Definition at line 110 of file sc6000.c.

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

Definition at line 109 of file sc6000.c.

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

Definition at line 113 of file sc6000.c.

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

Definition at line 111 of file sc6000.c.

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

Definition at line 98 of file sc6000.c.

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

Definition at line 97 of file sc6000.c.

#define PFX   "sc6000: "

Definition at line 116 of file sc6000.c.

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

Definition at line 88 of file sc6000.c.

#define SNDRV_LEGACY_FIND_FREE_DMA

Definition at line 39 of file sc6000.c.

#define SNDRV_LEGACY_FIND_FREE_IRQ

Definition at line 38 of file sc6000.c.

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

Definition at line 86 of file sc6000.c.

Function Documentation

MODULE_AUTHOR ( "Krzysztof Helt"  )
MODULE_DESCRIPTION ( "Gallant SC-6000"  )
MODULE_LICENSE ( "GPL"  )
module_param_array ( index  ,
int  ,
NULL  ,
0444   
)
module_param_array ( id  ,
charp  ,
NULL  ,
0444   
)
module_param_array ( enable  ,
bool  ,
NULL  ,
0444   
)
module_param_array ( port  ,
long  ,
NULL  ,
0444   
)
module_param_array ( mss_port  ,
long  ,
NULL  ,
0444   
)
module_param_array ( mpu_port  ,
long  ,
NULL  ,
0444   
)
module_param_array ( irq  ,
int  ,
NULL  ,
0444   
)
module_param_array ( mpu_irq  ,
int  ,
NULL  ,
0444   
)
module_param_array ( dma  ,
int  ,
NULL  ,
0444   
)
module_param_array ( joystick  ,
bool  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( index  ,
"Index value for sc-6000 based soundcard."   
)
MODULE_PARM_DESC ( id  ,
"ID string for sc-6000 based soundcard."   
)
MODULE_PARM_DESC ( enable  ,
"Enable sc-6000 based soundcard."   
)
MODULE_PARM_DESC ( port  ,
"Port # for sc-6000 driver."   
)
MODULE_PARM_DESC ( mss_port  ,
"MSS Port # for sc-6000 driver."   
)
MODULE_PARM_DESC ( mpu_port  ,
"MPU-401 port # for sc-6000 driver."   
)
MODULE_PARM_DESC ( irq  ,
"IRQ # for sc-6000 driver."   
)
MODULE_PARM_DESC ( mpu_irq  ,
"MPU-401 IRQ # for sc-6000 driver."   
)
MODULE_PARM_DESC ( dma  ,
"DMA # for sc-6000 driver."   
)
MODULE_PARM_DESC ( joystick  ,
"Enable gameport."   
)
MODULE_SUPPORTED_DEVICE ( "{{Gallant, SC-6000},""{AudioExcel, Audio Excel DSP 16},""{Zoltrix, AV302}}"  )