Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
gus.h File Reference
#include <sound/pcm.h>
#include <sound/rawmidi.h>
#include <sound/timer.h>
#include <sound/seq_midi_emul.h>
#include <sound/seq_device.h>
#include <asm/io.h>

Go to the source code of this file.

Data Structures

struct  snd_gf1_bank_info
 
struct  snd_gf1_mem_block
 
struct  snd_gf1_mem
 
struct  snd_gf1_dma_block
 
struct  snd_gus_port
 
struct  snd_gus_voice
 
struct  snd_gf1
 
struct  snd_gus_card
 
struct  _SND_IW_LFO_PROGRAM
 

Macros

#define GUSP(gus, x)   ((gus)->gf1.port + SNDRV_g_u_s_##x)
 
#define SNDRV_g_u_s_MIDICTRL   (0x320-0x220)
 
#define SNDRV_g_u_s_MIDISTAT   (0x320-0x220)
 
#define SNDRV_g_u_s_MIDIDATA   (0x321-0x220)
 
#define SNDRV_g_u_s_GF1PAGE   (0x322-0x220)
 
#define SNDRV_g_u_s_GF1REGSEL   (0x323-0x220)
 
#define SNDRV_g_u_s_GF1DATALOW   (0x324-0x220)
 
#define SNDRV_g_u_s_GF1DATAHIGH   (0x325-0x220)
 
#define SNDRV_g_u_s_IRQSTAT   (0x226-0x220)
 
#define SNDRV_g_u_s_TIMERCNTRL   (0x228-0x220)
 
#define SNDRV_g_u_s_TIMERDATA   (0x229-0x220)
 
#define SNDRV_g_u_s_DRAM   (0x327-0x220)
 
#define SNDRV_g_u_s_MIXCNTRLREG   (0x220-0x220)
 
#define SNDRV_g_u_s_IRQDMACNTRLREG   (0x22b-0x220)
 
#define SNDRV_g_u_s_REGCNTRLS   (0x22f-0x220)
 
#define SNDRV_g_u_s_BOARDVERSION   (0x726-0x220)
 
#define SNDRV_g_u_s_MIXCNTRLPORT   (0x726-0x220)
 
#define SNDRV_g_u_s_IVER   (0x325-0x220)
 
#define SNDRV_g_u_s_MIXDATAPORT   (0x326-0x220)
 
#define SNDRV_g_u_s_MAXCNTRLPORT   (0x326-0x220)
 
#define SNDRV_GF1_GB_ACTIVE_VOICES   0x0e
 
#define SNDRV_GF1_GB_VOICES_IRQ   0x0f
 
#define SNDRV_GF1_GB_GLOBAL_MODE   0x19
 
#define SNDRV_GF1_GW_LFO_BASE   0x1a
 
#define SNDRV_GF1_GB_VOICES_IRQ_READ   0x1f
 
#define SNDRV_GF1_GB_DRAM_DMA_CONTROL   0x41
 
#define SNDRV_GF1_GW_DRAM_DMA_LOW   0x42
 
#define SNDRV_GF1_GW_DRAM_IO_LOW   0x43
 
#define SNDRV_GF1_GB_DRAM_IO_HIGH   0x44
 
#define SNDRV_GF1_GB_SOUND_BLASTER_CONTROL   0x45
 
#define SNDRV_GF1_GB_ADLIB_TIMER_1   0x46
 
#define SNDRV_GF1_GB_ADLIB_TIMER_2   0x47
 
#define SNDRV_GF1_GB_RECORD_RATE   0x48
 
#define SNDRV_GF1_GB_REC_DMA_CONTROL   0x49
 
#define SNDRV_GF1_GB_JOYSTICK_DAC_LEVEL   0x4b
 
#define SNDRV_GF1_GB_RESET   0x4c
 
#define SNDRV_GF1_GB_DRAM_DMA_HIGH   0x50
 
#define SNDRV_GF1_GW_DRAM_IO16   0x51
 
#define SNDRV_GF1_GW_MEMORY_CONFIG   0x52
 
#define SNDRV_GF1_GB_MEMORY_CONTROL   0x53
 
#define SNDRV_GF1_GW_FIFO_RECORD_BASE_ADDR   0x54
 
#define SNDRV_GF1_GW_FIFO_PLAY_BASE_ADDR   0x55
 
#define SNDRV_GF1_GW_FIFO_SIZE   0x56
 
#define SNDRV_GF1_GW_INTERLEAVE   0x57
 
#define SNDRV_GF1_GB_COMPATIBILITY   0x59
 
#define SNDRV_GF1_GB_DECODE_CONTROL   0x5a
 
#define SNDRV_GF1_GB_VERSION_NUMBER   0x5b
 
#define SNDRV_GF1_GB_MPU401_CONTROL_A   0x5c
 
#define SNDRV_GF1_GB_MPU401_CONTROL_B   0x5d
 
#define SNDRV_GF1_GB_EMULATION_IRQ   0x60
 
#define SNDRV_GF1_VB_ADDRESS_CONTROL   0x00
 
