OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [drivers/] [sound/] [sound_calls.h] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1626 jcastillo
/*
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_get_curr_buffer(int dev, int *buff_no, char **dma_buf, int *buff_ptr, int *buff_size);
9
int DMAbuf_getrdbuffer(int dev, char **buf, int *len, int dontblock);
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_set_count(int dev, int buff_no, int l);
13
int DMAbuf_ioctl(int dev, unsigned int cmd, caddr_t arg, int local);
14
void DMAbuf_init(void);
15
int DMAbuf_start_dma (int dev, unsigned long physaddr, int count, int dma_mode);
16
int DMAbuf_open_dma (int dev);
17
void DMAbuf_close_dma (int dev);
18
void DMAbuf_reset_dma (int dev);
19
void DMAbuf_inputintr(int dev);
20
void DMAbuf_outputintr(int dev, int underflow_flag);
21
int DMAbuf_select(int dev, struct fileinfo *file, int sel_type, select_table_handle * wait);
22
void DMAbuf_start_devices(unsigned int devmask);
23
 
24
/*
25
 *      System calls for /dev/dsp and /dev/audio
26
 */
27
 
28
int audio_read (int dev, struct fileinfo *file, char *buf, int count);
29
int audio_write (int dev, struct fileinfo *file, const char *buf, int count);
30
int audio_open (int dev, struct fileinfo *file);
31
void audio_release (int dev, struct fileinfo *file);
32
int audio_ioctl (int dev, struct fileinfo *file,
33
           unsigned int cmd, caddr_t arg);
34
int audio_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
35
void audio_init (void);
36
 
37
int audio_select(int dev, struct fileinfo *file, int sel_type, select_table_handle * wait);
38
 
39
/*
40
 *      System calls for the /dev/sequencer
41
 */
42
 
43
int sequencer_read (int dev, struct fileinfo *file, char *buf, int count);
44
int sequencer_write (int dev, struct fileinfo *file, const char *buf, int count);
45
int sequencer_open (int dev, struct fileinfo *file);
46
void sequencer_release (int dev, struct fileinfo *file);
47
int sequencer_ioctl (int dev, struct fileinfo *file,
48
           unsigned int cmd, caddr_t arg);
49
int sequencer_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
50
void sequencer_init (void);
51
void sequencer_timer(unsigned long dummy);
52
int note_to_freq(int note_num);
53
unsigned long compute_finetune(unsigned long base_freq, int bend, int range);
54
void seq_input_event(unsigned char *event, int len);
55
void seq_copy_to_input (unsigned char *event, int len);
56
 
57
int sequencer_select(int dev, struct fileinfo *file, int sel_type, select_table_handle * wait);
58
 
59
/*
60
 *      System calls for the /dev/midi
61
 */
62
 
63
int MIDIbuf_read (int dev, struct fileinfo *file, char *buf, int count);
64
int MIDIbuf_write (int dev, struct fileinfo *file, const char *buf, int count);
65
int MIDIbuf_open (int dev, struct fileinfo *file);
66
void MIDIbuf_release (int dev, struct fileinfo *file);
67
int MIDIbuf_ioctl (int dev, struct fileinfo *file,
68
           unsigned int cmd, caddr_t arg);
69
int MIDIbuf_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
70
void MIDIbuf_bytes_received(int dev, unsigned char *buf, int count);
71
void MIDIbuf_init(void);
72
 
73
int MIDIbuf_select(int dev, struct fileinfo *file, int sel_type, select_table_handle * wait);
74
 
75
/*
76
 *
77
 *      Misc calls from various sources
78
 */
79
 
80
/*      From soundcard.c        */
81
void soundcard_init(void);
82
void tenmicrosec(int *osp);
83
void request_sound_timer (int count);
84
void sound_stop_timer(void);
85
int snd_ioctl_return(int *addr, int value);
86
int snd_set_irq_handler (int interrupt_level, void(*iproc)(int, void*, struct pt_regs *), char *name, int *osp);
87
void snd_release_irq(int vect);
88
void sound_dma_malloc(int dev);
89
void sound_dma_free(int dev);
90
void conf_printf(char *name, struct address_info *hw_config);
91
void conf_printf2(char *name, int base, int irq, int dma, int dma2);
92
 
93
/*      From sound_switch.c     */
94
int sound_read_sw (int dev, struct fileinfo *file, char *buf, int count);
95
int sound_write_sw (int dev, struct fileinfo *file, const char *buf, int count);
96
int sound_open_sw (int dev, struct fileinfo *file);
97
void sound_release_sw (int dev, struct fileinfo *file);
98
int sound_ioctl_sw (int dev, struct fileinfo *file,
99
             unsigned int cmd, caddr_t arg);
