Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
sb.h File Reference

Go to the source code of this file.

Data Structures

struct  mixer_def
 
struct  sb_module_options
 
struct  sb_devc
 

Macros

#define DSP_RESET   (devc->base + 0x6)
 
#define DSP_READ   (devc->base + 0xA)
 
#define DSP_WRITE   (devc->base + 0xC)
 
#define DSP_COMMAND   (devc->base + 0xC)
 
#define DSP_STATUS   (devc->base + 0xC)
 
#define DSP_DATA_AVAIL   (devc->base + 0xE)
 
#define DSP_DATA_AVL16   (devc->base + 0xF)
 
#define MIXER_ADDR   (devc->base + 0x4)
 
#define MIXER_DATA   (devc->base + 0x5)
 
#define OPL3_LEFT   (devc->base + 0x0)
 
#define OPL3_RIGHT   (devc->base + 0x2)
 
#define OPL3_BOTH   (devc->base + 0x8)
 
#define DSP_CMD_SPKON   0xD1
 
#define DSP_CMD_SPKOFF   0xD3
 
#define DSP_CMD_DMAON   0xD0
 
#define DSP_CMD_DMAOFF   0xD4
 
#define IMODE_NONE   0
 
#define IMODE_OUTPUT   PCM_ENABLE_OUTPUT
 
#define IMODE_INPUT   PCM_ENABLE_INPUT
 
#define IMODE_INIT   3
 
#define IMODE_MIDI   4
 
#define NORMAL_MIDI   0
 
#define UART_MIDI   1
 
#define MDL_NONE   0
 
#define MDL_SB1   1 /* SB1.0 or 1.5 */
 
#define MDL_SB2   2 /* SB2.0 */
 
#define MDL_SB201   3 /* SB2.01 */
 
#define MDL_SBPRO   4 /* SB Pro */
 
#define MDL_SB16   5 /* SB16/32/AWE */
 
#define MDL_SBPNP   6 /* SB16/32/AWE PnP */
 
#define MDL_JAZZ   10 /* Media Vision Jazz16 */
 
#define MDL_SMW   11 /* Logitech SoundMan Wave (Jazz16) */
 
#define MDL_ESS   12 /* ESS ES688 and ES1688 */
 
#define MDL_AZTECH   13 /* Aztech Sound Galaxy family */
 
#define MDL_ES1868MIDI   14 /* MIDI port of ESS1868 */
 
#define MDL_AEDSP   15 /* Audio Excel DSP 16 */
 
#define MDL_ESSPCI   16 /* ESS PCI card */
 
#define MDL_YMPCI   17 /* Yamaha PCI sb in emulation */
 
#define SUBMDL_ALS007   42 /* ALS-007 differs from SB16 only in mixer */
 
#define SUBMDL_ALS100   43 /* ALS-100 allows sampling rates of up */
 
#define SB_NO_MIDI   0x00000001
 
#define SB_NO_MIXER   0x00000002
 
#define SB_NO_AUDIO   0x00000004
 
#define SB_NO_RECORDING   0x00000008 /* No audio recording */
 
#define SB_MIDI_ONLY   (SB_NO_AUDIO|SB_NO_MIXER)
 
#define SB_PCI_IRQ   0x00000010 /* PCI shared IRQ */
 
#define SBCAP_STEREO   0x00000001
 
#define SBCAP_16BITS   0x00000002
 
#define SB_PCI_ESSMAESTRO   1 /* ESS Maestro Legacy */
 
#define SB_PCI_YAMAHA   2 /* Yamaha Legacy */
 

Typedefs

typedef struct mixer_def mixer_tab [32][2]
 
typedef struct mixer_def mixer_ent
 
typedef struct sb_devc sb_devc
 

Functions

int sb_dsp_command (sb_devc *devc, unsigned char val)
 
int sb_dsp_get_byte (sb_devc *devc)
 
int sb_dsp_reset (sb_devc *devc)
 
void sb_setmixer (sb_devc *devc, unsigned int port, unsigned int value)
 
unsigned int sb_getmixer (sb_devc *devc, unsigned int port)
 
int sb_dsp_detect (struct address_info *hw_config, int pci, int pciio, struct sb_module_options *sbmo)
 
int sb_dsp_init (struct address_info *hw_config, struct module *owner)
 
void sb_dsp_unload (struct address_info *hw_config, int sbmpu)
 
int sb_mixer_init (sb_devc *devc, struct module *owner)
 
void sb_mixer_unload (sb_devc *devc)
 
