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

Go to the source code of this file.

Data Structures

struct  mc44s803_priv
 

Macros

#define MC44S803_OSC   26000000 /* 26 MHz */
 
#define MC44S803_IF1   1086000000 /* 1086 MHz */
 
#define MC44S803_IF2   36125000 /* 36.125 MHz */
 
#define MC44S803_REG_POWER   0
 
#define MC44S803_REG_REFOSC   1
 
#define MC44S803_REG_REFDIV   2
 
#define MC44S803_REG_MIXER   3
 
#define MC44S803_REG_RESET   4
 
#define MC44S803_REG_LO1   5
 
#define MC44S803_REG_LO2   6
 
#define MC44S803_REG_CIRCADJ   7
 
#define MC44S803_REG_TEST   8
 
#define MC44S803_REG_DIGTUNE   9
 
#define MC44S803_REG_LNAAGC   0x0A
 
#define MC44S803_REG_DATAREG   0x0B
 
#define MC44S803_REG_REGTEST   0x0C
 
#define MC44S803_REG_VCOTEST   0x0D
 
#define MC44S803_REG_LNAGAIN   0x0E
 
#define MC44S803_REG_ID   0x0F
 
#define MC44S803_ADDR   0x0F
 
#define MC44S803_ADDR_S   0
 
#define MC44S803_POWER   0xFFFFF0
 
#define MC44S803_POWER_S   4
 
#define MC44S803_REFOSC   0x1FF0
 
#define MC44S803_REFOSC_S   4
 
#define MC44S803_OSCSEL   0x2000
 
#define MC44S803_OSCSEL_S   13
 
#define MC44S803_R2   0x1FF0
 
#define MC44S803_R2_S   4
 
#define MC44S803_REFBUF_EN   0x2000
 
#define MC44S803_REFBUF_EN_S   13
 
#define MC44S803_R1   0x7C000
 
#define MC44S803_R1_S   14
 
#define MC44S803_R3   0x70
 
#define MC44S803_R3_S   4
 
#define MC44S803_MUX3   0x80
 
#define MC44S803_MUX3_S   7
 
#define MC44S803_MUX4   0x100
 
#define MC44S803_MUX4_S   8
 
#define MC44S803_OSC_SCR   0x200
 
#define MC44S803_OSC_SCR_S   9
 
#define MC44S803_TRI_STATE   0x400
 
#define MC44S803_TRI_STATE_S   10
 
#define MC44S803_BUF_GAIN   0x800
 
#define MC44S803_BUF_GAIN_S   11
 
#define MC44S803_BUF_IO   0x1000
 
#define MC44S803_BUF_IO_S   12
 
#define MC44S803_MIXER_RES   0xFE000
 
#define MC44S803_MIXER_RES_S   13
 
#define MC44S803_RS   0x10
 
#define MC44S803_RS_S   4
 
#define MC44S803_SO   0x20
 
#define MC44S803_SO_S   5
 
#define MC44S803_LO1   0xFFF0
 
#define MC44S803_LO1_S   4
 
#define MC44S803_LO2   0x7FFF0
 
#define MC44S803_LO2_S   4
 
#define MC44S803_G1   0x20
 
#define MC44S803_G1_S   5
 
#define MC44S803_G3   0x80
 
#define MC44S803_G3_S   7
 
#define MC44S803_CIRCADJ_RES   0x300
 
#define MC44S803_CIRCADJ_RES_S   8
 
#define MC44S803_G6   0x400
 
#define MC44S803_G6_S   10
 
#define MC44S803_G7   0x800
 
#define MC44S803_G7_S   11
 
#define MC44S803_S1   0x1000
 
#define MC44S803_S1_S   12
 
#define MC44S803_LP   0x7E000
 
#define MC44S803_LP_S   13
 
#define MC44S803_CLRF   0x80000
 
#define MC44S803_CLRF_S   19
 
#define MC44S803_CLIF   0x100000
 
#define MC44S803_CLIF_S   20
 
#define MC44S803_DA   0xF0
 
#define MC44S803_DA_S   4
 
#define MC44S803_XOD   0x300
 
#define MC44S803_XOD_S   8
 
#define MC44S803_RST   0x10000
 
#define MC44S803_RST_S   16
 
#define MC44S803_LO_REF   0x1FFF00
 
#define MC44S803_LO_REF_S   8
 
#define MC44S803_AT   0x200000
 
#define MC44S803_AT_S   21
 
#define MC44S803_MT   0x400000
 
#define MC44S803_MT_S   22
 
#define MC44S803_G   0x3F0
 
#define MC44S803_G_S   4
 
#define MC44S803_AT1   0x400
 
#define MC44S803_AT1_S   10
 
