Go to the documentation of this file.
31 #define VERSION "0.8.3.1"
33 #define DEFSAMPLERATE DSP_DEFAULT_SPEED
34 #define DEFSAMPLESIZE AFMT_U8
37 #define DEFFIFOSIZE 128
39 #define SNDCARD_MSND 38
41 #define SRAM_BANK_SIZE 0x8000
42 #define SRAM_CNTL_START 0x7F00
44 #define DSP_BASE_ADDR 0x4000
45 #define DSP_BANK_BASE 0x4000
60 #define HP_ICR_DEF 0x00
61 #define HP_CVR_DEF 0x12
62 #define HP_ISR_DEF 0x06
63 #define HP_IVR_DEF 0x0f
64 #define HP_NU_DEF 0x00
77 #define HPICR_INIT 0x80
78 #define HPICR_HM1 0x40
79 #define HPICR_HM0 0x20
80 #define HPICR_HF1 0x10
81 #define HPICR_HF0 0x08
82 #define HPICR_TREQ 0x02
83 #define HPICR_RREQ 0x01
87 #define HPISR_HREQ 0x80
88 #define HPISR_DMA 0x40
89 #define HPISR_HF3 0x10
90 #define HPISR_HF2 0x08
91 #define HPISR_TRDY 0x04
92 #define HPISR_TXDE 0x02
93 #define HPISR_RXDF 0x01
122 #define HIMT_PLAY_DONE 0x00
123 #define HIMT_RECORD_DONE 0x01
124 #define HIMT_MIDI_EOS 0x02
125 #define HIMT_MIDI_OUT 0x03
127 #define HIMT_MIDI_IN_UCHAR 0x0E
128 #define HIMT_DSP 0x0F
130 #define HDEX_BASE 0x92
131 #define HDEX_PLAY_START (0 + HDEX_BASE)
132 #define HDEX_PLAY_STOP (1 + HDEX_BASE)
133 #define HDEX_PLAY_PAUSE (2 + HDEX_BASE)
134 #define HDEX_PLAY_RESUME (3 + HDEX_BASE)
135 #define HDEX_RECORD_START (4 + HDEX_BASE)
136 #define HDEX_RECORD_STOP (5 + HDEX_BASE)
137 #define HDEX_MIDI_IN_START (6 + HDEX_BASE)
138 #define HDEX_MIDI_IN_STOP (7 + HDEX_BASE)
139 #define HDEX_MIDI_OUT_START (8 + HDEX_BASE)
140 #define HDEX_MIDI_OUT_STOP (9 + HDEX_BASE)
141 #define HDEX_AUX_REQ (10 + HDEX_BASE)
143 #define HIWORD(l) ((WORD)((((DWORD)(l)) >> 16) & 0xFFFF))
144 #define LOWORD(l) ((WORD)(DWORD)(l))
145 #define HIBYTE(w) ((BYTE)(((WORD)(w) >> 8) & 0xFF))
146 #define LOBYTE(w) ((BYTE)(w))
147 #define MAKELONG(low,hi) ((long)(((WORD)(low))|(((DWORD)((WORD)(hi)))<<16)))
148 #define MAKEWORD(low,hi) ((WORD)(((BYTE)(low))|(((WORD)((BYTE)(hi)))<<8)))
150 #define PCTODSP_OFFSET(w) (USHORT)((w)/2)
151 #define PCTODSP_BASED(w) (USHORT)(((w)/2) + DSP_BASE_ADDR)
152 #define DSPTOPC_BASED(w) (((w) - DSP_BASE_ADDR) * 2)
155 #define msnd_outb outb_p
156 #define msnd_inb inb_p
158 #define msnd_outb outb
163 #define JQS_wStart 0x00
164 #define JQS_wSize 0x02
165 #define JQS_wHead 0x04
166 #define JQS_wTail 0x06
167 #define JQS__size 0x08
170 #define DAQDS_wStart 0x00
171 #define DAQDS_wSize 0x02
172 #define DAQDS_wFormat 0x04
173 #define DAQDS_wSampleSize 0x06
174 #define DAQDS_wChannels 0x08
175 #define DAQDS_wSampleRate 0x0A
176 #define DAQDS_wIntMsg 0x0C
177 #define DAQDS_wFlags 0x0E
178 #define DAQDS__size 0x10
216 #define F_RESETTING 0
217 #define F_HAVEDIGITAL 1
218 #define F_AUDIO_WRITE_INUSE 2
220 #define F_WRITEBLOCK 4
221 #define F_WRITEFLUSH 5
222 #define F_AUDIO_READ_INUSE 6
224 #define F_READBLOCK 8
225 #define F_EXT_MIDI_INUSE 9
226 #define F_HDR_MIDI_INUSE 10
227 #define F_DISABLE_WRITE_NDELAY 11
254 # define mdelay(a) udelay((a) * 1000)
273 unsigned char mid,
unsigned char low);