void sb_mixer_set_stereo (sb_devc *devc, int mode)
 
void smw_mixer_init (sb_devc *devc)
 
void sb_dsp_midi_init (sb_devc *devc, struct module *owner)
 
void sb_audio_init (sb_devc *devc, char *name, struct module *owner)
 
void sb_midi_interrupt (sb_devc *devc)
 
void sb_chgmixer (sb_devc *devc, unsigned int reg, unsigned int mask, unsigned int val)
 
int sb_common_mixer_set (sb_devc *devc, int dev, int left, int right)
 
int sb_audio_open (int dev, int mode)
 
void sb_audio_close (int dev)
 
void sb_dsp_disable_midi (int port)
 
int probe_sbmpu (struct address_info *hw_config, struct module *owner)
 
void unload_sbmpu (struct address_info *hw_config)
 
void unload_sb16 (struct address_info *hw_info)
 
void unload_sb16midi (struct address_info *hw_info)
 

Macro Definition Documentation

#define DSP_CMD_DMAOFF   0xD4

Definition at line 18 of file sb.h.

#define DSP_CMD_DMAON   0xD0

Definition at line 17 of file sb.h.

#define DSP_CMD_SPKOFF   0xD3

Definition at line 16 of file sb.h.

#define DSP_CMD_SPKON   0xD1

Definition at line 15 of file sb.h.

#define DSP_COMMAND   (devc->base + 0xC)

Definition at line 4 of file sb.h.

#define DSP_DATA_AVAIL   (devc->base + 0xE)

Definition at line 6 of file sb.h.

#define DSP_DATA_AVL16   (devc->base + 0xF)

Definition at line 7 of file sb.h.

#define DSP_READ   (devc->base + 0xA)

Definition at line 2 of file sb.h.

#define DSP_RESET   (devc->base + 0x6)

Definition at line 1 of file sb.h.

#define DSP_STATUS   (devc->base + 0xC)

Definition at line 5 of file sb.h.

#define DSP_WRITE   (devc->base + 0xC)

Definition at line 3 of file sb.h.

#define IMODE_INIT   3

Definition at line 23 of file sb.h.

#define IMODE_INPUT   PCM_ENABLE_INPUT

Definition at line 22 of file sb.h.

#define IMODE_MIDI   4

Definition at line 24 of file sb.h.

#define IMODE_NONE   0

Definition at line 20 of file sb.h.

#define IMODE_OUTPUT   PCM_ENABLE_OUTPUT

Definition at line 21 of file sb.h.

#define MDL_AEDSP   15 /* Audio Excel DSP 16 */

Definition at line 45 of file sb.h.

#define MDL_AZTECH   13 /* Aztech Sound Galaxy family */

Definition at line 43 of file sb.h.

#define MDL_ES1868MIDI   14 /* MIDI port of ESS1868 */

Definition at line 44 of file sb.h.

#define MDL_ESS   12 /* ESS ES688 and ES1688 */

Definition at line 42 of file sb.h.

#define MDL_ESSPCI   16 /* ESS PCI card */

Definition at line 46 of file sb.h.

#define MDL_JAZZ   10 /* Media Vision Jazz16 */

Definition at line 40 of file sb.h.

#define MDL_NONE   0

Definition at line 33 of file sb.h.

#define MDL_SB1   1 /* SB1.0 or 1.5 */

Definition at line 34 of file sb.h.

#define MDL_SB16   5 /* SB16/32/AWE */

Definition at line 38 of file sb.h.

#define MDL_SB2   2 /* SB2.0 */

Definition at line 35 of file sb.h.

#define MDL_SB201   3 /* SB2.01 */

Definition at line 36 of file sb.h.

#define MDL_SBPNP   6 /* SB16/32/AWE PnP */

Definition at line 39 of file sb.h.

#define MDL_SBPRO   4 /* SB Pro */

Definition at line 37 of file sb.h.

#define MDL_SMW   11 /* Logitech SoundMan Wave (Jazz16) */

Definition at line 41 of file sb.h.

#define MDL_YMPCI   17 /* Yamaha PCI sb in emulation */

Definition at line 47 of file sb.h.

#define MIXER_ADDR   (devc->base + 0x4)

Definition at line 8 of file sb.h.

#define MIXER_DATA   (devc->base + 0x5)

Definition at line 9 of file sb.h.

#define NORMAL_MIDI   0

Definition at line 26 of file sb.h.

#define OPL3_BOTH   (devc->base + 0x8)

Definition at line 12 of file sb.h.