#define MC44S803_AT2   0x800
 
#define MC44S803_AT2_S   11
 
#define MC44S803_HL_GR_EN   0x8000
 
#define MC44S803_HL_GR_EN_S   15
 
#define MC44S803_AGC_AN_DIG   0x10000
 
#define MC44S803_AGC_AN_DIG_S   16
 
#define MC44S803_ATTEN_EN   0x20000
 
#define MC44S803_ATTEN_EN_S   17
 
#define MC44S803_AGC_READ_EN   0x40000
 
#define MC44S803_AGC_READ_EN_S   18
 
#define MC44S803_LNA0   0x80000
 
#define MC44S803_LNA0_S   19
 
#define MC44S803_AGC_SEL   0x100000
 
#define MC44S803_AGC_SEL_S   20
 
#define MC44S803_AT0   0x200000
 
#define MC44S803_AT0_S   21
 
#define MC44S803_B   0xC00000
 
#define MC44S803_B_S   22
 
#define MC44S803_D   0xF0
 
#define MC44S803_D_S   4
 
#define MC44S803_IF_PWR   0x700
 
#define MC44S803_IF_PWR_S   8
 
#define MC44S803_RF_PWR   0x3800
 
#define MC44S803_RF_PWR_S   11
 
#define MC44S803_LNA_GAIN   0xFC000
 
#define MC44S803_LNA_GAIN_S   14
 
#define MC44S803_ID   0x3E00
 
#define MC44S803_ID_S   9
 
#define MC44S803_REG_SM(_val, _reg)   (((_val) << _reg##_S) & (_reg))
 
#define MC44S803_REG_MS(_val, _reg)   (((_val) & (_reg)) >> _reg##_S)
 

Macro Definition Documentation

#define MC44S803_ADDR   0x0F

Definition at line 73 of file mc44s803_priv.h.

#define MC44S803_ADDR_S   0

Definition at line 74 of file mc44s803_priv.h.

#define MC44S803_AGC_AN_DIG   0x10000

Definition at line 160 of file mc44s803_priv.h.

#define MC44S803_AGC_AN_DIG_S   16

Definition at line 161 of file mc44s803_priv.h.

#define MC44S803_AGC_READ_EN   0x40000

Definition at line 164 of file mc44s803_priv.h.

#define MC44S803_AGC_READ_EN_S   18

Definition at line 165 of file mc44s803_priv.h.

#define MC44S803_AGC_SEL   0x100000

Definition at line 168 of file mc44s803_priv.h.

#define MC44S803_AGC_SEL_S   20

Definition at line 169 of file mc44s803_priv.h.

#define MC44S803_AT   0x200000

Definition at line 147 of file mc44s803_priv.h.

#define MC44S803_AT0   0x200000

Definition at line 170 of file mc44s803_priv.h.

#define MC44S803_AT0_S   21

Definition at line 171 of file mc44s803_priv.h.

#define MC44S803_AT1   0x400

Definition at line 154 of file mc44s803_priv.h.

#define MC44S803_AT1_S   10

Definition at line 155 of file mc44s803_priv.h.

#define MC44S803_AT2   0x800

Definition at line 156 of file mc44s803_priv.h.

#define MC44S803_AT2_S   11

Definition at line 157 of file mc44s803_priv.h.

#define MC44S803_AT_S   21

Definition at line 148 of file mc44s803_priv.h.

#define MC44S803_ATTEN_EN   0x20000

Definition at line 162 of file mc44s803_priv.h.

#define MC44S803_ATTEN_EN_S   17

Definition at line 163 of file mc44s803_priv.h.

#define MC44S803_B   0xC00000

Definition at line 172 of file mc44s803_priv.h.

#define MC44S803_B_S   22

Definition at line 173 of file mc44s803_priv.h.

#define MC44S803_BUF_GAIN   0x800

Definition at line 101 of file mc44s803_priv.h.

#define MC44S803_BUF_GAIN_S   11

Definition at line 102 of file mc44s803_priv.h.

#define MC44S803_BUF_IO   0x1000

Definition at line 103 of file mc44s803_priv.h.

#define MC44S803_BUF_IO_S   12

Definition at line 104 of file mc44s803_priv.h.

#define MC44S803_CIRCADJ_RES   0x300

Definition at line 123 of file mc44s803_priv.h.

#define MC44S803_CIRCADJ_RES_S   8

Definition at line 124 of file mc44s803_priv.h.

#define MC44S803_CLIF   0x100000

Definition at line 135 of file mc44s803_priv.h.

#define MC44S803_CLIF_S   20

Definition at line 136 of file mc44s803_priv.h.

#define MC44S803_CLRF   0x80000

Definition at line 133 of file mc44s803_priv.h.

