1993-10-23 10:55:52 +00:00
|
|
|
/*
|
|
|
|
* DMA buffer calls
|
|
|
|
*/
|
1994-10-01 02:17:17 +00:00
|
|
|
|
1993-10-23 10:55:52 +00:00
|
|
|
int DMAbuf_open(int dev, int mode);
|
|
|
|
int DMAbuf_release(int dev, int mode);
|
1995-07-28 21:40:49 +00:00
|
|
|
int DMAbuf_getwrbuffer(int dev, char **buf, int *size, int dontblock);
|
|
|
|
int DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock);
|
1993-10-23 10:55:52 +00:00
|
|
|
int DMAbuf_rmchars(int dev, int buff_no, int c);
|
|
|
|
int DMAbuf_start_output(int dev, int buff_no, int l);
|
1997-10-31 17:25:35 +00:00
|
|
|
int DMAbuf_ioctl(int dev, u_int cmd, ioctl_arg arg, int local);
|
|
|
|
void DMAbuf_init(void);
|
|
|
|
int DMAbuf_start_dma (int dev, u_long physaddr, int count, int dma_mode);
|
1995-07-28 21:40:49 +00:00
|
|
|
int DMAbuf_open_dma (int dev);
|
|
|
|
void DMAbuf_close_dma (int dev);
|
|
|
|
void DMAbuf_reset_dma (int dev);
|
1993-10-23 10:55:52 +00:00
|
|
|
void DMAbuf_inputintr(int dev);
|
1994-03-11 10:27:25 +00:00
|
|
|
void DMAbuf_outputintr(int dev, int underflow_flag);
|
1997-10-31 17:25:35 +00:00
|
|
|
void DMAbuf_start_devices(u_int devmask);
|
1997-11-10 18:31:35 +00:00
|
|
|
#ifdef ALLOW_POLL
|
1997-10-31 17:25:35 +00:00
|
|
|
int DMAbuf_select(int dev, struct fileinfo *file, int sel_type, select_table * wait);
|
1995-07-28 21:40:49 +00:00
|
|
|
#endif
|
1993-10-23 10:55:52 +00:00
|
|
|
|
|
|
|
/*
|
1994-03-11 10:27:25 +00:00
|
|
|
* System calls for /dev/dsp and /dev/audio
|
1993-10-23 10:55:52 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
int audio_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
|
|
|
|
int audio_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
|
|
|
|
int audio_open (int dev, struct fileinfo *file);
|
|
|
|
void audio_release (int dev, struct fileinfo *file);
|
|
|
|
int audio_ioctl (int dev, struct fileinfo *file,
|
1997-10-31 17:25:35 +00:00
|
|
|
u_int cmd, ioctl_arg arg);
|
1993-10-23 10:55:52 +00:00
|
|
|
int audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
|
1997-10-31 17:25:35 +00:00
|
|
|
/* long audio_init (void); */
|
1993-10-23 10:55:52 +00:00
|
|
|
|
1995-07-28 21:40:49 +00:00
|
|
|
#ifdef ALLOW_SELECT
|
1997-10-31 17:25:35 +00:00
|
|
|
int audio_poll(int dev, struct fileinfo *file, int events, select_table * wait);
|
1995-07-28 21:40:49 +00:00
|
|
|
#endif
|
|
|
|
|
1993-10-23 10:55:52 +00:00
|
|
|
/*
|
|
|
|
* System calls for the /dev/sequencer
|
|
|
|
*/
|
|
|
|
|
|
|
|
int sequencer_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
|
|
|
|
int sequencer_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
|
|
|
|
int sequencer_open (int dev, struct fileinfo *file);
|
|
|
|
void sequencer_release (int dev, struct fileinfo *file);
|
|
|
|
int sequencer_ioctl (int dev, struct fileinfo *file,
|
1997-10-31 17:25:35 +00:00
|
|
|
u_int cmd, ioctl_arg arg);
|
1993-10-23 10:55:52 +00:00
|
|
|
int sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
|
1997-10-31 17:25:35 +00:00
|
|
|
void sequencer_init (void);
|
|
|
|
void sequencer_timer(void *dummy);
|
1993-10-23 10:55:52 +00:00
|
|
|
int note_to_freq(int note_num);
|
1997-10-31 17:25:35 +00:00
|
|
|
u_long compute_finetune(u_long base_freq, int bend, int range);
|
|
|
|
void seq_input_event(u_char *event, int len);
|
|
|
|
void seq_copy_to_input (u_char *event, int len);
|
1993-10-23 10:55:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* System calls for the /dev/midi
|
|
|
|
*/
|
|
|
|
|
|
|
|
int MIDIbuf_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
|
|
|
|
int MIDIbuf_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
|
|
|
|
int MIDIbuf_open (int dev, struct fileinfo *file);
|
|
|
|
void MIDIbuf_release (int dev, struct fileinfo *file);
|
|
|
|
int MIDIbuf_ioctl (int dev, struct fileinfo *file,
|
1997-10-31 17:25:35 +00:00
|
|
|
u_int cmd, ioctl_arg arg);
|
1993-10-23 10:55:52 +00:00
|
|
|
int MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
|
1997-10-31 17:25:35 +00:00
|
|
|
void MIDIbuf_bytes_received(int dev, u_char *buf, int count);
|
1993-10-23 10:55:52 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Misc calls from various sources
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* From soundcard.c */
|
1997-10-31 17:25:35 +00:00
|
|
|
void soundcard_init(void);
|
|
|
|
void tenmicrosec(int);
|
1993-10-23 10:55:52 +00:00
|
|
|
void request_sound_timer (int count);
|
|
|
|
void sound_stop_timer(void);
|
1997-10-31 17:25:35 +00:00
|
|
|
int snd_ioctl_return(int *addr, int value);
|
|
|
|
int snd_set_irq_handler (int int_lvl, void(*hndlr)(int), sound_os_info *osp);
|
1994-03-11 10:27:25 +00:00
|
|
|
void sound_dma_malloc(int dev);
|
|
|
|
void sound_dma_free(int dev);
|
1997-10-31 17:25:35 +00:00
|
|
|
void conf_printf(char *name, struct address_info *hw_config);
|
|
|
|
void conf_printf2(char *name, int base, int irq, int dma, int dma2);
|
1994-03-11 10:27:25 +00:00
|
|
|
|
|
|
|
/* From sound_switch.c */
|
|
|
|
int sound_read_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
|
|
|
|
int sound_write_sw (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
|
|
|
|
int sound_open_sw (int dev, struct fileinfo *file);
|
|
|
|
void sound_release_sw (int dev, struct fileinfo *file);
|
1997-10-31 17:25:35 +00:00
|
|
|
int sound_ioctl_sw (int dev, struct fileinfo *file, u_int cmd, ioctl_arg arg);
|
1993-10-23 10:55:52 +00:00
|
|
|
|
|
|
|
/* From sb_dsp.c */
|
|
|
|
int sb_dsp_detect (struct address_info *hw_config);
|
1997-10-31 17:25:35 +00:00
|
|
|
void sb_dsp_init (struct address_info *hw_config);
|
1993-10-23 10:55:52 +00:00
|
|
|
void sb_dsp_disable_midi(void);
|
1997-10-31 17:25:35 +00:00
|
|
|
int sb_dsp_command (u_char val);
|
1994-03-11 10:27:25 +00:00
|
|
|
int sb_reset_dsp (void);
|
|
|
|
|
|
|
|
/* From sb16_dsp.c */
|
1995-07-28 21:40:49 +00:00
|
|
|
void sb16_dsp_interrupt (int irq);
|
1997-10-31 17:25:35 +00:00
|
|
|
void sb16_dsp_init(struct address_info *hw_config);
|
1994-03-11 10:27:25 +00:00
|
|
|
int sb16_dsp_detect(struct address_info *hw_config);
|
|
|
|
|
|
|
|
/* From sb16_midi.c */
|
|
|
|
void sb16midiintr (int unit);
|
1997-10-31 17:25:35 +00:00
|
|
|
void attach_sb16midi(struct address_info * hw_config);
|
1994-03-11 10:27:25 +00:00
|
|
|
int probe_sb16midi(struct address_info *hw_config);
|
1994-10-01 02:17:17 +00:00
|
|
|
void sb_midi_interrupt(int dummy);
|
1994-03-11 10:27:25 +00:00
|
|
|
|
|
|
|
/* From sb_midi.c */
|
|
|
|
void sb_midi_init(int model);
|
|
|
|
|
|
|
|
/* From sb_mixer.c */
|
1997-10-31 17:25:35 +00:00
|
|
|
void sb_setmixer (u_int port, u_int value);
|
|
|
|
int sb_getmixer (u_int port);
|
1994-03-11 10:27:25 +00:00
|
|
|
void sb_mixer_set_stereo(int mode);
|
1994-04-23 01:50:14 +00:00
|
|
|
int sb_mixer_init(int major_model);
|
1993-10-23 10:55:52 +00:00
|
|
|
|
|
|
|
/* From opl3.c */
|
1997-10-31 17:25:35 +00:00
|
|
|
int opl3_detect (int ioaddr, sound_os_info *osp);
|
|
|
|
void opl3_init(int ioaddr, sound_os_info *osp);
|
1993-10-23 10:55:52 +00:00
|
|
|
|
|
|
|
/* From sb_card.c */
|
1997-10-31 17:25:35 +00:00
|
|
|
void attach_sb_card(struct address_info *hw_config);
|
1993-10-23 10:55:52 +00:00
|
|
|
int probe_sb(struct address_info *hw_config);
|
|
|
|
|
1997-10-31 17:25:35 +00:00
|
|
|
/* From awe_wave.c */
|
1998-01-08 23:13:22 +00:00
|
|
|
void attach_awe(struct address_info *hw_config);
|
|
|
|
int probe_awe(struct address_info *hw_config);
|
1997-10-31 17:25:35 +00:00
|
|
|
|
1993-10-23 10:55:52 +00:00
|
|
|
/* From adlib_card.c */
|
1997-10-31 17:25:35 +00:00
|
|
|
void attach_adlib_card(struct address_info *hw_config);
|
1993-10-23 10:55:52 +00:00
|
|
|
int probe_adlib(struct address_info *hw_config);
|
|
|
|
|
|
|
|
/* From pas_card.c */
|
1997-10-31 17:25:35 +00:00
|
|
|
void attach_pas_card(struct address_info *hw_config);
|
1993-10-23 10:55:52 +00:00
|
|
|
int probe_pas(struct address_info *hw_config);
|
|
|
|
int pas_set_intr(int mask);
|
|
|
|
int pas_remove_intr(int mask);
|
1997-10-31 17:25:35 +00:00
|
|
|
u_char pas_read(int ioaddr);
|
|
|
|
void pas_write(u_char data, int ioaddr);
|
1993-10-23 10:55:52 +00:00
|
|
|
|
|
|
|
/* From pas_audio.c */
|
1997-10-31 17:25:35 +00:00
|
|
|
void pas_pcm_interrupt(u_char status, int cause);
|
|
|
|
void pas_pcm_init(struct address_info *hw_config);
|
1993-10-23 10:55:52 +00:00
|
|
|
|
|
|
|
/* From pas_mixer.c */
|
|
|
|
int pas_init_mixer(void);
|
|
|
|
|
|
|
|
/* From pas_midi.c */
|
1997-10-31 17:25:35 +00:00
|
|
|
void pas_midi_init(void);
|
1993-10-23 10:55:52 +00:00
|
|
|
void pas_midi_interrupt(void);
|
|
|
|
|
|
|
|
/* From gus_card.c */
|
1997-10-31 17:25:35 +00:00
|
|
|
void attach_gus_card(struct address_info * hw_config);
|
1993-10-23 10:55:52 +00:00
|
|
|
int probe_gus(struct address_info *hw_config);
|
|
|
|
int gus_set_midi_irq(int num);
|
1997-10-31 17:25:35 +00:00
|
|
|
/*void gusintr(int irq); */
|
|
|
|
void attach_gus_db16(struct address_info * hw_config);
|
1994-10-01 02:17:17 +00:00
|
|
|
int probe_gus_db16(struct address_info *hw_config);
|
1993-10-23 10:55:52 +00:00
|
|
|
|
|
|
|
/* From gus_wave.c */
|
|
|
|
int gus_wave_detect(int baseaddr);
|
1997-10-31 17:25:35 +00:00
|
|
|
void gus_wave_init(struct address_info *hw_config);
|
1993-10-23 10:55:52 +00:00
|
|
|
void gus_voice_irq(void);
|
1997-10-31 17:25:35 +00:00
|
|
|
u_char gus_read8 (int reg);
|
|
|
|
void gus_write8(int reg, u_int data);
|
1993-10-23 10:55:52 +00:00
|
|
|
void guswave_dma_irq(void);
|
|
|
|
void gus_delay(void);
|
1997-10-31 17:25:35 +00:00
|
|
|
int gus_default_mixer_ioctl (int dev, u_int cmd, ioctl_arg arg);
|
|
|
|
void gus_timer_command (u_int addr, u_int val);
|
1993-10-23 10:55:52 +00:00
|
|
|
|
|
|
|
/* From gus_midi.c */
|
1997-10-31 17:25:35 +00:00
|
|
|
void gus_midi_init(void);
|
1993-10-23 10:55:52 +00:00
|
|
|
void gus_midi_interrupt(int dummy);
|
|
|
|
|
|
|
|
/* From mpu401.c */
|
1997-10-31 17:25:35 +00:00
|
|
|
void attach_mpu401(struct address_info * hw_config);
|
1993-10-23 10:55:52 +00:00
|
|
|
int probe_mpu401(struct address_info *hw_config);
|
1997-10-31 17:25:35 +00:00
|
|
|
void mpuintr(int irq);
|
1993-10-23 10:55:52 +00:00
|
|
|
|
1994-10-01 02:17:17 +00:00
|
|
|
/* From uart6850.c */
|
1997-10-31 17:25:35 +00:00
|
|
|
void attach_uart6850(struct address_info * hw_config);
|
1994-10-01 02:17:17 +00:00
|
|
|
int probe_uart6850(struct address_info *hw_config);
|
|
|
|
|
1993-10-23 10:55:52 +00:00
|
|
|
/* From opl3.c */
|
|
|
|
void enable_opl3_mode(int left, int right, int both);
|
|
|
|
|
|
|
|
/* From patmgr.c */
|
|
|
|
int pmgr_open(int dev);
|
|
|
|
void pmgr_release(int dev);
|
|
|
|
int pmgr_read (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
|
|
|
|
int pmgr_write (int dev, struct fileinfo *file, snd_rw_buf * buf, int count);
|
|
|
|
int pmgr_access(int dev, struct patmgr_info *rec);
|
1997-10-31 17:25:35 +00:00
|
|
|
int pmgr_inform(int dev, int event, u_long parm1, u_long parm2,
|
|
|
|
u_long parm3, u_long parm4);
|
1994-04-23 01:50:14 +00:00
|
|
|
|
|
|
|
/* From ics2101.c */
|
1997-10-31 17:25:35 +00:00
|
|
|
void ics2101_mixer_init(void);
|
1994-09-27 17:58:30 +00:00
|
|
|
|
1994-10-01 02:17:17 +00:00
|
|
|
/* From sound_timer.c */
|
|
|
|
void sound_timer_interrupt(void);
|
1997-10-31 17:25:35 +00:00
|
|
|
void sound_timer_syncinterval(u_int new_usecs);
|
1994-10-01 02:17:17 +00:00
|
|
|
|
|
|
|
/* From ad1848.c */
|
1997-10-31 17:25:35 +00:00
|
|
|
void ad1848_init (char *name, int io_base, int irq, int dma_playback, int dma_capture, int share_dma, sound_os_info *osp);
|
|
|
|
|
|
|
|
int ad1848_detect (int io_base, int *flags, sound_os_info *osp);
|
|
|
|
#define AD_F_CS4231 0x0001 /* Returned if a CS4232 (or compatible) detected */
|
|
|
|
#define AD_F_CS4248 0x0001 /* Returned if a CS4248 (or compatible) detected */
|
|
|
|
|
|
|
|
void ad1848_interrupt (int irq);
|
|
|
|
void attach_mss(struct address_info * hw_config);
|
|
|
|
int probe_mss(struct address_info *hw_config);
|
|
|
|
void attach_pnp_ad1848(struct address_info * hw_config);
|
|
|
|
int probe_pnp_ad1848(struct address_info *hw_config);
|
1994-10-01 02:17:17 +00:00
|
|
|
|
|
|
|
/* From pss.c */
|
|
|
|
int probe_pss (struct address_info *hw_config);
|
1997-10-31 17:25:35 +00:00
|
|
|
void attach_pss (struct address_info *hw_config);
|
1995-07-28 21:40:49 +00:00
|
|
|
int probe_pss_mpu (struct address_info *hw_config);
|
1997-10-31 17:25:35 +00:00
|
|
|
void attach_pss_mpu (struct address_info *hw_config);
|
1995-07-28 21:40:49 +00:00
|
|
|
int probe_pss_mss (struct address_info *hw_config);
|
1997-10-31 17:25:35 +00:00
|
|
|
void attach_pss_mss (struct address_info *hw_config);
|
1995-07-28 21:40:49 +00:00
|
|
|
|
|
|
|
/* From sscape.c */
|
|
|
|
int probe_sscape (struct address_info *hw_config);
|
1997-10-31 17:25:35 +00:00
|
|
|
void attach_sscape (struct address_info *hw_config);
|
|
|
|
int probe_ss_mss(struct address_info *hw_config);
|
|
|
|
void attach_ss_mss(struct address_info * hw_config);
|
1994-10-01 02:17:17 +00:00
|
|
|
|
|
|
|
int pss_read (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
|
|
|
|
int pss_write (int dev, struct fileinfo *file, snd_rw_buf *buf, int count);
|
|
|
|
int pss_open (int dev, struct fileinfo *file);
|
|
|
|
void pss_release (int dev, struct fileinfo *file);
|
|
|
|
int pss_ioctl (int dev, struct fileinfo *file,
|
1997-10-31 17:25:35 +00:00
|
|
|
u_int cmd, ioctl_arg arg);
|
1994-10-01 02:17:17 +00:00
|
|
|
int pss_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
|
1997-10-31 17:25:35 +00:00
|
|
|
void pss_init(void);
|
1996-10-30 22:41:46 +00:00
|
|
|
|
1995-07-28 21:40:49 +00:00
|
|
|
/* From aedsp16.c */
|
|
|
|
int InitAEDSP16_SBPRO(struct address_info *hw_config);
|
|
|
|
int InitAEDSP16_MSS(struct address_info *hw_config);
|
|
|
|
int InitAEDSP16_MPU401(struct address_info *hw_config);
|
|
|
|
|
|
|
|
/* From midi_synth.c */
|
1997-10-31 17:25:35 +00:00
|
|
|
void do_midi_msg (int synthno, u_char *msg, int mlen);
|
1995-07-28 21:40:49 +00:00
|
|
|
|
|
|
|
/* From trix.c */
|
1997-10-31 17:25:35 +00:00
|
|
|
void attach_trix_wss (struct address_info *hw_config);
|
1995-07-28 21:40:49 +00:00
|
|
|
int probe_trix_wss (struct address_info *hw_config);
|
1997-10-31 17:25:35 +00:00
|
|
|
void attach_trix_sb (struct address_info *hw_config);
|
1995-07-28 21:40:49 +00:00
|
|
|
int probe_trix_sb (struct address_info *hw_config);
|
1997-10-31 17:25:35 +00:00
|
|
|
void attach_trix_mpu (struct address_info *hw_config);
|
1995-07-28 21:40:49 +00:00
|
|
|
int probe_trix_mpu (struct address_info *hw_config);
|
1997-10-31 17:25:35 +00:00
|
|
|
|
|
|
|
/* From mad16.c */
|
|
|
|
void attach_mad16 (struct address_info *hw_config);
|
|
|
|
int probe_mad16 (struct address_info *hw_config);
|
|
|
|
void attach_mad16_mpu (struct address_info *hw_config);
|
|
|
|
int probe_mad16_mpu (struct address_info *hw_config);
|
|
|
|
int mad16_sb_dsp_detect (struct address_info *hw_config);
|
|
|
|
void mad16_sb_dsp_init (struct address_info *hw_config);
|
|
|
|
|
|
|
|
/* From cs4232.c */
|
|
|
|
|
|
|
|
int probe_cs4232 (struct address_info *hw_config);
|
|
|
|
void attach_cs4232 (struct address_info *hw_config);
|
|
|
|
int probe_cs4232_mpu (struct address_info *hw_config);
|
|
|
|
void attach_cs4232_mpu (struct address_info *hw_config);
|
|
|
|
|
|
|
|
/* From maui.c */
|
|
|
|
void attach_maui(struct address_info * hw_config);
|
|
|
|
int probe_maui(struct address_info *hw_config);
|
|
|
|
|
|
|
|
/* From sound_pnp.c */
|
|
|
|
void sound_pnp_init(void);
|
|
|
|
void sound_pnp_disconnect(void);
|