Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
snd_wavefront.h File Reference
#include <sound/mpu401.h>
#include <sound/hwdep.h>
#include <sound/rawmidi.h>
#include <sound/wavefront.h>

Go to the source code of this file.

Data Structures

struct  _snd_wavefront_midi
 
struct  _snd_wavefront
 
struct  _snd_wavefront_card
 

Macros

#define OUTPUT_READY   0x40
 
#define INPUT_AVAIL   0x80
 
#define MPU_ACK   0xFE
 
#define UART_MODE_ON   0x3F
 
#define mpu_data_port   base
 
#define mpu_command_port   base + 1 /* write semantics */
 
#define mpu_status_port   base + 1 /* read semantics */
 
#define data_port   base + 2
 
#define status_port   base + 3 /* read semantics */
 
#define control_port   base + 3 /* write semantics */
 
#define block_port   base + 4 /* 16 bit, writeonly */
 
#define last_block_port   base + 6 /* 16 bit, writeonly */
 
#define fx_status   base + 8
 
#define fx_op   base + 8
 
#define fx_lcr   base + 9
 
#define fx_dsp_addr   base + 0xa
 
#define fx_dsp_page   base + 0xb
 
#define fx_dsp_lsb   base + 0xc
 
#define fx_dsp_msb   base + 0xd
 
#define fx_mod_addr   base + 0xe
 
#define fx_mod_data   base + 0xf
 
#define LOGNAME   "WaveFront: "
 

Typedefs

typedef struct _snd_wavefront_midi snd_wavefront_midi_t
 
typedef struct _snd_wavefront_card snd_wavefront_card_t
 
typedef struct _snd_wavefront snd_wavefront_t
 

Enumerations

enum  snd_wavefront_mpu_id { internal_mpu = 0, external_mpu = 1 }
 

Functions

void snd_wavefront_midi_enable_virtual (snd_wavefront_card_t *)
 
void snd_wavefront_midi_disable_virtual (snd_wavefront_card_t *)
 
void snd_wavefront_midi_interrupt (snd_wavefront_card_t *)
 
int snd_wavefront_midi_start (snd_wavefront_card_t *)
 
void snd_wavefront_internal_interrupt (snd_wavefront_card_t *card)
 
int snd_wavefront_detect_irq (snd_wavefront_t *dev)
 
int snd_wavefront_check_irq (snd_wavefront_t *dev, int irq)
 
int snd_wavefront_restart (snd_wavefront_t *dev)
 
int snd_wavefront_start (snd_wavefront_t *dev)
 
int snd_wavefront_detect (snd_wavefront_card_t *card)
 
int snd_wavefront_config_midi (snd_wavefront_t *dev)
 
int snd_wavefront_cmd (snd_wavefront_t *, int, unsigned char *, unsigned char *)
 
int snd_wavefront_synth_ioctl (struct snd_hwdep *, struct file *, unsigned int cmd, unsigned long arg)
 
int snd_wavefront_synth_open (struct snd_hwdep *, struct file *)
 
int snd_wavefront_synth_release (struct snd_hwdep *, struct file *)
 
int snd_wavefront_fx_start (snd_wavefront_t *)
 
int snd_wavefront_fx_detect (snd_wavefront_t *)
 
int snd_wavefront_fx_ioctl (struct snd_hwdep *, struct file *, unsigned int cmd, unsigned long arg)
 
int snd_wavefront_fx_open (struct snd_hwdep *, struct file *)
 
int snd_wavefront_fx_release (struct snd_hwdep *, struct file *)
 

Variables

struct snd_rawmidi_ops snd_wavefront_midi_output
 
struct snd_rawmidi_ops snd_wavefront_midi_input
 

Macro Definition Documentation

#define block_port   base + 4 /* 16 bit, writeonly */

Definition at line 59 of file snd_wavefront.h.

#define control_port   base + 3 /* write semantics */

Definition at line 58 of file snd_wavefront.h.

#define data_port   base + 2

Definition at line 56 of file snd_wavefront.h.

#define fx_dsp_addr   base + 0xa

Definition at line 71 of file snd_wavefront.h.

#define fx_dsp_lsb   base + 0xc

Definition at line 73 of file snd_wavefront.h.

#define fx_dsp_msb   base + 0xd

Definition at line 74 of file snd_wavefront.h.

#define fx_dsp_page   base + 0xb

Definition at line 72 of file snd_wavefront.h.

#define fx_lcr   base + 9

Definition at line 70 of file snd_wavefront.h.