#define MC44S803_CLRF_S   19

Definition at line 134 of file mc44s803_priv.h.

#define MC44S803_D   0xF0

Definition at line 175 of file mc44s803_priv.h.

#define MC44S803_D_S   4

Definition at line 176 of file mc44s803_priv.h.

#define MC44S803_DA   0xF0

Definition at line 139 of file mc44s803_priv.h.

#define MC44S803_DA_S   4

Definition at line 140 of file mc44s803_priv.h.

#define MC44S803_G   0x3F0

Definition at line 152 of file mc44s803_priv.h.

#define MC44S803_G1   0x20

Definition at line 119 of file mc44s803_priv.h.

#define MC44S803_G1_S   5

Definition at line 120 of file mc44s803_priv.h.

#define MC44S803_G3   0x80

Definition at line 121 of file mc44s803_priv.h.

#define MC44S803_G3_S   7

Definition at line 122 of file mc44s803_priv.h.

#define MC44S803_G6   0x400

Definition at line 125 of file mc44s803_priv.h.

#define MC44S803_G6_S   10

Definition at line 126 of file mc44s803_priv.h.

#define MC44S803_G7   0x800

Definition at line 127 of file mc44s803_priv.h.

#define MC44S803_G7_S   11

Definition at line 128 of file mc44s803_priv.h.

#define MC44S803_G_S   4

Definition at line 153 of file mc44s803_priv.h.

#define MC44S803_HL_GR_EN   0x8000

Definition at line 158 of file mc44s803_priv.h.

#define MC44S803_HL_GR_EN_S   15

Definition at line 159 of file mc44s803_priv.h.

#define MC44S803_ID   0x3E00

Definition at line 187 of file mc44s803_priv.h.

#define MC44S803_ID_S   9

Definition at line 188 of file mc44s803_priv.h.

#define MC44S803_IF1   1086000000 /* 1086 MHz */

Definition at line 52 of file mc44s803_priv.h.

#define MC44S803_IF2   36125000 /* 36.125 MHz */

Definition at line 53 of file mc44s803_priv.h.

#define MC44S803_IF_PWR   0x700

Definition at line 180 of file mc44s803_priv.h.

#define MC44S803_IF_PWR_S   8

Definition at line 181 of file mc44s803_priv.h.

#define MC44S803_LNA0   0x80000

Definition at line 166 of file mc44s803_priv.h.

#define MC44S803_LNA0_S   19

Definition at line 167 of file mc44s803_priv.h.

#define MC44S803_LNA_GAIN   0xFC000

Definition at line 184 of file mc44s803_priv.h.

#define MC44S803_LNA_GAIN_S   14

Definition at line 185 of file mc44s803_priv.h.

#define MC44S803_LO1   0xFFF0

Definition at line 113 of file mc44s803_priv.h.

#define MC44S803_LO1_S   4

Definition at line 114 of file mc44s803_priv.h.

#define MC44S803_LO2   0x7FFF0

Definition at line 116 of file mc44s803_priv.h.

#define MC44S803_LO2_S   4

Definition at line 117 of file mc44s803_priv.h.

#define MC44S803_LO_REF   0x1FFF00

Definition at line 145 of file mc44s803_priv.h.

#define MC44S803_LO_REF_S   8

Definition at line 146 of file mc44s803_priv.h.

#define MC44S803_LP   0x7E000

Definition at line 131 of file mc44s803_priv.h.

#define MC44S803_LP_S   13

Definition at line 132 of file mc44s803_priv.h.

#define MC44S803_MIXER_RES   0xFE000

Definition at line 105 of file mc44s803_priv.h.

#define MC44S803_MIXER_RES_S   13

Definition at line 106 of file mc44s803_priv.h.

#define MC44S803_MT   0x400000

Definition at line 149 of file mc44s803_priv.h.

#define MC44S803_MT_S   22

Definition at line 150 of file mc44s803_priv.h.

#define MC44S803_MUX3   0x80

Definition at line 93 of file mc44s803_priv.h.

#define MC44S803_MUX3_S   7

Definition at line 94 of file mc44s803_priv.h.

#define MC44S803_MUX4   0x100

Definition at line 95 of file mc44s803_priv.h.

#define MC44S803_MUX4_S   8

Definition at line 96 of file mc44s803_priv.h.

#define MC44S803_OSC   26000000 /* 26 MHz */

Definition at line 51 of file mc44s803_priv.h.

#define MC44S803_OSC_SCR   0x200

Definition at line 97 of file mc44s803_priv.h.

#define MC44S803_OSC_SCR_S   9

Definition at line 98 of file mc44s803_priv.h.

#define MC44S803_OSCSEL   0x2000

Definition at line 81 of file mc44s803_priv.h.