100
 
101
/*      From opl3.c     */
102
int opl3_detect (int ioaddr, int *osp);
103
void opl3_init(int ioaddr, int *osp);
104
 
105
/*      From sb_card.c  */
106
void attach_sb_card(struct address_info *hw_config);
107
int probe_sb(struct address_info *hw_config);
108
 
109
/*      From sb_common.c */
110
void sb_dsp_disable_midi(int port);
111
void sb_dsp_disable_recording(int port);
112
void attach_sbmpu (struct address_info *hw_config);
113
int probe_sbmpu (struct address_info *hw_config);
114
void unload_sbmpu (struct address_info *hw_config);
115
 
116
/*      From uart401.c */
117
void attach_uart401 (struct address_info *hw_config);
118
int probe_uart401 (struct address_info *hw_config);
119
void unload_uart401 (struct address_info *hw_config);
120
void uart401intr (int irq, void *dev_id, struct pt_regs * dummy);
121
 
122
/*      From adlib_card.c       */
123
void attach_adlib_card(struct address_info *hw_config);
124
int probe_adlib(struct address_info *hw_config);
125
 
126
/*      From pas_card.c */
127
void attach_pas_card(struct address_info *hw_config);
128
int probe_pas(struct address_info *hw_config);
129
int pas_set_intr(int mask);
130
int pas_remove_intr(int mask);
131
unsigned char pas_read(int ioaddr);
132
void pas_write(unsigned char data, int ioaddr);
133
 
134
/*      From pas_audio.c */
135
void pas_pcm_interrupt(unsigned char status, int cause);
136
void pas_pcm_init(struct address_info *hw_config);
137
 
138
/*      From pas_mixer.c */
139
int pas_init_mixer(void);
140
 
141
/*      From pas_midi.c */
142
void pas_midi_init(void);
143
void pas_midi_interrupt(void);
144
 
145
/*      From gus_card.c */
146
void attach_gus_card(struct address_info * hw_config);
147
int probe_gus(struct address_info *hw_config);
148
int gus_set_midi_irq(int num);
149
void gusintr(int irq, void *dev_id, struct pt_regs * dummy);
150
void attach_gus_db16(struct address_info * hw_config);
151
int probe_gus_db16(struct address_info *hw_config);
152
 
153
/*      From gus_wave.c */
154
int gus_wave_detect(int baseaddr);
155
void gus_wave_init(struct address_info *hw_config);
156
void gus_wave_unload (void);
157
void gus_voice_irq(void);
158
unsigned char gus_read8 (int reg);
159
void gus_write8(int reg, unsigned int data);
160
void guswave_dma_irq(void);
161
void gus_delay(void);
162
int gus_default_mixer_ioctl (int dev, unsigned int cmd, caddr_t arg);
163
void gus_timer_command (unsigned int addr, unsigned int val);
164
 
165
/*      From gus_midi.c */
166
void gus_midi_init(void);
167
void gus_midi_interrupt(int dummy);
168
 
169
/*      From mpu401.c */
170
void attach_mpu401(struct address_info * hw_config);
171
int probe_mpu401(struct address_info *hw_config);
172
void mpuintr(int irq, void *dev_id, struct pt_regs * dummy);
173
 
174
/*      From uart6850.c */
175
void attach_uart6850(struct address_info * hw_config);
176
int probe_uart6850(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, char * buf, int count);
185
int pmgr_write (int dev, struct fileinfo *file, const char * 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);
189
 
190
/*      From ics2101.c */
191
void ics2101_mixer_init(void);
192
 
193
/*      From sound_timer.c */
194
void sound_timer_interrupt(void);
195
void sound_timer_syncinterval(unsigned int new_usecs);
196
 
197
/*      From ad1848.c */
198
void ad1848_init (char *name, int io_base, int irq, int dma_playback, int dma_capture, int share_dma, int *osp);
199
void ad1848_unload (int io_base, int irq, int dma_playback, int dma_capture, int share_dma);
200
 
201
int ad1848_detect (int io_base, int *flags, int *osp);
202
#define AD_F_CS4231     0x0001  /* Returned if a CS4232 (or compatible) detected */
203
#define AD_F_CS4248     0x0001  /* Returned if a CS4248 (or compatible) detected */
204
 
