Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
sscape.c File Reference
#include <linux/init.h>
#include <linux/err.h>
#include <linux/isa.h>
#include <linux/delay.h>
#include <linux/firmware.h>
#include <linux/pnp.h>
#include <linux/spinlock.h>
#include <linux/module.h>
#include <asm/dma.h>
#include <sound/core.h>
#include <sound/wss.h>
#include <sound/mpu401.h>
#include <sound/initval.h>

Go to the source code of this file.

Data Structures

struct  soundscape
 

Macros

#define HOST_CTRL_IO(i)   ((i) + 2)
 
#define HOST_DATA_IO(i)   ((i) + 3)
 
#define ODIE_ADDR_IO(i)   ((i) + 4)
 
#define ODIE_DATA_IO(i)   ((i) + 5)
 
#define CODEC_IO(i)   ((i) + 8)
 
#define IC_ODIE   1
 
#define IC_OPUS   2
 
#define RX_READY   0x01
 
#define TX_READY   0x02
 
#define CMD_ACK   0x80
 
#define CMD_SET_MIDI_VOL   0x84
 
#define CMD_GET_MIDI_VOL   0x85
 
#define CMD_XXX_MIDI_VOL   0x86
 
#define CMD_SET_EXTMIDI   0x8a
 
#define CMD_GET_EXTMIDI   0x8b
 
#define CMD_SET_MT32   0x8c
 
#define CMD_GET_MT32   0x8d
 
#define DMA_8BIT   0x80
 
#define INVALID_IRQ   ((unsigned)-1)
 
#define MIDI_DEVNUM   0
 
#define DEV_NAME   "sscape"
 

Enumerations

enum  GA_REG {
  GA_INTSTAT_REG = 0, GA_INTENA_REG, GA_DMAA_REG, GA_DMAB_REG,
  GA_INTCFG_REG, GA_DMACFG_REG, GA_CDCFG_REG, GA_SMCFGA_REG,
  GA_SMCFGB_REG, GA_HMCTL_REG
}
 
enum  card_type {
  UNKNOWN = -1, DC10_old, DC10_new, DC10plus,
  DC30, DC30plus, LML33, LML33R10,
  BUZ, AVS6EYES, NUM_CARDS, F32_2 = 2048,
  F32_8 = 8192, CMI8330, CMI8329, MEDIA_FX,
  SSCAPE, SSCAPE_PNP, SSCAPE_VIVO
}
 