#define SNDRV_GF1_VW_FREQUENCY   0x01
 
#define SNDRV_GF1_VW_START_HIGH   0x02
 
#define SNDRV_GF1_VW_START_LOW   0x03
 
#define SNDRV_GF1_VA_START   SNDRV_GF1_VW_START_HIGH
 
#define SNDRV_GF1_VW_END_HIGH   0x04
 
#define SNDRV_GF1_VW_END_LOW   0x05
 
#define SNDRV_GF1_VA_END   SNDRV_GF1_VW_END_HIGH
 
#define SNDRV_GF1_VB_VOLUME_RATE   0x06
 
#define SNDRV_GF1_VB_VOLUME_START   0x07
 
#define SNDRV_GF1_VB_VOLUME_END   0x08
 
#define SNDRV_GF1_VW_VOLUME   0x09
 
#define SNDRV_GF1_VW_CURRENT_HIGH   0x0a
 
#define SNDRV_GF1_VW_CURRENT_LOW   0x0b
 
#define SNDRV_GF1_VA_CURRENT   SNDRV_GF1_VW_CURRENT_HIGH
 
#define SNDRV_GF1_VB_PAN   0x0c
 
#define SNDRV_GF1_VW_OFFSET_RIGHT   0x0c
 
#define SNDRV_GF1_VB_VOLUME_CONTROL   0x0d
 
#define SNDRV_GF1_VB_UPPER_ADDRESS   0x10
 
#define SNDRV_GF1_VW_EFFECT_HIGH   0x11
 
#define SNDRV_GF1_VW_EFFECT_LOW   0x12
 
#define SNDRV_GF1_VA_EFFECT   SNDRV_GF1_VW_EFFECT_HIGH
 
#define SNDRV_GF1_VW_OFFSET_LEFT   0x13
 
#define SNDRV_GF1_VB_ACCUMULATOR   0x14
 
#define SNDRV_GF1_VB_MODE   0x15
 
#define SNDRV_GF1_VW_EFFECT_VOLUME   0x16
 
#define SNDRV_GF1_VB_FREQUENCY_LFO   0x17
 
#define SNDRV_GF1_VB_VOLUME_LFO   0x18
 
#define SNDRV_GF1_VW_OFFSET_RIGHT_FINAL   0x1b
 
#define SNDRV_GF1_VW_OFFSET_LEFT_FINAL   0x1c
 
#define SNDRV_GF1_VW_EFFECT_VOLUME_FINAL   0x1d
 
#define SNDRV_ICS_MIC_DEV   0
 
#define SNDRV_ICS_LINE_DEV   1
 
#define SNDRV_ICS_CD_DEV   2
 
#define SNDRV_ICS_GF1_DEV   3
 
#define SNDRV_ICS_NONE_DEV   4
 
#define SNDRV_ICS_MASTER_DEV   5
 
#define SNDRV_LFO_TREMOLO   0
 
#define SNDRV_LFO_VIBRATO   1
 
#define SNDRV_GF1_DMA_UNSIGNED   0x80
 
#define SNDRV_GF1_DMA_16BIT   0x40
 
#define SNDRV_GF1_DMA_IRQ   0x20
 
#define SNDRV_GF1_DMA_WIDTH16   0x04
 
#define SNDRV_GF1_DMA_READ   0x02 /* read from GUS's DRAM */
 
#define SNDRV_GF1_DMA_ENABLE   0x01
 
#define SNDRV_GF1_ATTEN(x)   (snd_gf1_atten_table[x])
 
#define SNDRV_GF1_MIN_VOLUME   1800
 
#define SNDRV_GF1_MAX_VOLUME   4095
 
#define SNDRV_GF1_MIN_OFFSET   (SNDRV_GF1_MIN_VOLUME>>4)
 
#define SNDRV_GF1_MAX_OFFSET   255
 
#define SNDRV_GF1_MAX_TDEPTH   90
 
#define SNDRV_GF1_MEM_BLOCK_16BIT   0x0001
 
#define SNDRV_GF1_MEM_OWNER_DRIVER   0x0001
 
#define SNDRV_GF1_MEM_OWNER_WAVE_SIMPLE   0x0002
 
#define SNDRV_GF1_MEM_OWNER_WAVE_GF1   0x0003
 
#define SNDRV_GF1_MEM_OWNER_WAVE_IWFFFF   0x0004
 
#define SNDRV_GF1_HANDLER_MIDI_OUT   0x00010000
 
#define SNDRV_GF1_HANDLER_MIDI_IN   0x00020000
 
#define SNDRV_GF1_HANDLER_TIMER1   0x00040000
 
#define SNDRV_GF1_HANDLER_TIMER2   0x00080000
 
#define SNDRV_GF1_HANDLER_VOICE   0x00100000
 
#define SNDRV_GF1_HANDLER_DMA_WRITE   0x00200000
 
#define SNDRV_GF1_HANDLER_DMA_READ   0x00400000
 
#define SNDRV_GF1_HANDLER_ALL   (0xffff0000&~SNDRV_GF1_HANDLER_VOICE)
 
