Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
au88x0_wt.h File Reference

Go to the source code of this file.

Data Structures

struct  wt_voice_t
 

Macros

#define NR_WT_PB   0x20
 
#define WT_BAR(x)   (((x)&0xffe0)<<0x8)
 
#define WT_BANK(x)   (x>>5)
 
#define WT_CTRL(bank)   (((((bank)&1)<<0xd) + 0x00)<<2) /* 0x0000 */
 
#define WT_SRAMP(bank)   (((((bank)&1)<<0xd) + 0x01)<<2) /* 0x0004 */
 
#define WT_DSREG(bank)   (((((bank)&1)<<0xd) + 0x02)<<2) /* 0x0008 */
 
#define WT_MRAMP(bank)   (((((bank)&1)<<0xd) + 0x03)<<2) /* 0x000c */
 
#define WT_GMODE(bank)   (((((bank)&1)<<0xd) + 0x04)<<2) /* 0x0010 */
 
#define WT_ARAMP(bank)   (((((bank)&1)<<0xd) + 0x05)<<2) /* 0x0014 */
 
#define WT_STEREO(voice)   ((WT_BAR(voice)+ 0x20 +(((voice)&0x1f)>>1))<<2) /* 0x0080 */
 
#define WT_MUTE(voice)   ((WT_BAR(voice)+ 0x40 +((voice)&0x1f))<<2) /* 0x0100 */
 
#define WT_RUN(voice)   ((WT_BAR(voice)+ 0x60 +((voice)&0x1f))<<2) /* 0x0180 */
 
#define WT_PARM(x, y)   (((WT_BAR(x))+ 0x80 +(((x)&0x1f)<<2)+(y))<<2) /* 0x0200 */
 
#define WT_DELAY(x, y)   (((WT_BAR(x))+ 0x100 +(((x)&0x1f)<<2)+(y))<<2) /* 0x0400 */
 

Macro Definition Documentation

#define NR_WT_PB   0x20

Definition at line 14 of file au88x0_wt.h.

#define WT_ARAMP (   bank)    (((((bank)&1)<<0xd) + 0x05)<<2) /* 0x0014 */

Definition at line 25 of file au88x0_wt.h.

#define WT_BANK (   x)    (x>>5)

Definition at line 18 of file au88x0_wt.h.

#define WT_BAR (   x)    (((x)&0xffe0)<<0x8)

Definition at line 17 of file au88x0_wt.h.

#define WT_CTRL (   bank)    (((((bank)&1)<<0xd) + 0x00)<<2) /* 0x0000 */

Definition at line 20 of file au88x0_wt.h.

#define WT_DELAY (   x,
  y 
)    (((WT_BAR(x))+ 0x100 +(((x)&0x1f)<<2)+(y))<<2) /* 0x0400 */

Definition at line 34 of file au88x0_wt.h.

#define WT_DSREG (   bank)    (((((bank)&1)<<0xd) + 0x02)<<2) /* 0x0008 */

Definition at line 22 of file au88x0_wt.h.

#define WT_GMODE (   bank)    (((((bank)&1)<<0xd) + 0x04)<<2) /* 0x0010 */

Definition at line 24 of file au88x0_wt.h.

#define WT_MRAMP (   bank)    (((((bank)&1)<<0xd) + 0x03)<<2) /* 0x000c */

Definition at line 23 of file au88x0_wt.h.

#define WT_MUTE (   voice)    ((WT_BAR(voice)+ 0x40 +((voice)&0x1f))<<2) /* 0x0100 */

Definition at line 28 of file au88x0_wt.h.

#define WT_PARM (   x,
  y 
)    (((WT_BAR(x))+ 0x80 +(((x)&0x1f)<<2)+(y))<<2) /* 0x0200 */

Definition at line 33 of file au88x0_wt.h.

#define WT_RUN (   voice)    ((WT_BAR(voice)+ 0x60 +((voice)&0x1f))<<2) /* 0x0180 */

Definition at line 29 of file au88x0_wt.h.

#define WT_SRAMP (   bank)    (((((bank)&1)<<0xd) + 0x01)<<2) /* 0x0004 */

Definition at line 21 of file au88x0_wt.h.

#define WT_STEREO (   voice)    ((WT_BAR(voice)+ 0x20 +(((voice)&0x1f)>>1))<<2) /* 0x0080 */

Definition at line 27 of file au88x0_wt.h.