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_read (int dev, snd_rw_buf *user_buf, int count);
   8 int DMAbuf_getwrbuffer(int dev, char **buf, int *size);
   9 int DMAbuf_getrdbuffer(int dev, char **buf, int *len);
  10 int DMAbuf_rmchars(int dev, int buff_no, int c);
  11 int DMAbuf_start_output(int dev, int buff_no, int l);
  12 int DMAbuf_ioctl(int dev, unsigned int cmd, unsigned int arg, int local);
  13 long DMAbuf_init(long mem_start);
  14 int DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode);
  15 int DMAbuf_open_dma (int chan);
  16 void DMAbuf_close_dma (int chan);
  17 void DMAbuf_reset_dma (int chan);
  18 void DMAbuf_inputintr(int dev);
  19 void DMAbuf_outputintr(int dev, int underflow_flag);
  20 
  21 /*
  22  *      System calls for /dev/dsp and /dev/audio
  23  */
  24 
  25 int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
  26 int audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
  27 int audio_open (int dev, struct fileinfo *file);
  28 void audio_release (int dev, struct fileinfo *file);
  29 int audio_ioctl (int dev, struct fileinfo *file,
  30            unsigned int cmd, unsigned int arg);
  31 int audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
  32 long audio_init (long mem_start);
  33 
  34 /*
  35  *      System calls for the /dev/sequencer
  36  */
  37 
  38 int sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
  39 int sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
  40 int sequencer_open (int dev, struct fileinfo *file);
  41 void sequencer_release (int dev, struct fileinfo *file);
  42 int sequencer_ioctl (int dev, struct fileinfo *file,
  43            unsigned int cmd, unsigned int arg);
  44 int sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
  45 long sequencer_init (long mem_start);
  46 void sequencer_timer(void);
  47 int note_to_freq(int note_num);
  48 unsigned long compute_finetune(unsigned long base_freq, int bend, int range);
  49 
  50 #ifdef ALLOW_SELECT
  51 int sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
  52 #endif
  53 
  54 /*
  55  *      System calls for the /dev/midi
  56  */
  57 
  58 int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
  59 int MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
  60 int MIDIbuf_open (int dev, struct fileinfo *file);
  61 void MIDIbuf_release (int dev, struct fileinfo *file);
  62 int MIDIbuf_ioctl (int dev, struct fileinfo *file,
  63            unsigned int cmd, unsigned int arg);
  64 int MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
  65 void MIDIbuf_bytes_received(int dev, unsigned char *buf, int count);
  66 long MIDIbuf_init(long mem_start);
  67 
  68 /*
  69  *      System calls for the generic midi interface.
  70  *
  71  */
  72 
  73 long  CMIDI_init  (long mem_start);
  74 int   CMIDI_open  (int dev, struct fileinfo *file);
  75 int   CMIDI_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
  76 int   CMIDI_read  (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
  77 int   CMIDI_close (int dev, struct fileinfo *file); 
  78 
  79 /*
  80  *
  81  *      Misc calls from various sources
  82  */
  83 
  84 /*      From pro_midi.c         */
  85 
  86 long pro_midi_attach(long mem_start);
  87 int  pro_midi_open(int dev, int mode);
  88 void pro_midi_close(int dev);
  89 int pro_midi_write(int dev, snd_rw_buf *uio);
  90 int pro_midi_read(int dev, snd_rw_buf *uio);
  91 
  92 /*      From soundcard.c        */
  93 long soundcard_init(long mem_start);
  94 void tenmicrosec(void);
  95 void request_sound_timer (int count);
  96 void sound_stop_timer(void);
  97 int snd_ioctl_return(int *addr, int value);
  98 int snd_set_irq_handler (int interrupt_level, void(*hndlr)(int));
  99 void snd_release_irq(int vect);
 100 
 101 /*      From sb_dsp.c   */
 102 int sb_dsp_detect (struct address_info *hw_config);
 103 long sb_dsp_init (long mem_start, struct address_info *hw_config);
 104 void sb_dsp_disable_midi(void);
 105 int sb_get_irq(void);
 106 void sb_free_irq(void);
 107 int sb_dsp_command (unsigned char val);
 108 int sb_reset_dsp (void);
 109 
 110 /*      From sb16_dsp.c */
 111 void sb16_dsp_interrupt (int unused);
 112 long sb16_dsp_init(long mem_start, struct address_info *hw_config);
 113 int sb16_dsp_detect(struct address_info *hw_config);
 114 
 115 /*      From sb_midi.c  */
 116 void sb_midi_init(int model);
 117 
 118 /*      From sb_mixer.c */
 119 void sb_setmixer (unsigned char port, unsigned char value);
 120 int sb_getmixer (unsigned char port);
 121 void sb_mixer_set_stereo(int mode);
 122 void sb_mixer_init(int major_model);
 123 
 124 /*      From opl3.c     */
 125 int opl3_detect (int ioaddr);
 126 long opl3_init(long mem_start);
 127 
 128 /*      From sb_card.c  */
 129 long attach_sb_card(long mem_start, struct address_info *hw_config);
 130 int probe_sb(struct address_info *hw_config);
 131 
 132 /*      From adlib_card.c       */
 133 long attach_adlib_card(long mem_start, struct address_info *hw_config);
 134 int probe_adlib(struct address_info *hw_config);
 135 
 136 /*      From pas_card.c */
 137 long attach_pas_card(long mem_start, struct address_info *hw_config);
 138 int probe_pas(struct address_info *hw_config);
 139 int pas_set_intr(int mask);
 140 int pas_remove_intr(int mask);
 141 unsigned char pas_read(int ioaddr);
 142 void pas_write(unsigned char data, int ioaddr);
 143 
 144 /*      From pas_audio.c */
 145 void pas_pcm_interrupt(unsigned char status, int cause);
 146 long pas_pcm_init(long mem_start, struct address_info *hw_config);
 147 
 148 /*      From pas_mixer.c */
 149 int pas_init_mixer(void);
 150 
 151 /*      From pas_midi.c */
 152 long pas_midi_init(long mem_start);
 153 void pas_midi_interrupt(void);
 154 
 155 /*      From gus_card.c */
 156 long attach_gus_card(long mem_start, struct address_info * hw_config);
 157 int probe_gus(struct address_info *hw_config);
 158 int gus_set_midi_irq(int num);
 159 void gusintr(int);
 160 
 161 /*      From gus_wave.c */
 162 int gus_wave_detect(int baseaddr);
 163 long gus_wave_init(long mem_start, int irq, int dma);
 164 void gus_voice_irq(void);
 165 unsigned char gus_read8 (int reg);
 166 void gus_write8(int reg, unsigned char data);
 167 void guswave_dma_irq(void);
 168 void gus_delay(void);
 169 
 170 /*      From gus_midi.c */
 171 long gus_midi_init(long mem_start);
 172 void gus_midi_interrupt(int dummy);
 173 
 174 /*      From mpu401.c */
 175 long attach_mpu401(long mem_start, struct address_info * hw_config);
 176 int probe_mpu401(struct address_info *hw_config);
 177 
 178 /*      From opl3.c */
 179 void enable_opl3_mode(int left, int right, int both);
 180 
 181 /*      From patmgr.c */
 182 int pmgr_open(int dev);
 183 void pmgr_release(int dev);
 184 int pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
 185 int pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
 186 int pmgr_access(int dev, struct patmgr_info *rec);
 187 int pmgr_inform(int dev, int event, unsigned long parm1, unsigned long parm2,
 188                                     unsigned long parm3, unsigned long parm4);

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