#define SNDRV_GF1_DMA_TRIGGER   1
 
#define SNDRV_GF1_VOICE_TYPE_PCM   0
 
#define SNDRV_GF1_VOICE_TYPE_SYNTH   1
 
#define SNDRV_GF1_VOICE_TYPE_MIDI   2
 
#define SNDRV_GF1_VFLG_RUNNING   (1<<0)
 
#define SNDRV_GF1_VFLG_EFFECT_TIMER1   (1<<1)
 
#define SNDRV_GF1_VFLG_PAN   (1<<2)
 

Enumerations

enum  snd_gus_volume_state {
  VENV_BEFORE, VENV_ATTACK, VENV_SUSTAIN, VENV_RELEASE,
  VENV_DONE, VENV_VOLUME
}
 

Functions

void snd_gf1_delay (struct snd_gus_card *gus)
 
void snd_gf1_ctrl_stop (struct snd_gus_card *gus, unsigned char reg)
 
void snd_gf1_write8 (struct snd_gus_card *gus, unsigned char reg, unsigned char data)
 
unsigned char snd_gf1_look8 (struct snd_gus_card *gus, unsigned char reg)
 
void snd_gf1_write16 (struct snd_gus_card *gus, unsigned char reg, unsigned int data)
 
unsigned short snd_gf1_look16 (struct snd_gus_card *gus, unsigned char reg)
 
void snd_gf1_adlib_write (struct snd_gus_card *gus, unsigned char reg, unsigned char data)
 
void snd_gf1_dram_addr (struct snd_gus_card *gus, unsigned int addr)
 
void snd_gf1_poke (struct snd_gus_card *gus, unsigned int addr, unsigned char data)
 
unsigned char snd_gf1_peek (struct snd_gus_card *gus, unsigned int addr)
 
void snd_gf1_write_addr (struct snd_gus_card *gus, unsigned char reg, unsigned int addr, short w_16bit)
 
unsigned int snd_gf1_read_addr (struct snd_gus_card *gus, unsigned char reg, short w_16bit)
 
void snd_gf1_i_ctrl_stop (struct snd_gus_card *gus, unsigned char reg)
 
void snd_gf1_i_write8 (struct snd_gus_card *gus, unsigned char reg, unsigned char data)
 
unsigned char snd_gf1_i_look8 (struct snd_gus_card *gus, unsigned char reg)
 
void snd_gf1_i_write16 (struct snd_gus_card *gus, unsigned char reg, unsigned int data)
 
unsigned short snd_gf1_i_look16 (struct snd_gus_card *gus, unsigned char reg)
 
void snd_gf1_select_active_voices (struct snd_gus_card *gus)
 
void snd_gf1_lfo_init (struct snd_gus_card *gus)
 
void snd_gf1_lfo_done (struct snd_gus_card *gus)
 
void snd_gf1_lfo_program (struct snd_gus_card *gus, int voice, int lfo_type, struct _SND_IW_LFO_PROGRAM *program)
 
void snd_gf1_lfo_enable (struct snd_gus_card *gus, int voice, int lfo_type)
 
void snd_gf1_lfo_disable (struct snd_gus_card *gus, int voice, int lfo_type)
 
void snd_gf1_lfo_change_freq (struct snd_gus_card *gus, int voice, int lfo_type, int freq)
 
void snd_gf1_lfo_change_depth (struct snd_gus_card *gus, int voice, int lfo_type, int depth)
 
void snd_gf1_lfo_setup (struct snd_gus_card *gus, int voice, int lfo_type, int freq, int current_depth, int depth, int sweep, int shape)
 
void snd_gf1_lfo_shutdown (struct snd_gus_card *gus, int voice, int lfo_type)
 
void snd_gf1_mem_lock (struct snd_gf1_mem *alloc, int xup)
 
int snd_gf1_mem_xfree (struct snd_gf1_mem *alloc, struct snd_gf1_mem_block *block)
 
struct snd_gf1_mem_blocksnd_gf1_mem_alloc (struct snd_gf1_mem *alloc, int owner, char *name, int size, int w_16, int align, unsigned int *share_id)
 
int snd_gf1_mem_free (struct snd_gf1_mem *alloc, unsigned int address)
 
int snd_gf1_mem_free_owner (struct snd_gf1_mem *alloc, int owner)
 
int snd_gf1_mem_init (struct snd_gus_card *gus)
 
int snd_gf1_mem_done (struct snd_gus_card *gus)
 
int snd_gf1_mem_proc_init (struct snd_gus_card *gus)
 
int snd_gf1_dma_init (struct snd_gus_card *gus)
 
int snd_gf1_dma_done (struct snd_gus_card *gus)
 
int snd_gf1_dma_transfer_block (struct snd_gus_card *gus, struct snd_gf1_dma_block *block, int atomic, int synth)
 
unsigned short snd_gf1_lvol_to_gvol_raw (unsigned int vol)
 
unsigned short snd_gf1_translate_freq (struct snd_gus_card *gus, unsigned int freq2)
 
