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

Go to the source code of this file.

Data Structures

struct  physical_voice_info
 

Macros

#define TEST_REGISTER   0x01
 
#define ENABLE_WAVE_SELECT   0x20
 
#define TIMER1_REGISTER   0x02
 
#define TIMER2_REGISTER   0x03
 
#define TIMER_CONTROL_REGISTER   0x04 /* Left side */
 
#define IRQ_RESET   0x80
 
#define TIMER1_MASK   0x40
 
#define TIMER2_MASK   0x20
 
#define TIMER1_START   0x01
 
#define TIMER2_START   0x02
 
#define CONNECTION_SELECT_REGISTER   0x04 /* Right side */
 
#define RIGHT_4OP_0   0x01
 
#define RIGHT_4OP_1   0x02
 
#define RIGHT_4OP_2   0x04
 
#define LEFT_4OP_0   0x08
 
#define LEFT_4OP_1   0x10
 
#define LEFT_4OP_2   0x20
 
#define OPL3_MODE_REGISTER   0x05 /* Right side */
 
#define OPL3_ENABLE   0x01
 
#define OPL4_ENABLE   0x02
 
#define KBD_SPLIT_REGISTER   0x08 /* Left side */
 
#define COMPOSITE_SINE_WAVE_MODE   0x80 /* Don't use with OPL-3? */
 
#define KEYBOARD_SPLIT   0x40
 
#define PERCOSSION_REGISTER   0xbd /* Left side only */
 
#define TREMOLO_DEPTH   0x80
 
#define VIBRATO_DEPTH   0x40
 
#define PERCOSSION_ENABLE   0x20
 
#define BASSDRUM_ON   0x10
 
#define SNAREDRUM_ON   0x08
 
#define TOMTOM_ON   0x04
 
#define CYMBAL_ON   0x02
 
#define HIHAT_ON   0x01
 
#define AM_VIB   0x20
 
#define TREMOLO_ON   0x80
 
#define VIBRATO_ON   0x40
 
#define SUSTAIN_ON   0x20
 
#define KSR   0x10 /* Key scaling rate */
 
#define MULTIPLE_MASK   0x0f /* Frequency multiplier */
 
#define KSL_LEVEL   0x40
 
#define KSL_MASK   0xc0 /* Envelope scaling bits */
 
#define TOTAL_LEVEL_MASK   0x3f /* Strength (volume) of OP */
 
#define ATTACK_DECAY   0x60
 
#define ATTACK_MASK   0xf0
 
#define DECAY_MASK   0x0f
 
#define SUSTAIN_RELEASE   0x80
 
#define SUSTAIN_MASK   0xf0
 
#define RELEASE_MASK   0x0f
 
#define WAVE_SELECT   0xe0
 
#define FNUM_LOW   0xa0
 
#define KEYON_BLOCK   0xb0
 
#define KEYON_BIT   0x20
 
#define BLOCKNUM_MASK   0x1c
 
#define FNUM_HIGH_MASK   0x03
 
#define FEEDBACK_CONNECTION   0xc0
 
#define FEEDBACK_MASK   0x0e /* Valid just for 1st OP of a voice */
 
#define CONNECTION_BIT   0x01
 
#define STEREO_BITS   0x30 /* OPL-3 only */
 
#define VOICE_TO_LEFT   0x10
 
#define VOICE_TO_RIGHT   0x20
 
#define USE_LEFT   0
 
#define USE_RIGHT   1
 

Macro Definition Documentation

#define AM_VIB   0x20

Definition at line 87 of file opl3_hw.h.

#define ATTACK_DECAY   0x60

Definition at line 104 of file opl3_hw.h.

#define ATTACK_MASK   0xf0

Definition at line 105 of file opl3_hw.h.

#define BASSDRUM_ON   0x10

Definition at line 75 of file opl3_hw.h.

#define BLOCKNUM_MASK   0x1c

Definition at line 133 of file opl3_hw.h.

#define COMPOSITE_SINE_WAVE_MODE   0x80 /* Don't use with OPL-3? */

Definition at line 68 of file opl3_hw.h.

#define CONNECTION_BIT   0x01

Definition at line 150 of file opl3_hw.h.

#define CONNECTION_SELECT_REGISTER   0x04 /* Right side */

Definition at line 55 of file opl3_hw.h.

#define CYMBAL_ON   0x02

Definition at line 78 of file opl3_hw.h.

#define DECAY_MASK   0x0f

Definition at line 106 of file opl3_hw.h.

#define ENABLE_WAVE_SELECT   0x20

Definition at line 44 of file opl3_hw.h.

#define FEEDBACK_CONNECTION   0xc0

Definition at line 148 of file opl3_hw.h.

#define FEEDBACK_MASK   0x0e /* Valid just for 1st OP of a voice */

