aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/au88x0/au88x0_wt.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /sound/pci/au88x0/au88x0_wt.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'sound/pci/au88x0/au88x0_wt.h')
-rw-r--r--sound/pci/au88x0/au88x0_wt.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/sound/pci/au88x0/au88x0_wt.h b/sound/pci/au88x0/au88x0_wt.h
new file mode 100644
index 000000000000..d536c88b43bf
--- /dev/null
+++ b/sound/pci/au88x0/au88x0_wt.h
@@ -0,0 +1,65 @@
1/***************************************************************************
2 * WT register offsets.
3 *
4 * Wed Oct 22 13:50:20 2003
5 * Copyright 2003 mjander
6 * mjander@users.sourceforge.org
7 ****************************************************************************/
8#ifndef _AU88X0_WT_H
9#define _AU88X0_WT_H
10
11/* WT channels are grouped in banks. Each bank has 0x20 channels. */
12/* Bank register address boundary is 0x8000 */
13
14#define NR_WT_PB 0x20
15
16/* WT bank base register (as dword address). */
17#define WT_BAR(x) (((x)&0xffe0)<<0x8)
18#define WT_BANK(x) (x>>5)
19/* WT Bank registers */
20#define WT_CTRL(bank) (((((bank)&1)<<0xd) + 0x00)<<2) /* 0x0000 */
21#define WT_SRAMP(bank) (((((bank)&1)<<0xd) + 0x01)<<2) /* 0x0004 */
22#define WT_DSREG(bank) (((((bank)&1)<<0xd) + 0x02)<<2) /* 0x0008 */
23#define WT_MRAMP(bank) (((((bank)&1)<<0xd) + 0x03)<<2) /* 0x000c */
24#define WT_GMODE(bank) (((((bank)&1)<<0xd) + 0x04)<<2) /* 0x0010 */
25#define WT_ARAMP(bank) (((((bank)&1)<<0xd) + 0x05)<<2) /* 0x0014 */
26/* WT Voice registers */
27#define WT_STEREO(voice) ((WT_BAR(voice)+ 0x20 +(((voice)&0x1f)>>1))<<2) /* 0x0080 */
28#define WT_MUTE(voice) ((WT_BAR(voice)+ 0x40 +((voice)&0x1f))<<2) /* 0x0100 */
29#define WT_RUN(voice) ((WT_BAR(voice)+ 0x60 +((voice)&0x1f))<<2) /* 0x0180 */
30/* Some kind of parameters. */
31/* PARM0, PARM1 : Filter (0xFF000000), SampleRate (0x0000FFFF) */
32/* PARM2, PARM3 : Still unknown */
33#define WT_PARM(x,y) (((WT_BAR(x))+ 0x80 +(((x)&0x1f)<<2)+(y))<<2) /* 0x0200 */
34#define WT_DELAY(x,y) (((WT_BAR(x))+ 0x100 +(((x)&0x1f)<<2)+(y))<<2) /* 0x0400 */
35
36/* Numeric indexes used by SetReg() and GetReg() */
37#if 0
38enum {
39 run = 0, /* 0 W 1:run 0:stop */
40 parm0, /* 1 W filter, samplerate */
41 parm1, /* 2 W filter, samplerate */
42 parm2, /* 3 W */
43 parm3, /* 4 RW volume. This value is calculated using floating point ops. */
44 sramp, /* 5 W */
45 mute, /* 6 W 1:mute, 0:unmute */
46 gmode, /* 7 RO Looks like only bit0 is used. */
47 aramp, /* 8 W */
48 mramp, /* 9 W */
49 ctrl, /* a W */
50 delay, /* b W All 4 values are written at once with same value. */
51 dsreg, /* c (R)W */
52} wt_reg;
53#endif
54
55typedef struct {
56 unsigned int parm0; /* this_1E4 */
57 unsigned int parm1; /* this_1E8 */
58 unsigned int parm2; /* this_1EC */
59 unsigned int parm3; /* this_1F0 */
60 unsigned int this_1D0;
61} wt_voice_t;
62
63#endif /* _AU88X0_WT_H */
64
65/* End of file */