void snd_gf1_set_default_handlers (struct snd_gus_card *gus, unsigned int what)
 
void snd_gf1_smart_stop_voice (struct snd_gus_card *gus, unsigned short voice)
 
void snd_gf1_stop_voice (struct snd_gus_card *gus, unsigned short voice)
 
void snd_gf1_stop_voices (struct snd_gus_card *gus, unsigned short v_min, unsigned short v_max)
 
struct snd_gus_voicesnd_gf1_alloc_voice (struct snd_gus_card *gus, int type, int client, int port)
 
void snd_gf1_free_voice (struct snd_gus_card *gus, struct snd_gus_voice *voice)
 
int snd_gf1_start (struct snd_gus_card *gus)
 
int snd_gf1_stop (struct snd_gus_card *gus)
 
int snd_gf1_new_mixer (struct snd_gus_card *gus)
 
int snd_gf1_pcm_new (struct snd_gus_card *gus, int pcm_dev, int control_index, struct snd_pcm **rpcm)
 
int snd_gus_use_inc (struct snd_gus_card *gus)
 
void snd_gus_use_dec (struct snd_gus_card *gus)
 
int snd_gus_create (struct snd_card *card, unsigned long port, int irq, int dma1, int dma2, int timer_dev, int voices, int pcm_channels, int effect, struct snd_gus_card **rgus)
 
int snd_gus_initialize (struct snd_gus_card *gus)
 
irqreturn_t snd_gus_interrupt (int irq, void *dev_id)
 
int snd_gf1_rawmidi_new (struct snd_gus_card *gus, int device, struct snd_rawmidi **rrawmidi)
 
int snd_gus_dram_write (struct snd_gus_card *gus, char __user *ptr, unsigned int addr, unsigned int size)
 
int snd_gus_dram_read (struct snd_gus_card *gus, char __user *ptr, unsigned int addr, unsigned int size, int rom)
 

Macro Definition Documentation

