Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pj | 1 | /* DSP Registers */ |
2 | #define RESET 0x06 |
||
3 | #define READDATA 0x0A |
||
4 | #define WRITEBUFFERSTATUS 0x0C |
||
5 | #define DATAAVAILABLE 0x0E |
||
6 | #define ACK8 0x0E |
||
7 | #define ACK16 0x0F |
||
8 | |||
9 | /* DSP Commands */ |
||
10 | #define DSPCMD_DIRECTOUT 0x10 |
||
11 | #define DSPCMD_DIRECTIN 0x20 |
||
12 | #define DSPCMD_SETOUTRATE 0x41 |
||
13 | #define DSPCMD_SETINRATE 0x42 |
||
14 | #define DSPCMD_16BITIO 0xb0 |
||
15 | #define DSPCMD_8BITIO 0xC0 |
||
16 | #define SBIO_FIFOON 0x02 |
||
17 | #define SBIO_AUTOINIT 0x04 |
||
18 | #define SBIO_OUT 0x00 |
||
19 | #define SBIO_IN 0x08 |
||
20 | #define IOMODE_UNSIGNED 0x00 |
||
21 | #define IOMODE_SIGNED 0x10 |
||
22 | #define IOMODE_MONO 0x00 |
||
23 | #define IOMODE_STEREO 0x20 |
||
24 | #define DSPCMD_GETVER 0xE1 |
||
25 | #define DSPCMD_SPKON 0xD1 |
||
26 | #define DSPCMD_SPKOFF 0xD3 |
||
27 | #define DSPCMD_EXIT8 0xDA |
||
28 | #define DSPCMD_EXIT16 0xD9 |
||
29 | |||
30 | /* Mixer I/O registers */ |
||
31 | #define MIXERREGISTER 0x04 |
||
32 | #define MIXERDATA 0x05 |
||
33 | |||
34 | /* Mixer Registers */ |
||
35 | #define MIXER_RESET 0x00 |
||
36 | #define MIXER_OUTCTR 0x3c |
||
37 | #define MIXER_INCTRLEFT 0x3d |
||
38 | #define MIXER_INCTRRIGHT 0x3e |
||
39 | #define MIXER_MICLEV 0x3a |
||
40 | #define MIXER_AGC 0x43 |
||
41 | #define MIXER_IGCLEFT 0x3F |
||
42 | #define MIXER_IGCRIGHT 0x40 |
||
43 | |||
44 | #define MIXER_IRQREG 0x80 |
||
45 | #define MIXER_DMAREG 0x81 |
||
46 | #define MIXER_INTSTATUS 0x82 |
||
47 | |||
48 | WORD sb_probe (void); |
||
49 | BYTE sbdsp_read (WORD base); |
||
50 | void sbdsp_write (WORD base, BYTE c ); |
||
51 | BYTE sbmixer_read(WORD base, BYTE index); |
||
52 | void sbmixer_write(WORD base, BYTE index, BYTE c); |
||
53 | BYTE sbdsp_reset(WORD base); |
||
54 | |||
55 | /* OKKIO!!!! vanno tolti da qui!!!! */ |
||
56 | BYTE inpb(WORD addr); |
||
57 | void outpb(WORD addr, BYTE val); |
||
58 |