snd_wavefront.h (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) | snd_wavefront.h (542172f31d41e689988aedcf0d6e67dfe757736a) |
---|---|
1#ifndef __SOUND_SND_WAVEFRONT_H__ 2#define __SOUND_SND_WAVEFRONT_H__ 3 4#include "cs4231.h" 5#include "mpu401.h" 6#include "hwdep.h" 7#include "rawmidi.h" 8#include "wavefront.h" /* generic OSS/ALSA/user-level wavefront header */ --- 12 unchanged lines hidden (view full) --- 21 22struct _snd_wavefront_midi { 23 unsigned long base; /* I/O port address */ 24 char isvirtual; /* doing virtual MIDI stuff ? */ 25 char istimer; /* timer is used */ 26 snd_wavefront_mpu_id output_mpu; /* most-recently-used */ 27 snd_wavefront_mpu_id input_mpu; /* most-recently-used */ 28 unsigned int mode[2]; /* MPU401_MODE_XXX */ | 1#ifndef __SOUND_SND_WAVEFRONT_H__ 2#define __SOUND_SND_WAVEFRONT_H__ 3 4#include "cs4231.h" 5#include "mpu401.h" 6#include "hwdep.h" 7#include "rawmidi.h" 8#include "wavefront.h" /* generic OSS/ALSA/user-level wavefront header */ --- 12 unchanged lines hidden (view full) --- 21 22struct _snd_wavefront_midi { 23 unsigned long base; /* I/O port address */ 24 char isvirtual; /* doing virtual MIDI stuff ? */ 25 char istimer; /* timer is used */ 26 snd_wavefront_mpu_id output_mpu; /* most-recently-used */ 27 snd_wavefront_mpu_id input_mpu; /* most-recently-used */ 28 unsigned int mode[2]; /* MPU401_MODE_XXX */ |
29 snd_rawmidi_substream_t *substream_output[2]; 30 snd_rawmidi_substream_t *substream_input[2]; | 29 struct snd_rawmidi_substream *substream_output[2]; 30 struct snd_rawmidi_substream *substream_input[2]; |
31 struct timer_list timer; 32 spinlock_t open; 33 spinlock_t virtual; /* protects isvirtual */ 34}; 35 36#define OUTPUT_READY 0x40 37#define INPUT_AVAIL 0x80 38#define MPU_ACK 0xFE 39#define UART_MODE_ON 0x3F 40 | 31 struct timer_list timer; 32 spinlock_t open; 33 spinlock_t virtual; /* protects isvirtual */ 34}; 35 36#define OUTPUT_READY 0x40 37#define INPUT_AVAIL 0x80 38#define MPU_ACK 0xFE 39#define UART_MODE_ON 0x3F 40 |
41extern snd_rawmidi_ops_t snd_wavefront_midi_output; 42extern snd_rawmidi_ops_t snd_wavefront_midi_input; | 41extern struct snd_rawmidi_ops snd_wavefront_midi_output; 42extern struct snd_rawmidi_ops snd_wavefront_midi_input; |
43 44extern void snd_wavefront_midi_enable_virtual (snd_wavefront_card_t *); 45extern void snd_wavefront_midi_disable_virtual (snd_wavefront_card_t *); 46extern void snd_wavefront_midi_interrupt (snd_wavefront_card_t *); 47extern int snd_wavefront_midi_start (snd_wavefront_card_t *); 48 49struct _snd_wavefront { 50 unsigned long irq; /* "you were one, one of the few ..." */ --- 60 unchanged lines hidden (view full) --- 111extern int snd_wavefront_check_irq (snd_wavefront_t *dev, int irq); 112extern int snd_wavefront_restart (snd_wavefront_t *dev); 113extern int snd_wavefront_start (snd_wavefront_t *dev); 114extern int snd_wavefront_detect (snd_wavefront_card_t *card); 115extern int snd_wavefront_config_midi (snd_wavefront_t *dev) ; 116extern int snd_wavefront_cmd (snd_wavefront_t *, int, unsigned char *, 117 unsigned char *); 118 | 43 44extern void snd_wavefront_midi_enable_virtual (snd_wavefront_card_t *); 45extern void snd_wavefront_midi_disable_virtual (snd_wavefront_card_t *); 46extern void snd_wavefront_midi_interrupt (snd_wavefront_card_t *); 47extern int snd_wavefront_midi_start (snd_wavefront_card_t *); 48 49struct _snd_wavefront { 50 unsigned long irq; /* "you were one, one of the few ..." */ --- 60 unchanged lines hidden (view full) --- 111extern int snd_wavefront_check_irq (snd_wavefront_t *dev, int irq); 112extern int snd_wavefront_restart (snd_wavefront_t *dev); 113extern int snd_wavefront_start (snd_wavefront_t *dev); 114extern int snd_wavefront_detect (snd_wavefront_card_t *card); 115extern int snd_wavefront_config_midi (snd_wavefront_t *dev) ; 116extern int snd_wavefront_cmd (snd_wavefront_t *, int, unsigned char *, 117 unsigned char *); 118 |
119extern int snd_wavefront_synth_ioctl (snd_hwdep_t *, | 119extern int snd_wavefront_synth_ioctl (struct snd_hwdep *, |
120 struct file *, 121 unsigned int cmd, 122 unsigned long arg); | 120 struct file *, 121 unsigned int cmd, 122 unsigned long arg); |
123extern int snd_wavefront_synth_open (snd_hwdep_t *, struct file *); 124extern int snd_wavefront_synth_release (snd_hwdep_t *, struct file *); | 123extern int snd_wavefront_synth_open (struct snd_hwdep *, struct file *); 124extern int snd_wavefront_synth_release (struct snd_hwdep *, struct file *); |
125 126/* FX processor - see also yss225.[ch] */ 127 128extern int snd_wavefront_fx_start (snd_wavefront_t *); 129extern int snd_wavefront_fx_detect (snd_wavefront_t *); | 125 126/* FX processor - see also yss225.[ch] */ 127 128extern int snd_wavefront_fx_start (snd_wavefront_t *); 129extern int snd_wavefront_fx_detect (snd_wavefront_t *); |
130extern int snd_wavefront_fx_ioctl (snd_hwdep_t *, | 130extern int snd_wavefront_fx_ioctl (struct snd_hwdep *, |
131 struct file *, 132 unsigned int cmd, 133 unsigned long arg); | 131 struct file *, 132 unsigned int cmd, 133 unsigned long arg); |
134extern int snd_wavefront_fx_open (snd_hwdep_t *, struct file *); 135extern int snd_wavefront_fx_release (snd_hwdep_t *, struct file *); | 134extern int snd_wavefront_fx_open (struct snd_hwdep *, struct file *); 135extern int snd_wavefront_fx_release (struct snd_hwdep *, struct file *); |
136 137/* prefix in all snd_printk() delivered messages */ 138 139#define LOGNAME "WaveFront: " 140 141#endif /* __SOUND_SND_WAVEFRONT_H__ */ | 136 137/* prefix in all snd_printk() delivered messages */ 138 139#define LOGNAME "WaveFront: " 140 141#endif /* __SOUND_SND_WAVEFRONT_H__ */ |