Definition at line 149 of file opl3_hw.h.

#define FNUM_HIGH_MASK   0x03

Definition at line 134 of file opl3_hw.h.

#define FNUM_LOW   0xa0

Definition at line 126 of file opl3_hw.h.

#define HIHAT_ON   0x01

Definition at line 79 of file opl3_hw.h.

#define IRQ_RESET   0x80

Definition at line 49 of file opl3_hw.h.

#define KBD_SPLIT_REGISTER   0x08 /* Left side */

Definition at line 67 of file opl3_hw.h.

#define KEYBOARD_SPLIT   0x40

Definition at line 69 of file opl3_hw.h.

#define KEYON_BIT   0x20

Definition at line 132 of file opl3_hw.h.

#define KEYON_BLOCK   0xb0

Definition at line 131 of file opl3_hw.h.

#define KSL_LEVEL   0x40

Definition at line 97 of file opl3_hw.h.

#define KSL_MASK   0xc0 /* Envelope scaling bits */

Definition at line 98 of file opl3_hw.h.

#define KSR   0x10 /* Key scaling rate */

Definition at line 91 of file opl3_hw.h.

#define LEFT_4OP_0   0x08

Definition at line 59 of file opl3_hw.h.

#define LEFT_4OP_1   0x10

Definition at line 60 of file opl3_hw.h.

#define LEFT_4OP_2   0x20

Definition at line 61 of file opl3_hw.h.

#define MULTIPLE_MASK   0x0f /* Frequency multiplier */

Definition at line 92 of file opl3_hw.h.

#define OPL3_ENABLE   0x01

Definition at line 64 of file opl3_hw.h.

#define OPL3_MODE_REGISTER   0x05 /* Right side */

Definition at line 63 of file opl3_hw.h.

#define OPL4_ENABLE   0x02

Definition at line 65 of file opl3_hw.h.

#define PERCOSSION_ENABLE   0x20

Definition at line 74 of file opl3_hw.h.

#define PERCOSSION_REGISTER   0xbd /* Left side only */

Definition at line 71 of file opl3_hw.h.

#define RELEASE_MASK   0x0f

Definition at line 113 of file opl3_hw.h.

#define RIGHT_4OP_0   0x01

Definition at line 56 of file opl3_hw.h.

#define RIGHT_4OP_1   0x02

Definition at line 57 of file opl3_hw.h.

#define RIGHT_4OP_2   0x04

Definition at line 58 of file opl3_hw.h.

#define SNAREDRUM_ON   0x08

Definition at line 76 of file opl3_hw.h.

#define STEREO_BITS   0x30 /* OPL-3 only */

Definition at line 185 of file opl3_hw.h.

#define SUSTAIN_MASK   0xf0

Definition at line 112 of file opl3_hw.h.

#define SUSTAIN_ON   0x20

Definition at line 90 of file opl3_hw.h.

#define SUSTAIN_RELEASE   0x80

Definition at line 111 of file opl3_hw.h.

#define TEST_REGISTER   0x01

Definition at line 43 of file opl3_hw.h.

#define TIMER1_MASK   0x40

Definition at line 50 of file opl3_hw.h.

#define TIMER1_REGISTER   0x02

Definition at line 46 of file opl3_hw.h.

#define TIMER1_START   0x01

Definition at line 52 of file opl3_hw.h.

#define TIMER2_MASK   0x20

Definition at line 51 of file opl3_hw.h.

#define TIMER2_REGISTER   0x03

Definition at line 47 of file opl3_hw.h.

#define TIMER2_START   0x02

Definition at line 53 of file opl3_hw.h.

#define TIMER_CONTROL_REGISTER   0x04 /* Left side */

Definition at line 48 of file opl3_hw.h.

#define TOMTOM_ON   0x04

Definition at line 77 of file opl3_hw.h.

#define TOTAL_LEVEL_MASK   0x3f /* Strength (volume) of OP */

Definition at line 99 of file opl3_hw.h.

#define TREMOLO_DEPTH   0x80

Definition at line 72 of file opl3_hw.h.

#define TREMOLO_ON   0x80

Definition at line 88 of file opl3_hw.h.

#define USE_LEFT   0

Definition at line 213 of file opl3_hw.h.

#define USE_RIGHT   1

Definition at line 214 of file opl3_hw.h.

#define VIBRATO_DEPTH   0x40

Definition at line 73 of file opl3_hw.h.

#define VIBRATO_ON   0x40

Definition at line 89 of file opl3_hw.h.

#define VOICE_TO_LEFT   0x10

Definition at line 186 of file opl3_hw.h.

#define VOICE_TO_RIGHT   0x20

Definition at line 187 of file opl3_hw.h.

#define WAVE_SELECT   0xe0

Definition at line 118 of file opl3_hw.h.