|
|
1.1 root 1: /*
2: * Constants for Sound Blaster Pro
3: */
4: #ifndef __SYS_SBP_H__
5: #define __SYS_SBP_H__
6:
7: /* i/o addresses */
8: #define LEFT_FM_STATUS (SBP_BASE) /* read */
9: #define LEFT_FM_ADDR (SBP_BASE) /* write */
10: #define LEFT_FM_DATA (SBP_BASE + 1) /* write-only */
11: #define RIGHT_FM_STATUS (SBP_BASE + 2) /* read */
12: #define RIGHT_FM_ADDR (SBP_BASE + 2) /* write */
13: #define RIGHT_FM_DATA (SBP_BASE + 3) /* write-only */
14: #define MIXER_ADDR (SBP_BASE + 4) /* write-only */
15: #define MIXER_DATA (SBP_BASE + 5) /* read-write */
16: #define DSP_RESET (SBP_BASE + 6) /* write-only */
17: #define FM_STATUS (SBP_BASE + 8) /* read */
18: #define FM_ADDR (SBP_BASE + 8) /* write */
19: #define FM_DATA (SBP_BASE + 9) /* write-only */
20: #define DSP_READ_DATA (SBP_BASE + 0xA) /* read-only */
21: #define DSP_WR_DATA (SBP_BASE + 0xC) /* write */
22: #define DSP_WR_CMD (SBP_BASE + 0xC) /* write */
23: #define DSP_WBUF_STATUS (SBP_BASE + 0xC) /* read */
24: #define DSP_DATA_AVAIL (SBP_BASE + 0xE) /* read-only */
25: #define CD_DATA (SBP_BASE + 0x10) /* read */
26: #define CD_COMMAND (SBP_BASE + 0x10) /* write */
27: #define CD_STATUS (SBP_BASE + 0x11) /* read-only */
28: #define CD_RESET (SBP_BASE + 0x12) /* write-only */
29: #define CD_ENABLE (SBP_BASE + 0x13) /* write-only */
30:
31: #define DSP_RESET_LIM 100
32: #define DSP_WR_DIR 0x10
33: #define DSP_READY 0xAA
34: #define DSP_SPKR_ON 0xD1
35: #define DSP_SPKR_OFF 0xD3
36: #define DSP_GET_SPK_ST 0xD8
37: #define DSP_GET_VERSION 0xE1
38: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.