Functions

 MODULE_AUTHOR ("Chris Rankin")
 
 MODULE_DESCRIPTION ("ENSONIQ SoundScape driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_FIRMWARE ("sndscape.co0")
 
 MODULE_FIRMWARE ("sndscape.co1")
 
 MODULE_FIRMWARE ("sndscape.co2")
 
 MODULE_FIRMWARE ("sndscape.co3")
 
 MODULE_FIRMWARE ("sndscape.co4")
 
 MODULE_FIRMWARE ("scope.cod")
 
 module_param_array (index, int, NULL, 0444)
 
 MODULE_PARM_DESC (index,"Index number for SoundScape soundcard")
 
 module_param_array (id, charp, NULL, 0444)
 
 MODULE_PARM_DESC (id,"Description for SoundScape card")
 
 module_param_array (port, long, NULL, 0444)
 
 MODULE_PARM_DESC (port,"Port # for SoundScape driver.")
 
 module_param_array (wss_port, long, NULL, 0444)
 
 MODULE_PARM_DESC (wss_port,"WSS Port # for SoundScape driver.")
 
 module_param_array (irq, int, NULL, 0444)
 
 MODULE_PARM_DESC (irq,"IRQ # for SoundScape driver.")
 
 module_param_array (mpu_irq, int, NULL, 0444)
 
 MODULE_PARM_DESC (mpu_irq,"MPU401 IRQ # for SoundScape driver.")
 
 module_param_array (dma, int, NULL, 0444)
 
 MODULE_PARM_DESC (dma,"DMA # for SoundScape driver.")
 
 module_param_array (dma2, int, NULL, 0444)
 
 MODULE_PARM_DESC (dma2,"DMA2 # for SoundScape driver.")
 
 module_param_array (joystick, bool, NULL, 0444)
 
 MODULE_PARM_DESC (joystick,"Enable gameport.")
 
 module_init (sscape_init)
 
 module_exit (sscape_exit)
 

Macro Definition Documentation

#define CMD_ACK   0x80

Definition at line 112 of file sscape.c.

#define CMD_GET_EXTMIDI   0x8b

Definition at line 117 of file sscape.c.

#define CMD_GET_MIDI_VOL   0x85

Definition at line 114 of file sscape.c.

#define CMD_GET_MT32   0x8d

Definition at line 119 of file sscape.c.

#define CMD_SET_EXTMIDI   0x8a

Definition at line 116 of file sscape.c.

#define CMD_SET_MIDI_VOL   0x84

Definition at line 113 of file sscape.c.

#define CMD_SET_MT32   0x8c

Definition at line 118 of file sscape.c.

#define CMD_XXX_MIDI_VOL   0x86

Definition at line 115 of file sscape.c.

#define CODEC_IO (   i)    ((i) + 8)

Definition at line 104 of file sscape.c.

#define DEV_NAME   "sscape"

Definition at line 1207 of file sscape.c.

#define DMA_8BIT   0x80

Definition at line 134 of file sscape.c.

#define HOST_CTRL_IO (   i)    ((i) + 2)

Definition at line 100 of file sscape.c.

#define HOST_DATA_IO (   i)    ((i) + 3)

Definition at line 101 of file sscape.c.

#define IC_ODIE   1

Definition at line 106 of file sscape.c.

#define IC_OPUS   2

Definition at line 107 of file sscape.c.

#define INVALID_IRQ   ((unsigned)-1)

Definition at line 156 of file sscape.c.

#define MIDI_DEVNUM   0
#define ODIE_ADDR_IO (   i)    ((i) + 4)

Definition at line 102 of file sscape.c.

#define ODIE_DATA_IO (   i)    ((i) + 5)

Definition at line 103 of file sscape.c.

#define RX_READY   0x01

Definition at line 109 of file sscape.c.

#define TX_READY   0x02

Definition at line 110 of file sscape.c.

Enumeration Type Documentation

enum card_type
Enumerator:
UNKNOWN 
DC10_old 
DC10_new 
DC10plus 
DC30 
DC30plus 
LML33 
LML33R10 
BUZ 
AVS6EYES 
NUM_CARDS 
F32_2 
F32_8 
CMI8330 
CMI8329 
MEDIA_FX 
SSCAPE 
SSCAPE_PNP 
SSCAPE_VIVO 

Definition at line 137 of file sscape.c.

enum GA_REG
Enumerator:
GA_INTSTAT_REG 
GA_INTENA_REG 
GA_DMAA_REG 
GA_DMAB_REG 
GA_INTCFG_REG 
GA_DMACFG_REG 
GA_CDCFG_REG 
GA_SMCFGA_REG 
GA_SMCFGB_REG 
GA_HMCTL_REG 

Definition at line 121 of file sscape.c.

Function Documentation

MODULE_AUTHOR ( "Chris Rankin"  )
MODULE_DESCRIPTION ( "ENSONIQ SoundScape driver )
module_exit ( sscape_exit  )
MODULE_FIRMWARE ( "sndscape.co0"  )
MODULE_FIRMWARE ( "sndscape.co1"  )
MODULE_FIRMWARE ( "sndscape.co2"  )
MODULE_FIRMWARE ( "sndscape.co3"  )
MODULE_FIRMWARE ( "sndscape.co4"  )
MODULE_FIRMWARE ( "scope.cod"  )
module_init ( sscape_init  )
MODULE_LICENSE ( "GPL"  )
module_param_array ( index  ,
int  ,
NULL  ,
0444   
)
module_param_array ( id  ,
charp  ,
NULL  ,
0444   
)
module_param_array ( port  ,
long  ,
NULL  ,
0444   
)
module_param_array ( wss_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 ( dma2  ,
int  ,
NULL  ,
0444   
)
module_param_array ( joystick  ,
bool  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( index  ,
"Index number for SoundScape soundcard"   
)
MODULE_PARM_DESC ( id  ,
"Description for SoundScape card  
)
MODULE_PARM_DESC ( port  ,
"Port # for SoundScape driver."   
)
MODULE_PARM_DESC ( wss_port  ,
"WSS Port # for SoundScape driver."   
)
MODULE_PARM_DESC ( irq  ,
"IRQ # for SoundScape driver."   
)
MODULE_PARM_DESC ( mpu_irq  ,
"MPU401 IRQ # for SoundScape driver."   
)
MODULE_PARM_DESC ( dma  ,
"DMA # for SoundScape driver."   
)
MODULE_PARM_DESC ( dma2  ,
"DMA2 # for SoundScape driver."   
)
MODULE_PARM_DESC ( joystick  ,
"Enable gameport."   
)