root/drivers/sound/sound_calls.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  *      DMA buffer calls
   3  */
   4 
   5 int DMAbuf_open(int dev, int mode);
   6 int DMAbuf_release(int dev, int mode);
   7 int DMAbuf_getwrbuffer(int dev, char **buf, int *size, int dontblock);
   8 int DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock);
   9 int DMAbuf_rmchars(int dev, int buff_no, int c);
  10 int DMAbuf_start_output(int dev, int buff_no, int l);
  11 int DMAbuf_ioctl(int dev, unsigned int cmd, unsigned int arg, int local);
  12 long DMAbuf_init(long mem_start);
  13 int DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode);
  14 int DMAbuf_open_dma (int dev);
  15 void DMAbuf_close_dma (int dev);
  16 void DMAbuf_reset_dma (int dev);
  17 void DMAbuf_inputintr(int dev);
  18 void DMAbuf_outputintr(int dev, int underflow_flag);
  19 #ifdef ALLOW_SELECT
  20 int DMAbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
  21 #endif
  22 
  23 /*
  24  *      System calls for /dev/dsp and /dev/audio
  25  */
  26 
  27 int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
  28 int audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
  29 int audio_open (int dev, struct fileinfo *file);
  30 void audio_release (int dev, struct fileinfo *file);
  31 int audio_ioctl (int dev, struct fileinfo *file,
  32            unsigned int cmd, unsigned int arg);
  33 int audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
  34 long audio_init (long mem_start);
  35 
  36 #ifdef ALLOW_SELECT
  37 int audio_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
  38 #endif
  39 
  40 /*
  41  *      System calls for the /dev/sequencer
  42  */
  43 
  44 int sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
  45 int sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
  46 int sequencer_open (int dev, struct fileinfo *file);
  47 void sequencer_release (int dev, struct fileinfo *file);
  48 int sequencer_ioctl (int dev, struct fileinfo *file,
  49            unsigned int cmd, unsigned int arg);
  50 int sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
  51 long sequencer_init (long mem_start);
  52 void sequencer_timer(void);
  53 int note_to_freq(int note_num);
  54 unsigned long compute_finetune(unsigned long base_freq, int bend, int range);
  55 void seq_input_event(unsigned char *event, int len);
  56 void seq_copy_to_input (unsigned char *event, int len);
  57 
  58 #ifdef ALLOW_SELECT
  59 int sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
  60 #endif
  61 
  62 /*
  63  *      System calls for the /dev/midi
  64  */
  65 
  66 int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
  67 int MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
  68 int MIDIbuf_open (int dev, struct fileinfo *file);
  69 void MIDIbuf_release (int dev, struct fileinfo *file);
  70 int MIDIbuf_ioctl (int dev, struct fileinfo *file,
  71            unsigned int cmd, unsigned int arg);
  72 int MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
  73 void MIDIbuf_bytes_received(int dev, unsigned char *buf, int count);
  74 long MIDIbuf_init(long mem_start);
  75 
  76 #ifdef ALLOW_SELECT
  77 int MIDIbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
  78 #endif
  79 
  80 /*
  81  *      System calls for the generic midi interface.
  82  *
  83  */
  84 
  85 long  CMIDI_init  (long mem_start);
  86 int   CMIDI_open  (int dev, struct fileinfo *file);
  87 int   CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
  88 int   CMIDI_read  (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
  89 int   CMIDI_close (int dev, struct fileinfo *file); 
  90 
  91 /*
  92  *
  93  *      Misc calls from various sources
  94  */
  95 
  96 /*      From soundcard.c        */
  97 long soundcard_init(long mem_start);
  98 void tenmicrosec(void);
  99 void request_sound_timer (int count);
 100 void sound_stop_timer(void);
 101 int snd_ioctl_return(int *addr, int value);
 102 int snd_set_irq_handler (int interrupt_level, INT_HANDLER_PROTO(), char *name);
 103 void snd_release_irq(int vect);
 104 void sound_dma_malloc(int dev);
 105 void sound_dma_free(int dev);
 106 
 107 /*      From sound_switch.c     */
 108 int sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
 109 int sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
 110 int sound_open_sw (int dev, struct fileinfo *file);
 111 void sound_release_sw (int dev, struct fileinfo *file);
 112 int sound_ioctl_sw (int dev, struct fileinfo *file,
 113              unsigned int cmd, unsigned long arg);
 114 
 115 /*      From sb_dsp.c   */
 116 int sb_dsp_detect (struct address_info *hw_config);
 117 long sb_dsp_init (long mem_start, struct address_info *hw_config);
 118 void sb_dsp_disable_midi(void);
 119 int sb_get_irq(void);
 120 void sb_free_irq(void);
 121 int sb_dsp_command (unsigned char val);
 122 int sb_reset_dsp (void);
 123 
 124 /*      From sb16_dsp.c */
 125 void sb16_dsp_interrupt (int irq);
 126 long sb16_dsp_init(long mem_start, struct address_info *hw_config);
 127 int sb16_dsp_detect(struct address_info *hw_config);
 128 
 129 /*      From sb16_midi.c        */
 130 void sb16midiintr (int unit);
 131 long attach_sb16midi(long mem_start, struct address_info * hw_config);
 132 int probe_sb16midi(struct address_info *hw_config);
 133 void sb_midi_interrupt(int dummy);
 134 
 135 /*      From sb_midi.c  */
 136 void sb_midi_init(int model);
 137 
 138 /*      From sb_mixer.c */
 139 void sb_setmixer (unsigned int port, unsigned int value);
 140 int sb_getmixer (unsigned int port);
 141 void sb_mixer_set_stereo(int mode);
 142 int sb_mixer_init(int major_model);
 143 
 144 /*      From opl3.c     */
 145 int opl3_detect (int ioaddr);
 146 long opl3_init(long mem_start);
 147 
 148 /*      From sb_card.c  */
 149 long attach_sb_card(long mem_start, struct address_info *hw_config);
 150 int probe_sb(struct address_info *hw_config);
 151 
 152 /*      From adlib_card.c       */
 153 long attach_adlib_card(long mem_start, struct address_info *hw_config);
 154 int probe_adlib(struct address_info *hw_config);
 155 
 156 /*      From pas_card.c */
 157 long attach_pas_card(long mem_start, struct address_info *hw_config);
 158 int probe_pas(struct address_info *hw_config);
 159 int pas_set_intr(int mask);
 160 int pas_remove_intr(int mask);
 161 unsigned char pas_read(int ioaddr);
 162 void pas_write(unsigned char data, int ioaddr);
 163 
 164 /*      From pas_audio.c */
 165 void pas_pcm_interrupt(unsigned char status, int cause);
 166 long pas_pcm_init(long mem_start, struct address_info *hw_config);
 167 
 168 /*      From pas_mixer.c */
 169 int pas_init_mixer(void);
 170 
 171 /*      From pas_midi.c */
 172 long pas_midi_init(long mem_start);
 173 void pas_midi_interrupt(void);
 174 
 175 /*      From gus_card.c */
 176 long attach_gus_card(long mem_start, struct address_info * hw_config);
 177 int probe_gus(struct address_info *hw_config);
 178 int gus_set_midi_irq(int num);
 179 void gusintr(INT_HANDLER_PARMS(irq, dummy));
 180 long attach_gus_db16(long mem_start, struct address_info * hw_config);
 181 int probe_gus_db16(struct address_info *hw_config);
 182 
 183 /*      From gus_wave.c */
 184 int gus_wave_detect(int baseaddr);
 185 long gus_wave_init(long mem_start, int irq, int dma);
 186 void gus_voice_irq(void);
 187 unsigned char gus_read8 (int reg);
 188 void gus_write8(int reg, unsigned int data);
 189 void guswave_dma_irq(void);
 190 void gus_delay(void);
 191 int gus_default_mixer_ioctl (int dev, unsigned int cmd, unsigned int arg);
 192 
 193 /*      From gus_midi.c */
 194 long gus_midi_init(long mem_start);
 195 void gus_midi_interrupt(int dummy);
 196 
 197 /*      From mpu401.c */
 198 long attach_mpu401(long mem_start, struct address_info * hw_config);
 199 int probe_mpu401(struct address_info *hw_config);
 200 void mpuintr(INT_HANDLER_PARMS(irq, dummy));
 201 
 202 /*      From uart6850.c */
 203 long attach_uart6850(long mem_start, struct address_info * hw_config);
 204 int probe_uart6850(struct address_info *hw_config);
 205 
 206 /*      From opl3.c */
 207 void enable_opl3_mode(int left, int right, int both);
 208 
 209 /*      From patmgr.c */
 210 int pmgr_open(int dev);
 211 void pmgr_release(int dev);
 212 int pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
 213 int pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
 214 int pmgr_access(int dev, struct patmgr_info *rec);
 215 int pmgr_inform(int dev, int event, unsigned long parm1, unsigned long parm2,
 216                                     unsigned long parm3, unsigned long parm4);
 217 
 218 /*      From ics2101.c */
 219 long ics2101_mixer_init(long mem_start);
 220 
 221 /*      From sound_timer.c */
 222 void sound_timer_init(int io_base);
 223 void sound_timer_interrupt(void);
 224 
 225 /*      From ad1848.c */
 226 void ad1848_init (char *name, int io_base, int irq, int dma_playback, int dma_capture);
 227 int ad1848_detect (int io_base);
 228 void     ad1848_interrupt (INT_HANDLER_PARMS(irq, dummy));
 229 long attach_ms_sound(long mem_start, struct address_info * hw_config);
 230 int probe_ms_sound(struct address_info *hw_config);
 231 
 232 /*      From pss.c */
 233 int probe_pss (struct address_info *hw_config);
 234 long attach_pss (long mem_start, struct address_info *hw_config);
 235 int probe_pss_mpu (struct address_info *hw_config);
 236 long attach_pss_mpu (long mem_start, struct address_info *hw_config);
 237 int probe_pss_mss (struct address_info *hw_config);
 238 long attach_pss_mss (long mem_start, struct address_info *hw_config);
 239 
 240 /*      From sscape.c */
 241 int probe_sscape (struct address_info *hw_config);
 242 long attach_sscape (long mem_start, struct address_info *hw_config);
 243 int probe_ss_ms_sound (struct address_info *hw_config);
 244 long attach_ss_ms_sound(long mem_start, struct address_info * hw_config);
 245 
 246 int pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
 247 int pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
 248 int pss_open (int dev, struct fileinfo *file);
 249 void pss_release (int dev, struct fileinfo *file);
 250 int pss_ioctl (int dev, struct fileinfo *file,
 251            unsigned int cmd, unsigned int arg);
 252 int pss_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
 253 long pss_init(long mem_start);
 254 
 255 /* From aedsp16.c */
 256 int InitAEDSP16_SBPRO(struct address_info *hw_config);
 257 int InitAEDSP16_MSS(struct address_info *hw_config);
 258 int InitAEDSP16_MPU401(struct address_info *hw_config);
 259 
 260 /*      From midi_synth.c       */
 261 void do_midi_msg (int synthno, unsigned char *msg, int mlen);
 262 
 263 /*      From trix.c     */
 264 long attach_trix_wss (long mem_start, struct address_info *hw_config);
 265 int probe_trix_wss (struct address_info *hw_config);
 266 long attach_trix_sb (long mem_start, struct address_info *hw_config);
 267 int probe_trix_sb (struct address_info *hw_config);
 268 long attach_trix_mpu (long mem_start, struct address_info *hw_config);
 269 int probe_trix_mpu (struct address_info *hw_config);
 270 
 271 /*      From mad16.c    */
 272 long attach_mad16 (long mem_start, struct address_info *hw_config);
 273 int probe_mad16 (struct address_info *hw_config);
 274 long attach_mad16_mpu (long mem_start, struct address_info *hw_config);
 275 int probe_mad16_mpu (struct address_info *hw_config);

/* [previous][next][first][last][top][bottom][index][help] */