#define MC44S803_OSCSEL_S   13

Definition at line 82 of file mc44s803_priv.h.

#define MC44S803_POWER   0xFFFFF0

Definition at line 76 of file mc44s803_priv.h.

#define MC44S803_POWER_S   4

Definition at line 77 of file mc44s803_priv.h.

#define MC44S803_R1   0x7C000

Definition at line 88 of file mc44s803_priv.h.

#define MC44S803_R1_S   14

Definition at line 89 of file mc44s803_priv.h.

#define MC44S803_R2   0x1FF0

Definition at line 84 of file mc44s803_priv.h.

#define MC44S803_R2_S   4

Definition at line 85 of file mc44s803_priv.h.

#define MC44S803_R3   0x70

Definition at line 91 of file mc44s803_priv.h.

#define MC44S803_R3_S   4

Definition at line 92 of file mc44s803_priv.h.

#define MC44S803_REFBUF_EN   0x2000

Definition at line 86 of file mc44s803_priv.h.

#define MC44S803_REFBUF_EN_S   13

Definition at line 87 of file mc44s803_priv.h.

#define MC44S803_REFOSC   0x1FF0

Definition at line 79 of file mc44s803_priv.h.

#define MC44S803_REFOSC_S   4

Definition at line 80 of file mc44s803_priv.h.

#define MC44S803_REG_CIRCADJ   7

Definition at line 62 of file mc44s803_priv.h.

#define MC44S803_REG_DATAREG   0x0B

Definition at line 66 of file mc44s803_priv.h.

#define MC44S803_REG_DIGTUNE   9

Definition at line 64 of file mc44s803_priv.h.

#define MC44S803_REG_ID   0x0F

Definition at line 70 of file mc44s803_priv.h.

#define MC44S803_REG_LNAAGC   0x0A

Definition at line 65 of file mc44s803_priv.h.

#define MC44S803_REG_LNAGAIN   0x0E

Definition at line 69 of file mc44s803_priv.h.

#define MC44S803_REG_LO1   5

Definition at line 60 of file mc44s803_priv.h.

#define MC44S803_REG_LO2   6

Definition at line 61 of file mc44s803_priv.h.

#define MC44S803_REG_MIXER   3

Definition at line 58 of file mc44s803_priv.h.

#define MC44S803_REG_MS (   _val,
  _reg 
)    (((_val) & (_reg)) >> _reg##_S)

Definition at line 197 of file mc44s803_priv.h.

#define MC44S803_REG_POWER   0

Definition at line 55 of file mc44s803_priv.h.

#define MC44S803_REG_REFDIV   2

Definition at line 57 of file mc44s803_priv.h.

#define MC44S803_REG_REFOSC   1

Definition at line 56 of file mc44s803_priv.h.

#define MC44S803_REG_REGTEST   0x0C

Definition at line 67 of file mc44s803_priv.h.

#define MC44S803_REG_RESET   4

Definition at line 59 of file mc44s803_priv.h.

#define MC44S803_REG_SM (   _val,
  _reg 
)    (((_val) << _reg##_S) & (_reg))

Definition at line 193 of file mc44s803_priv.h.

#define MC44S803_REG_TEST   8

Definition at line 63 of file mc44s803_priv.h.

#define MC44S803_REG_VCOTEST   0x0D

Definition at line 68 of file mc44s803_priv.h.

#define MC44S803_RF_PWR   0x3800

Definition at line 182 of file mc44s803_priv.h.

#define MC44S803_RF_PWR_S   11

Definition at line 183 of file mc44s803_priv.h.

#define MC44S803_RS   0x10

Definition at line 108 of file mc44s803_priv.h.

#define MC44S803_RS_S   4

Definition at line 109 of file mc44s803_priv.h.

#define MC44S803_RST   0x10000

Definition at line 143 of file mc44s803_priv.h.

#define MC44S803_RST_S   16

Definition at line 144 of file mc44s803_priv.h.

#define MC44S803_S1   0x1000

Definition at line 129 of file mc44s803_priv.h.

#define MC44S803_S1_S   12

Definition at line 130 of file mc44s803_priv.h.

#define MC44S803_SO   0x20

Definition at line 110 of file mc44s803_priv.h.

#define MC44S803_SO_S   5

Definition at line 111 of file mc44s803_priv.h.

#define MC44S803_TRI_STATE   0x400

Definition at line 99 of file mc44s803_priv.h.

#define MC44S803_TRI_STATE_S   10

Definition at line 100 of file mc44s803_priv.h.

#define MC44S803_XOD   0x300

Definition at line 141 of file mc44s803_priv.h.

#define MC44S803_XOD_S   8

Definition at line 142 of file mc44s803_priv.h.