205
void     ad1848_interrupt (int irq, void *dev_id, struct pt_regs * dummy);
206
void attach_ms_sound(struct address_info * hw_config);
207
int probe_ms_sound(struct address_info *hw_config);
208
void attach_pnp_ad1848(struct address_info * hw_config);
209
int probe_pnp_ad1848(struct address_info *hw_config);
210
void unload_pnp_ad1848(struct address_info *hw_info);
211
 
212
/*      From pss.c */
213
int probe_pss (struct address_info *hw_config);
214
void attach_pss (struct address_info *hw_config);
215
int probe_pss_mpu (struct address_info *hw_config);
216
void attach_pss_mpu (struct address_info *hw_config);
217
int probe_pss_mss (struct address_info *hw_config);
218
void attach_pss_mss (struct address_info *hw_config);
219
 
220
/*      From sscape.c */
221
int probe_sscape (struct address_info *hw_config);
222
void attach_sscape (struct address_info *hw_config);
223
int probe_ss_ms_sound (struct address_info *hw_config);
224
void attach_ss_ms_sound(struct address_info * hw_config);
225
 
226
int pss_read (int dev, struct fileinfo *file, char *buf, int count);
227
int pss_write (int dev, struct fileinfo *file, char *buf, int count);
228
int pss_open (int dev, struct fileinfo *file);
229
void pss_release (int dev, struct fileinfo *file);
230
int pss_ioctl (int dev, struct fileinfo *file,
231
           unsigned int cmd, caddr_t arg);
232
int pss_lseek (int dev, struct fileinfo *file, off_t offset, int orig);
233
void pss_init(void);
234
 
235
/* From aedsp16.c */
236
int InitAEDSP16_SBPRO(struct address_info *hw_config);
237
int InitAEDSP16_MSS(struct address_info *hw_config);
238
int InitAEDSP16_MPU401(struct address_info *hw_config);
239
 
240
/*      From midi_synth.c       */
241
void do_midi_msg (int synthno, unsigned char *msg, int mlen);
242
 
243
/*      From trix.c     */
244
void attach_trix_wss (struct address_info *hw_config);
245
int probe_trix_wss (struct address_info *hw_config);
246
void attach_trix_sb (struct address_info *hw_config);
247
int probe_trix_sb (struct address_info *hw_config);
248
void attach_trix_mpu (struct address_info *hw_config);
249
int probe_trix_mpu (struct address_info *hw_config);
250
 
251
/*      From mad16.c    */
252
void attach_mad16 (struct address_info *hw_config);
253
int probe_mad16 (struct address_info *hw_config);
254
void attach_mad16_mpu (struct address_info *hw_config);
255
int probe_mad16_mpu (struct address_info *hw_config);
256
int mad16_sb_dsp_detect (struct address_info *hw_config);
257
 
258
/*      Unload routines from various source files*/
259
void unload_pss(struct address_info *hw_info);
260
void unload_pss_mpu(struct address_info *hw_info);
261
void unload_pss_mss(struct address_info *hw_info);
262
void unload_mad16(struct address_info *hw_info);
263
void unload_mad16_mpu(struct address_info *hw_info);
264
void unload_adlib(struct address_info *hw_info);
265
void unload_pas(struct address_info *hw_info);
266
void unload_mpu401(struct address_info *hw_info);
267
void unload_maui(struct address_info *hw_info);
268
void unload_uart6850(struct address_info *hw_info);
269
void unload_sb(struct address_info *hw_info);
270
void unload_sb16(struct address_info *hw_info);
271
void unload_sb16midi(struct address_info *hw_info);
272
void unload_gus_db16(struct address_info *hw_info);
273
void unload_ms_sound(struct address_info *hw_info);
274
void unload_gus(struct address_info *hw_info);
275
void unload_sscape(struct address_info *hw_info);
276
void unload_ss_ms_sound(struct address_info *hw_info);
277
void unload_trix_wss(struct address_info *hw_info);
278
void unload_trix_sb(struct address_info *hw_info);
279
void unload_trix_mpu(struct address_info *hw_info);
280
void unload_cs4232(struct address_info *hw_info);
281
void unload_cs4232_mpu(struct address_info *hw_info);
282
 
283
/* From cs4232.c */
284
 
285
int probe_cs4232 (struct address_info *hw_config);
286
void attach_cs4232 (struct address_info *hw_config);
287
int probe_cs4232_mpu (struct address_info *hw_config);
288
void attach_cs4232_mpu (struct address_info *hw_config);
289
 
290
/*      From maui.c */
291
void attach_maui(struct address_info * hw_config);
292
int probe_maui(struct address_info *hw_config);
293
 
294
/*      From sound_pnp.c */
295
void sound_pnp_init(int *osp);
296
void sound_pnp_disconnect(void);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.