#define GUSP (   gus,
  x 
)    ((gus)->gf1.port + SNDRV_g_u_s_##x)

Definition at line 34 of file gus.h.

#define SNDRV_g_u_s_BOARDVERSION   (0x726-0x220)

Definition at line 51 of file gus.h.

#define SNDRV_g_u_s_DRAM   (0x327-0x220)

Definition at line 47 of file gus.h.

#define SNDRV_g_u_s_GF1DATAHIGH   (0x325-0x220)

Definition at line 43 of file gus.h.

#define SNDRV_g_u_s_GF1DATALOW   (0x324-0x220)

Definition at line 42 of file gus.h.

#define SNDRV_g_u_s_GF1PAGE   (0x322-0x220)

Definition at line 40 of file gus.h.

#define SNDRV_g_u_s_GF1REGSEL   (0x323-0x220)

Definition at line 41 of file gus.h.

#define SNDRV_g_u_s_IRQDMACNTRLREG   (0x22b-0x220)

Definition at line 49 of file gus.h.

#define SNDRV_g_u_s_IRQSTAT   (0x226-0x220)

Definition at line 44 of file gus.h.

#define SNDRV_g_u_s_IVER   (0x325-0x220)

Definition at line 53 of file gus.h.

#define SNDRV_g_u_s_MAXCNTRLPORT   (0x326-0x220)

Definition at line 55 of file gus.h.

#define SNDRV_g_u_s_MIDICTRL   (0x320-0x220)

Definition at line 36 of file gus.h.

#define SNDRV_g_u_s_MIDIDATA   (0x321-0x220)

Definition at line 38 of file gus.h.

#define SNDRV_g_u_s_MIDISTAT   (0x320-0x220)

Definition at line 37 of file gus.h.

#define SNDRV_g_u_s_MIXCNTRLPORT   (0x726-0x220)

Definition at line 52 of file gus.h.

#define SNDRV_g_u_s_MIXCNTRLREG   (0x220-0x220)

Definition at line 48 of file gus.h.

#define SNDRV_g_u_s_MIXDATAPORT   (0x326-0x220)

Definition at line 54 of file gus.h.

#define SNDRV_g_u_s_REGCNTRLS   (0x22f-0x220)

Definition at line 50 of file gus.h.

#define SNDRV_g_u_s_TIMERCNTRL   (0x228-0x220)

Definition at line 45 of file gus.h.

#define SNDRV_g_u_s_TIMERDATA   (0x229-0x220)

Definition at line 46 of file gus.h.

#define SNDRV_GF1_ATTEN (   x)    (snd_gf1_atten_table[x])

Definition at line 148 of file gus.h.

#define SNDRV_GF1_DMA_16BIT   0x40

Definition at line 140 of file gus.h.

#define SNDRV_GF1_DMA_ENABLE   0x01

Definition at line 144 of file gus.h.

#define SNDRV_GF1_DMA_IRQ   0x20

Definition at line 141 of file gus.h.

#define SNDRV_GF1_DMA_READ   0x02 /* read from GUS's DRAM */

Definition at line 143 of file gus.h.

#define SNDRV_GF1_DMA_TRIGGER   1

Definition at line 177 of file gus.h.

#define SNDRV_GF1_DMA_UNSIGNED   0x80

Definition at line 139 of file gus.h.

#define SNDRV_GF1_DMA_WIDTH16   0x04

Definition at line 142 of file gus.h.

#define SNDRV_GF1_GB_ACTIVE_VOICES   0x0e

Definition at line 60 of file gus.h.

#define SNDRV_GF1_GB_ADLIB_TIMER_1   0x46

Definition at line 70 of file gus.h.

#define SNDRV_GF1_GB_ADLIB_TIMER_2   0x47

Definition at line 71 of file gus.h.

#define SNDRV_GF1_GB_COMPATIBILITY   0x59

Definition at line 84 of file gus.h.

#define SNDRV_GF1_GB_DECODE_CONTROL   0x5a

Definition at line 85 of file gus.h.

#define SNDRV_GF1_GB_DRAM_DMA_CONTROL   0x41

Definition at line 65 of file gus.h.

#define SNDRV_GF1_GB_DRAM_DMA_HIGH   0x50

Definition at line 76 of file gus.h.

#define SNDRV_GF1_GB_DRAM_IO_HIGH   0x44

Definition at line 68 of file gus.h.

#define SNDRV_GF1_GB_EMULATION_IRQ   0x60

Definition at line 89 of file gus.h.

#define SNDRV_GF1_GB_GLOBAL_MODE   0x19

Definition at line 62 of file gus.h.

#define SNDRV_GF1_GB_JOYSTICK_DAC_LEVEL   0x4b

Definition at line 74 of file gus.h.

#define SNDRV_GF1_GB_MEMORY_CONTROL   0x53

Definition at line 79 of file gus.h.

#define SNDRV_GF1_GB_MPU401_CONTROL_A   0x5c

Definition at line 87 of file gus.h.

#define SNDRV_GF1_GB_MPU401_CONTROL_B   0x5d

Definition at line 88 of file gus.h.

#define SNDRV_GF1_GB_REC_DMA_CONTROL   0x49

Definition at line 73 of file gus.h.

#define SNDRV_GF1_GB_RECORD_RATE   0x48

Definition at line 72 of file gus.h.

#define SNDRV_GF1_GB_RESET   0x4c

Definition at line 75 of file gus.h.

#define SNDRV_GF1_GB_SOUND_BLASTER_CONTROL   0x45

Definition at line 69 of file gus.h.

#define SNDRV_GF1_GB_VERSION_NUMBER   0x5b

Definition at line 86 of file gus.h.

#define SNDRV_GF1_GB_VOICES_IRQ   0x0f

Definition at line 61 of file gus.h.

#define SNDRV_GF1_GB_VOICES_IRQ_READ   0x1f

Definition at line 64 of file gus.h.

#define SNDRV_GF1_GW_DRAM_DMA_LOW   0x42

Definition at line 66 of file gus.h.

#define SNDRV_GF1_GW_DRAM_IO16   0x51

Definition at line 77 of file gus.h.

#define SNDRV_GF1_GW_DRAM_IO_LOW   0x43

Definition at line 67 of file gus.h.

#define SNDRV_GF1_GW_FIFO_PLAY_BASE_ADDR   0x55

Definition at line 81 of file gus.h.

#define SNDRV_GF1_GW_FIFO_RECORD_BASE_ADDR   0x54

Definition at line 80 of file gus.h.

#define SNDRV_GF1_GW_FIFO_SIZE   0x56

Definition at line 82 of file gus.h.

#define SNDRV_GF1_GW_INTERLEAVE   0x57

Definition at line 83 of file gus.h.

#define SNDRV_GF1_GW_LFO_BASE   0x1a

Definition at line 63 of file gus.h.

#define SNDRV_GF1_GW_MEMORY_CONFIG   0x52

Definition at line 78 of file gus.h.

#define SNDRV_GF1_HANDLER_ALL   (0xffff0000&~SNDRV_GF1_HANDLER_VOICE)

Definition at line 173 of file gus.h.

#define SNDRV_GF1_HANDLER_DMA_READ   0x00400000

Definition at line 172 of file gus.h.

#define SNDRV_GF1_HANDLER_DMA_WRITE   0x00200000

Definition at line 171 of file gus.h.

#define SNDRV_GF1_HANDLER_MIDI_IN   0x00020000

Definition at line 167 of file gus.h.

#define SNDRV_GF1_HANDLER_MIDI_OUT   0x00010000

Definition at line 166 of file gus.h.

#define SNDRV_GF1_HANDLER_TIMER1   0x00040000

Definition at line 168 of file gus.h.

#define SNDRV_GF1_HANDLER_TIMER2   0x00080000

Definition at line 169 of file gus.h.

#define SNDRV_GF1_HANDLER_VOICE   0x00100000

Definition at line 170 of file gus.h.

#define SNDRV_GF1_MAX_OFFSET   255

Definition at line 152 of file gus.h.

#define SNDRV_GF1_MAX_TDEPTH   90

Definition at line 153 of file gus.h.

#define SNDRV_GF1_MAX_VOLUME   4095

Definition at line 150 of file gus.h.

#define SNDRV_GF1_MEM_BLOCK_16BIT   0x0001

Definition at line 157 of file gus.h.

#define SNDRV_GF1_MEM_OWNER_DRIVER   0x0001

Definition at line 159 of file gus.h.

#define SNDRV_GF1_MEM_OWNER_WAVE_GF1   0x0003

Definition at line 161 of file gus.h.

#define SNDRV_GF1_MEM_OWNER_WAVE_IWFFFF   0x0004

Definition at line 162 of file gus.h.

#define SNDRV_GF1_MEM_OWNER_WAVE_SIMPLE   0x0002

Definition at line 160 of file gus.h.

#define SNDRV_GF1_MIN_OFFSET   (SNDRV_GF1_MIN_VOLUME>>4)

Definition at line 151 of file gus.h.

#define SNDRV_GF1_MIN_VOLUME   1800

Definition at line 149 of file gus.h.

#define SNDRV_GF1_VA_CURRENT   SNDRV_GF1_VW_CURRENT_HIGH

Definition at line 105 of file gus.h.

#define SNDRV_GF1_VA_EFFECT   SNDRV_GF1_VW_EFFECT_HIGH

Definition at line 112 of file gus.h.

#define SNDRV_GF1_VA_END   SNDRV_GF1_VW_END_HIGH

Definition at line 98 of file gus.h.

#define SNDRV_GF1_VA_START   SNDRV_GF1_VW_START_HIGH

Definition at line 95 of file gus.h.

#define SNDRV_GF1_VB_ACCUMULATOR   0x14

Definition at line 114 of file gus.h.

#define SNDRV_GF1_VB_ADDRESS_CONTROL   0x00

Definition at line 91 of file gus.h.

#define SNDRV_GF1_VB_FREQUENCY_LFO   0x17

Definition at line 117 of file gus.h.

#define SNDRV_GF1_VB_MODE   0x15

Definition at line 115 of file gus.h.

#define SNDRV_GF1_VB_PAN   0x0c

Definition at line 106 of file gus.h.

#define SNDRV_GF1_VB_UPPER_ADDRESS   0x10

Definition at line 109 of file gus.h.

#define SNDRV_GF1_VB_VOLUME_CONTROL   0x0d

Definition at line 108 of file gus.h.

#define SNDRV_GF1_VB_VOLUME_END   0x08

Definition at line 101 of file gus.h.

#define SNDRV_GF1_VB_VOLUME_LFO   0x18

Definition at line 118 of file gus.h.

#define SNDRV_GF1_VB_VOLUME_RATE   0x06

Definition at line 99 of file gus.h.

#define SNDRV_GF1_VB_VOLUME_START   0x07

Definition at line 100 of file gus.h.

#define SNDRV_GF1_VFLG_EFFECT_TIMER1   (1<<1)

Definition at line 237 of file gus.h.

#define SNDRV_GF1_VFLG_PAN   (1<<2)

Definition at line 238 of file gus.h.

#define SNDRV_GF1_VFLG_RUNNING   (1<<0)

Definition at line 236 of file gus.h.

#define SNDRV_GF1_VOICE_TYPE_MIDI   2

Definition at line 234 of file gus.h.

#define SNDRV_GF1_VOICE_TYPE_PCM   0

Definition at line 232 of file gus.h.

#define SNDRV_GF1_VOICE_TYPE_SYNTH   1

Definition at line 233 of file gus.h.

#define SNDRV_GF1_VW_CURRENT_HIGH   0x0a

Definition at line 103 of file gus.h.

#define SNDRV_GF1_VW_CURRENT_LOW   0x0b

Definition at line 104 of file gus.h.

#define SNDRV_GF1_VW_EFFECT_HIGH   0x11

Definition at line 110 of file gus.h.

#define SNDRV_GF1_VW_EFFECT_LOW   0x12

Definition at line 111 of file gus.h.

#define SNDRV_GF1_VW_EFFECT_VOLUME   0x16

Definition at line 116 of file gus.h.

#define SNDRV_GF1_VW_EFFECT_VOLUME_FINAL   0x1d

Definition at line 121 of file gus.h.

#define SNDRV_GF1_VW_END_HIGH   0x04

Definition at line 96 of file gus.h.

#define SNDRV_GF1_VW_END_LOW   0x05

Definition at line 97 of file gus.h.

#define SNDRV_GF1_VW_FREQUENCY   0x01

Definition at line 92 of file gus.h.

#define SNDRV_GF1_VW_OFFSET_LEFT   0x13

Definition at line 113 of file gus.h.

#define SNDRV_GF1_VW_OFFSET_LEFT_FINAL   0x1c

Definition at line 120 of file gus.h.

#define SNDRV_GF1_VW_OFFSET_RIGHT   0x0c

Definition at line 107 of file gus.h.

#define SNDRV_GF1_VW_OFFSET_RIGHT_FINAL   0x1b

Definition at line 119 of file gus.h.

#define SNDRV_GF1_VW_START_HIGH   0x02

Definition at line 93 of file gus.h.

#define SNDRV_GF1_VW_START_LOW   0x03

Definition at line 94 of file gus.h.

#define SNDRV_GF1_VW_VOLUME   0x09

Definition at line 102 of file gus.h.

#define SNDRV_ICS_CD_DEV   2

Definition at line 127 of file gus.h.

#define SNDRV_ICS_GF1_DEV   3

Definition at line 128 of file gus.h.

#define SNDRV_ICS_LINE_DEV   1

Definition at line 126 of file gus.h.

#define SNDRV_ICS_MASTER_DEV   5

Definition at line 130 of file gus.h.

#define SNDRV_ICS_MIC_DEV   0

Definition at line 125 of file gus.h.

#define SNDRV_ICS_NONE_DEV   4

Definition at line 129 of file gus.h.

#define SNDRV_LFO_TREMOLO   0

Definition at line 134 of file gus.h.

#define SNDRV_LFO_VIBRATO   1

Definition at line 135 of file gus.h.

Enumeration Type Documentation

Enumerator:
VENV_BEFORE 
VENV_ATTACK 
VENV_SUSTAIN 
VENV_RELEASE 
VENV_DONE 
VENV_VOLUME 

Definition at line 240 of file gus.h.

Function Documentation

void snd_gf1_adlib_write ( struct snd_gus_card gus,
unsigned char  reg,
unsigned char  data 
)

Definition at line 169 of file gus_io.c.

struct snd_gus_voice* snd_gf1_alloc_voice ( struct snd_gus_card gus,
int  type,
int  client,
int  port 
)
read

Definition at line 257 of file gus_reset.c.

void snd_gf1_ctrl_stop ( struct snd_gus_card gus,
unsigned char  reg 
)

Definition at line 140 of file gus_io.c.

void snd_gf1_delay ( struct snd_gus_card gus)

Definition at line 27 of file gus_io.c.

int snd_gf1_dma_done ( struct snd_gus_card gus)

Definition at line 170 of file gus_dma.c.

int snd_gf1_dma_init ( struct snd_gus_card gus)

Definition at line 153 of file gus_dma.c.

int snd_gf1_dma_transfer_block ( struct snd_gus_card gus,
struct snd_gf1_dma_block block,
int  atomic,
int  synth 
)

Definition at line 195 of file gus_dma.c.

void snd_gf1_dram_addr ( struct snd_gus_card gus,
unsigned int  addr 
)

Definition at line 289 of file gus_io.c.

void snd_gf1_free_voice ( struct snd_gus_card gus,
struct snd_gus_voice voice 
)

Definition at line 291 of file gus_reset.c.

void snd_gf1_i_ctrl_stop ( struct snd_gus_card gus,
unsigned char  reg 
)

Definition at line 193 of file gus_io.c.

unsigned short snd_gf1_i_look16 ( struct snd_gus_card gus,
unsigned char  reg 
)

Definition at line 235 of file gus_io.c.

unsigned char snd_gf1_i_look8 ( struct snd_gus_card gus,
unsigned char  reg 
)

Definition at line 213 of file gus_io.c.

void snd_gf1_i_write16 ( struct snd_gus_card gus,
unsigned char  reg,
unsigned int  data 
)

Definition at line 224 of file gus_io.c.

void snd_gf1_i_write8 ( struct snd_gus_card gus,
unsigned char  reg,
unsigned char  data 
)

Definition at line 202 of file gus_io.c.

void snd_gf1_lfo_change_depth ( struct snd_gus_card gus,
int  voice,
int  lfo_type,
int  depth 
)
void snd_gf1_lfo_change_freq ( struct snd_gus_card gus,
int  voice,
int  lfo_type,
int  freq 
)
void snd_gf1_lfo_disable ( struct snd_gus_card gus,
int  voice,
int  lfo_type 
)
void snd_gf1_lfo_done ( struct snd_gus_card gus)
void snd_gf1_lfo_enable ( struct snd_gus_card gus,
int  voice,
int  lfo_type 
)
void snd_gf1_lfo_init ( struct snd_gus_card gus)
void snd_gf1_lfo_program ( struct snd_gus_card gus,
int  voice,
int  lfo_type,
struct _SND_IW_LFO_PROGRAM program 
)
void snd_gf1_lfo_setup ( struct snd_gus_card gus,
int  voice,
int  lfo_type,
int  freq,
int  current_depth,
int  depth,
int  sweep,
int  shape 
)
void snd_gf1_lfo_shutdown ( struct snd_gus_card gus,
int  voice,
int  lfo_type 
)
unsigned short snd_gf1_look16 ( struct snd_gus_card gus,
unsigned char  reg 
)

Definition at line 164 of file gus_io.c.

unsigned char snd_gf1_look8 ( struct snd_gus_card gus,
unsigned char  reg 
)

Definition at line 152 of file gus_io.c.

unsigned short snd_gf1_lvol_to_gvol_raw ( unsigned int  vol)

Definition at line 30 of file gus_volume.c.

struct snd_gf1_mem_block* snd_gf1_mem_alloc ( struct snd_gf1_mem alloc,
int  owner,
char name,
int  size,
int  w_16,
int  align,
unsigned int share_id 
)
read

Definition at line 188 of file gus_mem.c.

int snd_gf1_mem_done ( struct snd_gus_card gus)

Definition at line 272 of file gus_mem.c.

int snd_gf1_mem_free ( struct snd_gf1_mem alloc,
unsigned int  address 
)

Definition at line 222 of file gus_mem.c.

int snd_gf1_mem_free_owner ( struct snd_gf1_mem alloc,
int  owner 
)
int snd_gf1_mem_init ( struct snd_gus_card gus)

Definition at line 237 of file gus_mem.c.

void snd_gf1_mem_lock ( struct snd_gf1_mem alloc,
int  xup 
)

Definition at line 33 of file gus_mem.c.

int snd_gf1_mem_proc_init ( struct snd_gus_card gus)

Definition at line 59 of file gus_mem_proc.c.

int snd_gf1_mem_xfree ( struct snd_gf1_mem alloc,
struct snd_gf1_mem_block block 
)

Definition at line 78 of file gus_mem.c.

int snd_gf1_new_mixer ( struct snd_gus_card gus)

Definition at line 158 of file gus_mixer.c.

int snd_gf1_pcm_new ( struct snd_gus_card gus,
int  pcm_dev,
int  control_index,
struct snd_pcm **  rpcm 
)

Definition at line 852 of file gus_pcm.c.

unsigned char snd_gf1_peek ( struct snd_gus_card gus,
unsigned int  addr 
)

Definition at line 318 of file gus_io.c.

void snd_gf1_poke ( struct snd_gus_card gus,
unsigned int  addr,
unsigned char  data 
)

Definition at line 301 of file gus_io.c.

int snd_gf1_rawmidi_new ( struct snd_gus_card gus,
int  device,
struct snd_rawmidi **  rrawmidi 
)

Definition at line 244 of file gus_uart.c.

unsigned int snd_gf1_read_addr ( struct snd_gus_card gus,
unsigned char  reg,
short  w_16bit 
)

Definition at line 182 of file gus_io.c.

void snd_gf1_select_active_voices ( struct snd_gus_card gus)

Definition at line 417 of file gus_io.c.

void snd_gf1_set_default_handlers ( struct snd_gus_card gus,
unsigned int  what 
)

Definition at line 72 of file gus_reset.c.

void snd_gf1_smart_stop_voice ( struct snd_gus_card gus,
unsigned short  voice 
)

Definition at line 129 of file gus_reset.c.

int snd_gf1_start ( struct snd_gus_card gus)

Definition at line 319 of file gus_reset.c.

int snd_gf1_stop ( struct snd_gus_card gus)

Definition at line 402 of file gus_reset.c.

void snd_gf1_stop_voice ( struct snd_gus_card gus,
unsigned short  voice 
)

Definition at line 143 of file gus_reset.c.

void snd_gf1_stop_voices ( struct snd_gus_card gus,
unsigned short  v_min,
unsigned short  v_max 
)

Definition at line 205 of file gus_reset.c.

unsigned short snd_gf1_translate_freq ( struct snd_gus_card gus,
unsigned int  freq2 
)

Definition at line 115 of file gus_volume.c.

void snd_gf1_write16 ( struct snd_gus_card gus,
unsigned char  reg,
unsigned int  data 
)

Definition at line 157 of file gus_io.c.

void snd_gf1_write8 ( struct snd_gus_card gus,
unsigned char  reg,
unsigned char  data 
)

Definition at line 145 of file gus_io.c.

void snd_gf1_write_addr ( struct snd_gus_card gus,
unsigned char  reg,
unsigned int  addr,
short  w_16bit 
)

Definition at line 176 of file gus_io.c.

int snd_gus_create ( struct snd_card card,
unsigned long  port,
int  irq,
int  dma1,
int  dma2,
int  timer_dev,
int  voices,
int  pcm_channels,
int  effect,
struct snd_gus_card **  rgus 
)

Definition at line 132 of file gus_main.c.

int snd_gus_dram_read ( struct snd_gus_card gus,
char __user ptr,
unsigned int  addr,
unsigned int  size,
int  rom 
)

Definition at line 97 of file gus_dram.c.

int snd_gus_dram_write ( struct snd_gus_card gus,
char __user ptr,
unsigned int  addr,
unsigned int  size 
)

Definition at line 59 of file gus_dram.c.

int snd_gus_initialize ( struct snd_gus_card gus)

Definition at line 407 of file gus_main.c.

irqreturn_t snd_gus_interrupt ( int  irq,
void dev_id 
)

Definition at line 32 of file gus_irq.c.

void snd_gus_use_dec ( struct snd_gus_card gus)

Definition at line 47 of file gus_main.c.

int snd_gus_use_inc ( struct snd_gus_card gus)

Definition at line 40 of file gus_main.c.