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

Go to the source code of this file.

Data Structures

struct  snd_galaxy
 

Macros

#define DSP_PORT_RESET   0x6
 
#define DSP_PORT_READ   0xa
 
#define DSP_PORT_COMMAND   0xc
 
#define DSP_PORT_STATUS   0xc
 
#define DSP_PORT_DATA_AVAIL   0xe
 
#define DSP_SIGNATURE   0xaa
 
#define DSP_COMMAND_GET_VERSION   0xe1
 
#define WSS_CONFIG_DMA_0   (1 << 0)
 
#define WSS_CONFIG_DMA_1   (2 << 0)
 
#define WSS_CONFIG_DMA_3   (3 << 0)
 
#define WSS_CONFIG_DUPLEX   (1 << 2)
 
#define WSS_CONFIG_IRQ_7   (1 << 3)
 
#define WSS_CONFIG_IRQ_9   (2 << 3)
 
#define WSS_CONFIG_IRQ_10   (3 << 3)
 
#define WSS_CONFIG_IRQ_11   (4 << 3)
 
#define WSS_PORT_CONFIG   0
 
#define WSS_PORT_SIGNATURE   3
 
#define WSS_SIGNATURE   4
 
#define GALAXY_PORT_CONFIG   1024
 
#define CONFIG_PORT_SET   4
 
#define DSP_COMMAND_GALAXY_8   8
 
#define GALAXY_COMMAND_GET_TYPE   5
 
#define DSP_COMMAND_GALAXY_9   9
 
#define GALAXY_COMMAND_WSSMODE   0
 
#define GALAXY_COMMAND_SB8MODE   1
 
#define GALAXY_MODE_WSS   GALAXY_COMMAND_WSSMODE
 
#define GALAXY_MODE_SB8   GALAXY_COMMAND_SB8MODE
 

Functions

 MODULE_DESCRIPTION (CRD_NAME)
 
 MODULE_AUTHOR ("Rene Herman")
 
 MODULE_LICENSE ("GPL")
 
 module_param_array (index, int, NULL, 0444)
 
 MODULE_PARM_DESC (index,"Index value for "CRD_NAME" soundcard.")
 
 module_param_array (id, charp, NULL, 0444)
 
 MODULE_PARM_DESC (id,"ID string for "CRD_NAME" soundcard.")
 
 module_param_array (enable, bool, NULL, 0444)
 
 MODULE_PARM_DESC (enable,"Enable "CRD_NAME" soundcard.")
 
 module_param_array (port, long, NULL, 0444)
 
 MODULE_PARM_DESC (port,"Port # for "CRD_NAME" driver.")
 
 module_param_array (wss_port, long, NULL, 0444)
 
 MODULE_PARM_DESC (wss_port,"WSS port # for "CRD_NAME" driver.")
 
 module_param_array (mpu_port, long, NULL, 0444)
 
 MODULE_PARM_DESC (mpu_port,"MPU-401 port # for "CRD_NAME" driver.")
 
 module_param_array (fm_port, long, NULL, 0444)
 
 MODULE_PARM_DESC (fm_port,"FM port # for "CRD_NAME" driver.")
 
 module_param_array (irq, int, NULL, 0444)
 
 MODULE_PARM_DESC (irq,"IRQ # for "CRD_NAME" driver.")
 
 module_param_array (mpu_irq, int, NULL, 0444)
 
 MODULE_PARM_DESC (mpu_irq,"MPU-401 IRQ # for "CRD_NAME" driver.")
 
 module_param_array (dma1, int, NULL, 0444)
 
 MODULE_PARM_DESC (dma1,"Playback DMA # for "CRD_NAME" driver.")
 
 module_param_array (dma2, int, NULL, 0444)
 
 MODULE_PARM_DESC (dma2,"Capture DMA # for "CRD_NAME" driver.")
 
 module_init (alsa_card_galaxy_init)
 
 module_exit (alsa_card_galaxy_exit)
 

Macro Definition Documentation

#define CONFIG_PORT_SET   4

Definition at line 182 of file galaxy.c.

#define DSP_COMMAND_GALAXY_8   8

Definition at line 184 of file galaxy.c.

#define DSP_COMMAND_GALAXY_9   9

Definition at line 187 of file galaxy.c.

#define DSP_COMMAND_GET_VERSION   0xe1

Definition at line 85 of file galaxy.c.