#define fx_mod_addr   base + 0xe

Definition at line 75 of file snd_wavefront.h.

#define fx_mod_data   base + 0xf

Definition at line 76 of file snd_wavefront.h.

#define fx_op   base + 8

Definition at line 69 of file snd_wavefront.h.

#define fx_status   base + 8

Definition at line 68 of file snd_wavefront.h.

#define INPUT_AVAIL   0x80

Definition at line 36 of file snd_wavefront.h.

#define last_block_port   base + 6 /* 16 bit, writeonly */

Definition at line 60 of file snd_wavefront.h.

#define LOGNAME   "WaveFront: "

Definition at line 140 of file snd_wavefront.h.

#define MPU_ACK   0xFE

Definition at line 37 of file snd_wavefront.h.

#define mpu_command_port   base + 1 /* write semantics */

Definition at line 54 of file snd_wavefront.h.

#define mpu_data_port   base

Definition at line 53 of file snd_wavefront.h.

#define mpu_status_port   base + 1 /* read semantics */

Definition at line 55 of file snd_wavefront.h.

#define OUTPUT_READY   0x40

Definition at line 35 of file snd_wavefront.h.

#define status_port   base + 3 /* read semantics */

Definition at line 57 of file snd_wavefront.h.

#define UART_MODE_ON   0x3F

Definition at line 38 of file snd_wavefront.h.

Typedef Documentation

Definition at line 16 of file snd_wavefront.h.

Definition at line 15 of file snd_wavefront.h.

Definition at line 17 of file snd_wavefront.h.

Enumeration Type Documentation

Enumerator:
internal_mpu 
external_mpu 

Definition at line 19 of file snd_wavefront.h.

Function Documentation

int snd_wavefront_check_irq ( snd_wavefront_t dev,
int  irq 
)
int snd_wavefront_cmd ( snd_wavefront_t ,
int  ,
unsigned char ,
unsigned char  
)

Definition at line 335 of file wavefront_synth.c.

int snd_wavefront_config_midi ( snd_wavefront_t dev)
int snd_wavefront_detect ( snd_wavefront_card_t card)

Definition at line 2145 of file wavefront_synth.c.

int snd_wavefront_detect_irq ( snd_wavefront_t dev)
int snd_wavefront_fx_detect ( snd_wavefront_t )

Definition at line 129 of file wavefront_fx.c.

int snd_wavefront_fx_ioctl ( struct snd_hwdep ,
struct file ,
unsigned int  cmd,
unsigned long  arg 
)

Definition at line 165 of file wavefront_fx.c.

int snd_wavefront_fx_open ( struct snd_hwdep ,
struct file  
)

Definition at line 147 of file wavefront_fx.c.

int snd_wavefront_fx_release ( struct snd_hwdep ,
struct file  
)

Definition at line 157 of file wavefront_fx.c.

int snd_wavefront_fx_start ( snd_wavefront_t )

Definition at line 244 of file wavefront_fx.c.

void snd_wavefront_internal_interrupt ( snd_wavefront_card_t card)

Definition at line 1695 of file wavefront_synth.c.

void snd_wavefront_midi_disable_virtual ( snd_wavefront_card_t )

Definition at line 472 of file wavefront_midi.c.

void snd_wavefront_midi_enable_virtual ( snd_wavefront_card_t )

Definition at line 459 of file wavefront_midi.c.

void snd_wavefront_midi_interrupt ( snd_wavefront_card_t )

Definition at line 406 of file wavefront_midi.c.

int snd_wavefront_midi_start ( snd_wavefront_card_t )

Definition at line 485 of file wavefront_midi.c.

int snd_wavefront_restart ( snd_wavefront_t dev)
int snd_wavefront_start ( snd_wavefront_t dev)

Definition at line 2103 of file wavefront_synth.c.

int snd_wavefront_synth_ioctl ( struct snd_hwdep ,
struct file ,
unsigned int  cmd,
unsigned long  arg 
)

Definition at line 1640 of file wavefront_synth.c.

int snd_wavefront_synth_open ( struct snd_hwdep ,
struct file  
)

Definition at line 1622 of file wavefront_synth.c.

int snd_wavefront_synth_release ( struct snd_hwdep ,
struct file  
)

Definition at line 1632 of file wavefront_synth.c.

Variable Documentation

struct snd_rawmidi_ops snd_wavefront_midi_input

Definition at line 571 of file wavefront_midi.c.

struct snd_rawmidi_ops snd_wavefront_midi_output

Definition at line 564 of file wavefront_midi.c.