Lines Matching refs:gus

19 #define GUSP(gus, x)			((gus)->gf1.port + SNDRV_g_u_s_##x)  argument
201 void (*ack)(struct snd_gus_card * gus, void *private_data);
208 struct snd_gus_card * gus; member
250 void (*handler_wave) (struct snd_gus_card * gus, struct snd_gus_voice * voice);
251 void (*handler_volume) (struct snd_gus_card * gus, struct snd_gus_voice * voice);
252 void (*handler_effect) (struct snd_gus_card * gus, struct snd_gus_voice * voice);
253 void (*volume_change) (struct snd_gus_card * gus);
330 void (*interrupt_handler_midi_out) (struct snd_gus_card * gus);
331 void (*interrupt_handler_midi_in) (struct snd_gus_card * gus);
332 void (*interrupt_handler_timer1) (struct snd_gus_card * gus);
333 void (*interrupt_handler_timer2) (struct snd_gus_card * gus);
334 void (*interrupt_handler_dma_write) (struct snd_gus_card * gus);
335 void (*interrupt_handler_dma_read) (struct snd_gus_card * gus);
372 void (*dma_ack)(struct snd_gus_card * gus, void *private_data);
436 static inline void snd_gf1_select_voice(struct snd_gus_card * gus, int voice) in snd_gf1_select_voice() argument
440 spin_lock_irqsave(&gus->active_voice_lock, flags); in snd_gf1_select_voice()
441 if (voice != gus->gf1.active_voice) { in snd_gf1_select_voice()
442 gus->gf1.active_voice = voice; in snd_gf1_select_voice()
443 outb(voice, GUSP(gus, GF1PAGE)); in snd_gf1_select_voice()
445 spin_unlock_irqrestore(&gus->active_voice_lock, flags); in snd_gf1_select_voice()
448 static inline void snd_gf1_uart_cmd(struct snd_gus_card * gus, unsigned char b) in snd_gf1_uart_cmd() argument
450 outb(gus->gf1.uart_cmd = b, GUSP(gus, MIDICTRL)); in snd_gf1_uart_cmd()
453 static inline unsigned char snd_gf1_uart_stat(struct snd_gus_card * gus) in snd_gf1_uart_stat() argument
455 return inb(GUSP(gus, MIDISTAT)); in snd_gf1_uart_stat()
458 static inline void snd_gf1_uart_put(struct snd_gus_card * gus, unsigned char b) in snd_gf1_uart_put() argument
460 outb(b, GUSP(gus, MIDIDATA)); in snd_gf1_uart_put()
463 static inline unsigned char snd_gf1_uart_get(struct snd_gus_card * gus) in snd_gf1_uart_get() argument
465 return inb(GUSP(gus, MIDIDATA)); in snd_gf1_uart_get()
468 extern void snd_gf1_delay(struct snd_gus_card * gus);
470 extern void snd_gf1_ctrl_stop(struct snd_gus_card * gus, unsigned char reg);
472 extern void snd_gf1_write8(struct snd_gus_card * gus, unsigned char reg, unsigned char data);
473 extern unsigned char snd_gf1_look8(struct snd_gus_card * gus, unsigned char reg);
474 static inline unsigned char snd_gf1_read8(struct snd_gus_card * gus, unsigned char reg) in snd_gf1_read8() argument
476 return snd_gf1_look8(gus, reg | 0x80); in snd_gf1_read8()
478 extern void snd_gf1_write16(struct snd_gus_card * gus, unsigned char reg, unsigned int data);
479 extern unsigned short snd_gf1_look16(struct snd_gus_card * gus, unsigned char reg);
480 static inline unsigned short snd_gf1_read16(struct snd_gus_card * gus, unsigned char reg) in snd_gf1_read16() argument
482 return snd_gf1_look16(gus, reg | 0x80); in snd_gf1_read16()
484 extern void snd_gf1_adlib_write(struct snd_gus_card * gus, unsigned char reg, unsigned char data);
485 extern void snd_gf1_dram_addr(struct snd_gus_card * gus, unsigned int addr);
486 extern void snd_gf1_poke(struct snd_gus_card * gus, unsigned int addr, unsigned char data);
487 extern unsigned char snd_gf1_peek(struct snd_gus_card * gus, unsigned int addr);
488 extern void snd_gf1_write_addr(struct snd_gus_card * gus, unsigned char reg, unsigned int addr, sho…
489 extern unsigned int snd_gf1_read_addr(struct snd_gus_card * gus, unsigned char reg, short w_16bit);
490 extern void snd_gf1_i_ctrl_stop(struct snd_gus_card * gus, unsigned char reg);
491 extern void snd_gf1_i_write8(struct snd_gus_card * gus, unsigned char reg, unsigned char data);
492 extern unsigned char snd_gf1_i_look8(struct snd_gus_card * gus, unsigned char reg);
493 extern void snd_gf1_i_write16(struct snd_gus_card * gus, unsigned char reg, unsigned int data);
494 static inline unsigned char snd_gf1_i_read8(struct snd_gus_card * gus, unsigned char reg) in snd_gf1_i_read8() argument
496 return snd_gf1_i_look8(gus, reg | 0x80); in snd_gf1_i_read8()
498 extern unsigned short snd_gf1_i_look16(struct snd_gus_card * gus, unsigned char reg);
499 static inline unsigned short snd_gf1_i_read16(struct snd_gus_card * gus, unsigned char reg) in snd_gf1_i_read16() argument
501 return snd_gf1_i_look16(gus, reg | 0x80); in snd_gf1_i_read16()
504 extern void snd_gf1_select_active_voices(struct snd_gus_card * gus);
517 extern irqreturn_t snd_gf1_lfo_effect_interrupt(struct snd_gus_card * gus, snd_gf1_voice_t * voice);
519 extern void snd_gf1_lfo_init(struct snd_gus_card * gus);
520 extern void snd_gf1_lfo_done(struct snd_gus_card * gus);
521 extern void snd_gf1_lfo_program(struct snd_gus_card * gus, int voice, int lfo_type, struct _SND_IW_…
522 extern void snd_gf1_lfo_enable(struct snd_gus_card * gus, int voice, int lfo_type);
523 extern void snd_gf1_lfo_disable(struct snd_gus_card * gus, int voice, int lfo_type);
524 extern void snd_gf1_lfo_change_freq(struct snd_gus_card * gus, int voice, int lfo_type, int freq);
525 extern void snd_gf1_lfo_change_depth(struct snd_gus_card * gus, int voice, int lfo_type, int depth);
526 extern void snd_gf1_lfo_setup(struct snd_gus_card * gus, int voice, int lfo_type, int freq, int cur…
527 extern void snd_gf1_lfo_shutdown(struct snd_gus_card * gus, int voice, int lfo_type);
529 extern void snd_gf1_lfo_command(struct snd_gus_card * gus, int voice, unsigned char *command);
541 int snd_gf1_mem_init(struct snd_gus_card * gus);
542 int snd_gf1_mem_done(struct snd_gus_card * gus);
546 int snd_gf1_mem_proc_init(struct snd_gus_card * gus);
550 int snd_gf1_dma_init(struct snd_gus_card * gus);
551 int snd_gf1_dma_done(struct snd_gus_card * gus);
552 int snd_gf1_dma_transfer_block(struct snd_gus_card * gus,
560 unsigned short snd_gf1_translate_freq(struct snd_gus_card * gus, unsigned int freq2);
564 void snd_gf1_set_default_handlers(struct snd_gus_card * gus, unsigned int what);
565 void snd_gf1_smart_stop_voice(struct snd_gus_card * gus, unsigned short voice);
566 void snd_gf1_stop_voice(struct snd_gus_card * gus, unsigned short voice);
567 void snd_gf1_stop_voices(struct snd_gus_card * gus, unsigned short v_min, unsigned short v_max);
568 struct snd_gus_voice *snd_gf1_alloc_voice(struct snd_gus_card * gus, int type, int client, int port…
569 void snd_gf1_free_voice(struct snd_gus_card * gus, struct snd_gus_voice *voice);
570 int snd_gf1_start(struct snd_gus_card * gus);
571 int snd_gf1_stop(struct snd_gus_card * gus);
575 int snd_gf1_new_mixer(struct snd_gus_card * gus);
579 int snd_gf1_pcm_new(struct snd_gus_card *gus, int pcm_dev, int control_index);
582 extern void snd_gf1_print_voice_registers(struct snd_gus_card * gus);
587 int snd_gus_use_inc(struct snd_gus_card * gus);
588 void snd_gus_use_dec(struct snd_gus_card * gus);
597 int snd_gus_initialize(struct snd_gus_card * gus);
603 void snd_gus_irq_profile_init(struct snd_gus_card *gus);
608 int snd_gf1_rawmidi_new(struct snd_gus_card *gus, int device);
611 int snd_gus_dram_write(struct snd_gus_card *gus, char __user *ptr,
613 int snd_gus_dram_read(struct snd_gus_card *gus, char __user *ptr,
617 void snd_gf1_timers_init(struct snd_gus_card *gus);
618 void snd_gf1_timers_done(struct snd_gus_card *gus);