#define DSP_PORT_COMMAND   0xc

Definition at line 79 of file galaxy.c.

#define DSP_PORT_DATA_AVAIL   0xe

Definition at line 81 of file galaxy.c.

#define DSP_PORT_READ   0xa

Definition at line 78 of file galaxy.c.

#define DSP_PORT_RESET   0x6

Definition at line 77 of file galaxy.c.

#define DSP_PORT_STATUS   0xc

Definition at line 80 of file galaxy.c.

#define DSP_SIGNATURE   0xaa

Definition at line 83 of file galaxy.c.

#define GALAXY_COMMAND_GET_TYPE   5

Definition at line 185 of file galaxy.c.

#define GALAXY_COMMAND_SB8MODE   1

Definition at line 189 of file galaxy.c.

#define GALAXY_COMMAND_WSSMODE   0

Definition at line 188 of file galaxy.c.

#define GALAXY_MODE_SB8   GALAXY_COMMAND_SB8MODE

Definition at line 192 of file galaxy.c.

#define GALAXY_MODE_WSS   GALAXY_COMMAND_WSSMODE

Definition at line 191 of file galaxy.c.

#define GALAXY_PORT_CONFIG   1024

Definition at line 181 of file galaxy.c.

#define WSS_CONFIG_DMA_0   (1 << 0)

Definition at line 150 of file galaxy.c.

#define WSS_CONFIG_DMA_1   (2 << 0)

Definition at line 151 of file galaxy.c.

#define WSS_CONFIG_DMA_3   (3 << 0)

Definition at line 152 of file galaxy.c.

#define WSS_CONFIG_DUPLEX   (1 << 2)

Definition at line 153 of file galaxy.c.

#define WSS_CONFIG_IRQ_10   (3 << 3)

Definition at line 156 of file galaxy.c.

#define WSS_CONFIG_IRQ_11   (4 << 3)

Definition at line 157 of file galaxy.c.

#define WSS_CONFIG_IRQ_7   (1 << 3)

Definition at line 154 of file galaxy.c.

#define WSS_CONFIG_IRQ_9   (2 << 3)

Definition at line 155 of file galaxy.c.

#define WSS_PORT_CONFIG   0

Definition at line 159 of file galaxy.c.

#define WSS_PORT_SIGNATURE   3

Definition at line 160 of file galaxy.c.

#define WSS_SIGNATURE   4

Definition at line 162 of file galaxy.c.

Function Documentation

MODULE_AUTHOR ( "Rene Herman"  )
MODULE_DESCRIPTION ( CRD_NAME  )
module_exit ( alsa_card_galaxy_exit  )
module_init ( alsa_card_galaxy_init  )
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 ( wss_port  ,
long  ,
NULL  ,
0444   
)
module_param_array ( mpu_port  ,
long  ,
NULL  ,
0444   
)
module_param_array ( fm_port  ,
long  ,
NULL  ,
0444   
)
module_param_array ( irq  ,
int  ,
NULL  ,
0444   
)
module_param_array ( mpu_irq  ,
int  ,
NULL  ,
0444   
)
module_param_array ( dma1  ,
int  ,
NULL  ,
0444   
)
module_param_array ( dma2  ,
int  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( index  ,
"Index value for "CRD_NAME" soundcard."   
)
MODULE_PARM_DESC ( id  ,
"ID string for "CRD_NAME" soundcard."   
)
MODULE_PARM_DESC ( enable  ,
"Enable "CRD_NAME" soundcard."   
)
MODULE_PARM_DESC ( port  ,
"Port # for "CRD_NAME" driver."   
)
MODULE_PARM_DESC ( wss_port  ,
"WSS port # for "CRD_NAME" driver."   
)
MODULE_PARM_DESC ( mpu_port  ,
"MPU-401 port # for "CRD_NAME" driver."   
)
MODULE_PARM_DESC ( fm_port  ,
"FM port # for "CRD_NAME" driver."   
)
MODULE_PARM_DESC ( irq  ,
"IRQ # for "CRD_NAME" driver."   
)
MODULE_PARM_DESC ( mpu_irq  ,
"MPU-401 IRQ # for "CRD_NAME" driver."   
)
MODULE_PARM_DESC ( dma1  ,
"Playback DMA # for "CRD_NAME" driver."   
)
MODULE_PARM_DESC ( dma2  ,
"Capture DMA # for "CRD_NAME" driver."   
)