#define OPL3_LEFT   (devc->base + 0x0)

Definition at line 10 of file sb.h.

#define OPL3_RIGHT   (devc->base + 0x2)

Definition at line 11 of file sb.h.

#define SB_MIDI_ONLY   (SB_NO_AUDIO|SB_NO_MIXER)

Definition at line 61 of file sb.h.

#define SB_NO_AUDIO   0x00000004

Definition at line 59 of file sb.h.

#define SB_NO_MIDI   0x00000001

Definition at line 57 of file sb.h.

#define SB_NO_MIXER   0x00000002

Definition at line 58 of file sb.h.

#define SB_NO_RECORDING   0x00000008 /* No audio recording */

Definition at line 60 of file sb.h.

#define SB_PCI_ESSMAESTRO   1 /* ESS Maestro Legacy */

Definition at line 151 of file sb.h.

#define SB_PCI_IRQ   0x00000010 /* PCI shared IRQ */

Definition at line 62 of file sb.h.

#define SB_PCI_YAMAHA   2 /* Yamaha Legacy */

Definition at line 152 of file sb.h.

#define SBCAP_16BITS   0x00000002

Definition at line 90 of file sb.h.

#define SBCAP_STEREO   0x00000001

Definition at line 89 of file sb.h.

#define SUBMDL_ALS007   42 /* ALS-007 differs from SB16 only in mixer */

Definition at line 49 of file sb.h.

#define SUBMDL_ALS100   43 /* ALS-100 allows sampling rates of up */

Definition at line 51 of file sb.h.

#define UART_MIDI   1

Definition at line 27 of file sb.h.

Typedef Documentation

Definition at line 71 of file sb.h.

typedef struct mixer_def mixer_tab[32][2]

Definition at line 70 of file sb.h.

Function Documentation

int probe_sbmpu ( struct address_info hw_config,
struct module owner 
)

Definition at line 1188 of file sb_common.c.

void sb_audio_close ( int  dev)

Definition at line 97 of file sb_audio.c.

void sb_audio_init ( sb_devc devc,
char name,
struct module owner 
)

Definition at line 1029 of file sb_audio.c.

int sb_audio_open ( int  dev,
int  mode 
)

Definition at line 34 of file sb_audio.c.

void sb_chgmixer ( sb_devc devc,
unsigned int  reg,
unsigned int  mask,
unsigned int  val 
)

Definition at line 968 of file sb_common.c.

int sb_common_mixer_set ( sb_devc devc,
int  dev,
int  left,
int  right 
)

Definition at line 273 of file sb_mixer.c.

int sb_dsp_command ( sb_devc devc,
unsigned char  val 
)

Definition at line 86 of file sb_common.c.

int sb_dsp_detect ( struct address_info hw_config,
int  pci,
int  pciio,
struct sb_module_options sbmo 
)

Definition at line 504 of file sb_common.c.

void sb_dsp_disable_midi ( int  port)
int sb_dsp_get_byte ( sb_devc devc)

Definition at line 113 of file sb_common.c.

int sb_dsp_init ( struct address_info hw_config,
struct module owner 
)

Definition at line 640 of file sb_common.c.

void sb_dsp_midi_init ( sb_devc devc,
struct module owner 
)

Definition at line 162 of file sb_midi.c.

int sb_dsp_reset ( sb_devc devc)

Definition at line 225 of file sb_common.c.

void sb_dsp_unload ( struct address_info hw_config,
int  sbmpu 
)

Definition at line 882 of file sb_common.c.

unsigned int sb_getmixer ( sb_devc devc,
unsigned int  port 
)

Definition at line 948 of file sb_common.c.

void sb_midi_interrupt ( sb_devc devc)

Definition at line 127 of file sb_midi.c.

int sb_mixer_init ( sb_devc devc,
struct module owner 
)

Definition at line 672 of file sb_mixer.c.

void sb_mixer_set_stereo ( sb_devc devc,
int  mode 
)

Definition at line 224 of file sb_mixer.c.

void sb_mixer_unload ( sb_devc devc)

Definition at line 762 of file sb_mixer.c.

void sb_setmixer ( sb_devc devc,
unsigned int  port,
unsigned int  value 
)

Definition at line 929 of file sb_common.c.

void smw_mixer_init ( sb_devc devc)

Definition at line 256 of file sb_mixer.c.

void unload_sb16 ( struct address_info hw_info)
void unload_sb16midi ( struct address_info hw_info)
void unload_sbmpu ( struct address_info hw_config)

Definition at line 1274 of file sb_common.c.