~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/pci/au88x0/au88x0_wt.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /sound/pci/au88x0/au88x0_wt.h (Architecture i386) and /sound/pci/au88x0/au88x0_wt.h (Architecture mips)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*********************************************      2 /***************************************************************************
  3  *           WT register offsets.                   3  *           WT register offsets.
  4  *                                                  4  *
  5  *  Wed Oct 22 13:50:20 2003                        5  *  Wed Oct 22 13:50:20 2003
  6  *  Copyright  2003  mjander                        6  *  Copyright  2003  mjander
  7  *  mjander@users.sourceforge.org                   7  *  mjander@users.sourceforge.org
  8  *********************************************      8  ****************************************************************************/
  9 #ifndef _AU88X0_WT_H                                9 #ifndef _AU88X0_WT_H
 10 #define _AU88X0_WT_H                               10 #define _AU88X0_WT_H
 11                                                    11 
 12 /* WT channels are grouped in banks. Each bank     12 /* WT channels are grouped in banks. Each bank has 0x20 channels. */
 13 /* Bank register address boundary is 0x8000 */     13 /* Bank register address boundary is 0x8000 */
 14                                                    14 
 15 #define NR_WT_PB 0x20                              15 #define NR_WT_PB 0x20
 16                                                    16 
 17 /* WT bank base register (as dword address). *     17 /* WT bank base register (as dword address). */
 18 #define WT_BAR(x) (((x)&0xffe0)<<0x8)              18 #define WT_BAR(x) (((x)&0xffe0)<<0x8)
 19 #define WT_BANK(x) (x>>5)                          19 #define WT_BANK(x) (x>>5)
 20 /* WT Bank registers */                            20 /* WT Bank registers */
 21 #define WT_CTRL(bank)   (((((bank)&1)<<0xd) +      21 #define WT_CTRL(bank)   (((((bank)&1)<<0xd) + 0x00)<<2) /* 0x0000 */
 22 #define WT_SRAMP(bank)  (((((bank)&1)<<0xd) +      22 #define WT_SRAMP(bank)  (((((bank)&1)<<0xd) + 0x01)<<2) /* 0x0004 */
 23 #define WT_DSREG(bank)  (((((bank)&1)<<0xd) +      23 #define WT_DSREG(bank)  (((((bank)&1)<<0xd) + 0x02)<<2) /* 0x0008 */
 24 #define WT_MRAMP(bank)  (((((bank)&1)<<0xd) +      24 #define WT_MRAMP(bank)  (((((bank)&1)<<0xd) + 0x03)<<2) /* 0x000c */
 25 #define WT_GMODE(bank)  (((((bank)&1)<<0xd) +      25 #define WT_GMODE(bank)  (((((bank)&1)<<0xd) + 0x04)<<2) /* 0x0010 */
 26 #define WT_ARAMP(bank)  (((((bank)&1)<<0xd) +      26 #define WT_ARAMP(bank)  (((((bank)&1)<<0xd) + 0x05)<<2) /* 0x0014 */
 27 /* WT Voice registers */                           27 /* WT Voice registers */
 28 #define WT_STEREO(voice)        ((WT_BAR(voice     28 #define WT_STEREO(voice)        ((WT_BAR(voice)+ 0x20 +(((voice)&0x1f)>>1))<<2) /* 0x0080 */
 29 #define WT_MUTE(voice)          ((WT_BAR(voice     29 #define WT_MUTE(voice)          ((WT_BAR(voice)+ 0x40 +((voice)&0x1f))<<2)      /* 0x0100 */
 30 #define WT_RUN(voice)           ((WT_BAR(voice     30 #define WT_RUN(voice)           ((WT_BAR(voice)+ 0x60 +((voice)&0x1f))<<2)      /* 0x0180 */
 31 /* Some kind of parameters. */                     31 /* Some kind of parameters. */
 32 /* PARM0, PARM1 : Filter (0xFF000000), SampleR     32 /* PARM0, PARM1 : Filter (0xFF000000), SampleRate (0x0000FFFF) */
 33 /* PARM2, PARM3 : Still unknown */                 33 /* PARM2, PARM3 : Still unknown */
 34 #define WT_PARM(x,y)    (((WT_BAR(x))+ 0x80 +(     34 #define WT_PARM(x,y)    (((WT_BAR(x))+ 0x80 +(((x)&0x1f)<<2)+(y))<<2)   /* 0x0200 */
 35 #define WT_DELAY(x,y)   (((WT_BAR(x))+ 0x100 +     35 #define WT_DELAY(x,y)   (((WT_BAR(x))+ 0x100 +(((x)&0x1f)<<2)+(y))<<2)  /* 0x0400 */
 36                                                    36 
 37 /* Numeric indexes used by SetReg() and GetReg     37 /* Numeric indexes used by SetReg() and GetReg() */
 38 #if 0                                              38 #if 0
 39 enum {                                             39 enum {
 40         run = 0,                /* 0  W 1:run      40         run = 0,                /* 0  W 1:run 0:stop */
 41         parm0,                  /* 1  W filter     41         parm0,                  /* 1  W filter, samplerate */
 42         parm1,                  /* 2  W filter     42         parm1,                  /* 2  W filter, samplerate */
 43         parm2,                  /* 3  W  */        43         parm2,                  /* 3  W  */
 44         parm3,                  /* 4  RW volum     44         parm3,                  /* 4  RW volume. This value is calculated using floating point ops. */
 45         sramp,                  /* 5  W */         45         sramp,                  /* 5  W */
 46         mute,                   /* 6  W 1:mute     46         mute,                   /* 6  W 1:mute, 0:unmute */
 47         gmode,                  /* 7  RO Looks     47         gmode,                  /* 7  RO Looks like only bit0 is used. */
 48         aramp,                  /* 8  W */         48         aramp,                  /* 8  W */
 49         mramp,                  /* 9  W */         49         mramp,                  /* 9  W */
 50         ctrl,                   /* a  W */         50         ctrl,                   /* a  W */
 51         delay,                  /* b  W All 4      51         delay,                  /* b  W All 4 values are written at once with same value. */
 52         dsreg,                  /* c  (R)W */      52         dsreg,                  /* c  (R)W */
 53 } wt_reg;                                          53 } wt_reg;
 54 #endif                                             54 #endif
 55                                                    55 
 56 typedef struct {                                   56 typedef struct {
 57         u32 parm0;      /* this_1E4 */             57         u32 parm0;      /* this_1E4 */
 58         u32 parm1;      /* this_1E8 */             58         u32 parm1;      /* this_1E8 */
 59         u32 parm2;      /* this_1EC */             59         u32 parm2;      /* this_1EC */
 60         u32 parm3;      /* this_1F0 */             60         u32 parm3;      /* this_1F0 */
 61         u32 this_1D0;                              61         u32 this_1D0;
 62 } wt_voice_t;                                      62 } wt_voice_t;
 63                                                    63 
 64 #endif                          /* _AU88X0_WT_     64 #endif                          /* _AU88X0_WT_H */
 65                                                    65 
 66 /* End of file */                                  66 /* End of file */
 67                                                    67 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php