| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2004-2009, Broadcom Corporation |
|---|
| 3 | * All Rights Reserved |
|---|
| 4 | * Confidential Property of Broadcom Corporation |
|---|
| 5 | * |
|---|
| 6 | * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | * |
|---|
| 10 | * $brcm_Workfile: bvsb_3520.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/4 $ |
|---|
| 12 | * $brcm_Date: 3/24/09 3:40p $ |
|---|
| 13 | * |
|---|
| 14 | * [File Description:] |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/portinginterface/vsb/3520/bvsb_3520.h $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/4 3/24/09 3:40p dliu |
|---|
| 21 | * PR53219: Add OOB control for 3520 |
|---|
| 22 | * |
|---|
| 23 | * Hydra_Software_Devel/3 3/4/05 3:32p enavarro |
|---|
| 24 | * PR 14005: added more config offsets |
|---|
| 25 | * |
|---|
| 26 | * Hydra_Software_Devel/2 10/1/04 3:25p brianlee |
|---|
| 27 | * PR12857: Modified code to comform to magnum coding convention. |
|---|
| 28 | * |
|---|
| 29 | ***************************************************************************/ |
|---|
| 30 | |
|---|
| 31 | #ifndef _BVSB_3520_H__ |
|---|
| 32 | #define _BVSB_3520_H__ |
|---|
| 33 | |
|---|
| 34 | #include "bvsb.h" |
|---|
| 35 | #include "breg_i2c.h" |
|---|
| 36 | |
|---|
| 37 | /*************************************************************************** |
|---|
| 38 | Summary: |
|---|
| 39 | Defines addresses in host config space |
|---|
| 40 | |
|---|
| 41 | Description: |
|---|
| 42 | The following macros define addresses of parameters in the host |
|---|
| 43 | configuration space. These are passed into BVSB_WriteConfig/BVSB_ReadConfig |
|---|
| 44 | functions |
|---|
| 45 | |
|---|
| 46 | See Also: |
|---|
| 47 | None. |
|---|
| 48 | |
|---|
| 49 | ****************************************************************************/ |
|---|
| 50 | #define BVSB_CONFIG_PAD_CTRL_1 0x0012 |
|---|
| 51 | #define BVSB_CONFIG_PIN_CTRL_0 0x0018 |
|---|
| 52 | #define BVSB_CONFIG_XPORT_CTRL 0x001C |
|---|
| 53 | #define BVSB_CONFIG_PIN_CTRL_5 0x001E |
|---|
| 54 | #define BVSB_CONFIG_VSB_SYM_RATE 0x0020 |
|---|
| 55 | #define BVSB_CONFIG_QAM_A_SYM_RATE 0x0024 |
|---|
| 56 | #define BVSB_CONFIG_QAM_64B_SYM_RATE 0x0028 |
|---|
| 57 | #define BVSB_CONFIG_QAM_256B_SYM_RATE 0x002C |
|---|
| 58 | #define BVSB_CONFIG_QAM_1024B_SYM_RATE 0x0030 |
|---|
| 59 | #define BVSB_CONFIG_INBAND_IF_FREQ 0x0034 |
|---|
| 60 | #define BVSB_CONFIG_OOB_LO_FREQ 0x0038 |
|---|
| 61 | #define BVSB_CONFIG_OOB_IF_FREQ 0x003C |
|---|
| 62 | #define BVSB_CONFIG_OOB_SYM_RATE 0x0040 |
|---|
| 63 | #define BVSB_CONFIG_ACQ_PARAM1 0x0050 |
|---|
| 64 | #define BVSB_CONFIG_ACQ_PARAM2 0x0054 |
|---|
| 65 | #define BVSB_CONFIG_ACQ_PARAM3 0x0058 |
|---|
| 66 | #define BVSB_CONFIG_ACQ_PARAM4 0x005C |
|---|
| 67 | #define BVSB_CONFIG_ACQ_PARAM5 0x0060 |
|---|
| 68 | #define BVSB_CONFIG_ACQ_PARAM6 0x0064 |
|---|
| 69 | #define BVSB_CONFIG_ACQ_PARAM7 0x0068 |
|---|
| 70 | #define BVSB_CONFIG_ACQ_PARAM8 0x006C |
|---|
| 71 | #define BVSB_CONFIG_ACQ_PARAM9 0x0070 |
|---|
| 72 | #define BVSB_CONFIG_ACQ_PARAM10 0x0074 |
|---|
| 73 | #define BVSB_CONFIG_ACQ_PARAM11 0x0078 |
|---|
| 74 | #define BVSB_CONFIG_ACQ_PARAM12 0x007C |
|---|
| 75 | #define BVSB_CONFIG_ACQ_PARAM13 0x0080 |
|---|
| 76 | #define BVSB_CONFIG_ACQ_PARAM14 0x0084 |
|---|
| 77 | #define BVSB_CONFIG_ACQ_PARAM15 0x0088 |
|---|
| 78 | #define BVSB_CONFIG_ACQ_PARAM16 0x008C |
|---|
| 79 | #define BVSB_CONFIG_ACQ_PARAM17 0x0090 |
|---|
| 80 | #define BVSB_CONFIG_ACQ_PARAM18 0x0094 |
|---|
| 81 | #define BVSB_CONFIG_ACQ_PARAM19 0x0098 |
|---|
| 82 | #define BVSB_CONFIG_ACQ_PARAM20 0x009C |
|---|
| 83 | #define BVSB_CONFIG_ACQ_PARAM21 0x00A0 |
|---|
| 84 | #define BVSB_CONFIG_ACQ_PARAM22 0x00A4 |
|---|
| 85 | #define BVSB_CONFIG_ACQ_PARAM23 0x00A8 |
|---|
| 86 | #define BVSB_CONFIG_ACQ_PARAM24 0x00AC |
|---|
| 87 | #define BVSB_CONFIG_ACQ_PARAM25 0x00B0 |
|---|
| 88 | #define BVSB_CONFIG_ACQ_PARAM26 0x00B4 |
|---|
| 89 | #define BVSB_CONFIG_ACQ_PARAM27 0x00B8 |
|---|
| 90 | #define BVSB_CONFIG_ACQ_PARAM28 0x00BC |
|---|
| 91 | #define BVSB_CONFIG_ACQ_PARAM29 0x00C0 |
|---|
| 92 | #define BVSB_CONFIG_ACQ_PARAM30 0x00C4 |
|---|
| 93 | #define BVSB_CONFIG_ACQ_PARAM_BYTE1 0x00C8 |
|---|
| 94 | #define BVSB_CONFIG_ACQ_PARAM_BYTE2 0x00C9 |
|---|
| 95 | #define BVSB_CONFIG_ACQ_PARAM_BYTE3 0x00CA |
|---|
| 96 | #define BVSB_CONFIG_ACQ_PARAM_BYTE4 0x00CB |
|---|
| 97 | #define BVSB_CONFIG_ACQ_PARAM_BYTE5 0x00CC |
|---|
| 98 | #define BVSB_CONFIG_ACQ_PARAM_BYTE6 0x00CD |
|---|
| 99 | #define BVSB_CONFIG_ACQ_PARAM_BYTE7 0x00CE |
|---|
| 100 | #define BVSB_CONFIG_ACQ_PARAM_BYTE8 0x00CF |
|---|
| 101 | #define BVSB_CONFIG_VSB_CABLE_SETUP1 0x00D0 |
|---|
| 102 | #define BVSB_CONFIG_VSB_CABLE_SETUP2 0x00D1 |
|---|
| 103 | #define BVSB_CONFIG_VSB_CABLE_SETUP3 0x00D2 |
|---|
| 104 | #define BVSB_CONFIG_VSB_CABLE_SETUP4 0x00D3 |
|---|
| 105 | #define BVSB_CONFIG_VSB_CABLE_SETUP5 0x00D4 |
|---|
| 106 | #define BVSB_CONFIG_VSB_CABLE_SETUP6 0x00D5 |
|---|
| 107 | #define BVSB_CONFIG_VSB_CABLE_SETUP7 0x00D6 |
|---|
| 108 | #define BVSB_CONFIG_VSB_CABLE_SETUP8 0x00D7 |
|---|
| 109 | #define BVSB_CONFIG_VSB_CABLE_SETUP9 0x00D8 |
|---|
| 110 | #define BVSB_CONFIG_VSB_CABLE_SETUP10 0x00D9 |
|---|
| 111 | #define BVSB_CONFIG_VSB_CABLE_SETUP11 0x00DA |
|---|
| 112 | #define BVSB_CONFIG_VSB_CABLE_SETUP12 0x00DB |
|---|
| 113 | #define BVSB_CONFIG_VSB_TER_SETUP1 0x00DC |
|---|
| 114 | #define BVSB_CONFIG_VSB_TER_SETUP2 0x00DD |
|---|
| 115 | #define BVSB_CONFIG_VSB_TER_SETUP3 0x00DE |
|---|
| 116 | #define BVSB_CONFIG_VSB_TER_SETUP4 0x00DF |
|---|
| 117 | #define BVSB_CONFIG_VSB_TER_SETUP5 0x00E0 |
|---|
| 118 | #define BVSB_CONFIG_VSB_TER_SETUP6 0x00E1 |
|---|
| 119 | #define BVSB_CONFIG_VSB_TER_SETUP7 0x00E2 |
|---|
| 120 | #define BVSB_CONFIG_VSB_TER_SETUP8 0x00E3 |
|---|
| 121 | #define BVSB_CONFIG_VSB_TER_SETUP9 0x00E4 |
|---|
| 122 | #define BVSB_CONFIG_VSB_TER_SETUP10 0x00E5 |
|---|
| 123 | #define BVSB_CONFIG_VSB_TER_SETUP11 0x00E6 |
|---|
| 124 | #define BVSB_CONFIG_VSB_TER_SETUP12 0x00E7 |
|---|
| 125 | #define BVSB_CONFIG_QAM_CABLE_SETUP1 0x00E8 |
|---|
| 126 | #define BVSB_CONFIG_QAM_CABLE_SETUP2 0x00E9 |
|---|
| 127 | #define BVSB_CONFIG_QAM_CABLE_SETUP3 0x00EA |
|---|
| 128 | #define BVSB_CONFIG_QAM_CABLE_SETUP4 0x00EB |
|---|
| 129 | #define BVSB_CONFIG_QAM_CABLE_SETUP5 0x00EC |
|---|
| 130 | #define BVSB_CONFIG_QAM_CABLE_SETUP6 0x00ED |
|---|
| 131 | #define BVSB_CONFIG_QAM_CABLE_SETUP7 0x00EE |
|---|
| 132 | #define BVSB_CONFIG_QAM_CABLE_SETUP8 0x00EF |
|---|
| 133 | #define BVSB_CONFIG_QAM_CABLE_SETUP9 0x00F0 |
|---|
| 134 | #define BVSB_CONFIG_QAM_CABLE_SETUP10 0x00F1 |
|---|
| 135 | #define BVSB_CONFIG_QAM_CABLE_SETUP11 0x00F2 |
|---|
| 136 | #define BVSB_CONFIG_QAM_CABLE_SETUP12 0x00F3 |
|---|
| 137 | #define BVSB_CONFIG_QAM_TER_SETUP1 0x00F4 |
|---|
| 138 | #define BVSB_CONFIG_QAM_TER_SETUP2 0x00F5 |
|---|
| 139 | #define BVSB_CONFIG_QAM_TER_SETUP3 0x00F6 |
|---|
| 140 | #define BVSB_CONFIG_QAM_TER_SETUP4 0x00F7 |
|---|
| 141 | #define BVSB_CONFIG_QAM_TER_SETUP5 0x00F8 |
|---|
| 142 | #define BVSB_CONFIG_QAM_TER_SETUP6 0x00F9 |
|---|
| 143 | #define BVSB_CONFIG_QAM_TER_SETUP7 0x00FA |
|---|
| 144 | #define BVSB_CONFIG_QAM_TER_SETUP8 0x00FB |
|---|
| 145 | #define BVSB_CONFIG_QAM_TER_SETUP9 0x00FC |
|---|
| 146 | #define BVSB_CONFIG_QAM_TER_SETUP10 0x00FD |
|---|
| 147 | #define BVSB_CONFIG_QAM_TER_SETUP11 0x00FE |
|---|
| 148 | #define BVSB_CONFIG_QAM_TER_SETUP12 0x00FF |
|---|
| 149 | #define BVSB_CONFIG_NTSC_CABLE_SETUP1 0x0100 |
|---|
| 150 | #define BVSB_CONFIG_NTSC_CABLE_SETUP2 0x0101 |
|---|
| 151 | #define BVSB_CONFIG_NTSC_CABLE_SETUP3 0x0102 |
|---|
| 152 | #define BVSB_CONFIG_NTSC_CABLE_SETUP4 0x0103 |
|---|
| 153 | #define BVSB_CONFIG_NTSC_CABLE_SETUP5 0x0104 |
|---|
| 154 | #define BVSB_CONFIG_CBL_IF_TOP 0x0104 |
|---|
| 155 | #define BVSB_CONFIG_NTSC_CABLE_SETUP6 0x0105 |
|---|
| 156 | #define BVSB_CONFIG_NTSC_CABLE_SETUP7 0x0106 |
|---|
| 157 | #define BVSB_CONFIG_NTSC_CABLE_SETUP8 0x0107 |
|---|
| 158 | #define BVSB_CONFIG_NTSC_CABLE_SETUP9 0x0108 |
|---|
| 159 | #define BVSB_CONFIG_NTSC_CABLE_SETUP10 0x0109 |
|---|
| 160 | #define BVSB_CONFIG_NTSC_CABLE_SETUP11 0x010A |
|---|
| 161 | #define BVSB_CONFIG_NTSC_CABLE_SETUP12 0x010B |
|---|
| 162 | #define BVSB_CONFIG_NTSC_TER_SETUP1 0x010C |
|---|
| 163 | #define BVSB_CONFIG_NTSC_TER_SETUP2 0x010D |
|---|
| 164 | #define BVSB_CONFIG_NTSC_TER_SETUP3 0x010E |
|---|
| 165 | #define BVSB_CONFIG_NTSC_TER_SETUP4 0x010F |
|---|
| 166 | #define BVSB_CONFIG_NTSC_TER_SETUP5 0x0110 |
|---|
| 167 | #define BVSB_CONFIG_TER_IF_TOP 0x0110 |
|---|
| 168 | #define BVSB_CONFIG_NTSC_TER_SETUP6 0x0111 |
|---|
| 169 | #define BVSB_CONFIG_NTSC_TER_SETUP7 0x0112 |
|---|
| 170 | #define BVSB_CONFIG_NTSC_TER_SETUP8 0x0113 |
|---|
| 171 | #define BVSB_CONFIG_NTSC_TER_SETUP9 0x0114 |
|---|
| 172 | #define BVSB_CONFIG_NTSC_TER_SETUP10 0x0115 |
|---|
| 173 | #define BVSB_CONFIG_NTSC_TER_SETUP11 0x0116 |
|---|
| 174 | #define BVSB_CONFIG_NTSC_TER_SETUP12 0x0117 |
|---|
| 175 | #define BVSB_CONFIG_AGC_TEST1 0x0118 |
|---|
| 176 | #define BVSB_CONFIG_OOB_CABLE_SETUP1 0x0119 |
|---|
| 177 | #define BVSB_CONFIG_OOB_CABLE_SETUP2 0x011A |
|---|
| 178 | #define BVSB_CONFIG_OOB_CABLE_SETUP3 0x011B |
|---|
| 179 | #define BVSB_CONFIG_OOB_CABLE_SETUP4 0x011C |
|---|
| 180 | #define BVSB_CONFIG_OOB_CABLE_SETUP5 0x011D |
|---|
| 181 | #define BVSB_CONFIG_OOB_CABLE_SETUP6 0x011E |
|---|
| 182 | #define BVSB_CONFIG_OOB_CABLE_SETUP7 0x011F |
|---|
| 183 | #define BVSB_CONFIG_OOB_CABLE_SETUP8 0x0120 |
|---|
| 184 | #define BVSB_CONFIG_OOB_CABLE_SETUP9 0x0121 |
|---|
| 185 | #define BVSB_CONFIG_OOB_CABLE_SETUP10 0x0122 |
|---|
| 186 | #define BVSB_CONFIG_OOB_CABLE_SETUP11 0x0123 |
|---|
| 187 | #define BVSB_CONFIG_OOB_CABLE_SETUP12 0x0124 |
|---|
| 188 | #define BVSB_CONFIG_PIX_CARRIER 0x0125 |
|---|
| 189 | |
|---|
| 190 | |
|---|
| 191 | /*************************************************************************** |
|---|
| 192 | Summary: |
|---|
| 193 | This function returns the default settings for 3520 module. |
|---|
| 194 | |
|---|
| 195 | Description: |
|---|
| 196 | This function is responsible for returns the default setting for |
|---|
| 197 | 3520 module. The returning default setting should be used when |
|---|
| 198 | opening the device. |
|---|
| 199 | |
|---|
| 200 | Returns: |
|---|
| 201 | TODO: |
|---|
| 202 | |
|---|
| 203 | See Also: |
|---|
| 204 | BSPI_Open() |
|---|
| 205 | |
|---|
| 206 | ****************************************************************************/ |
|---|
| 207 | BERR_Code BVSB_3520_GetDefaultSettings( |
|---|
| 208 | BVSB_Settings * /* [in] Default settings */ |
|---|
| 209 | ); |
|---|
| 210 | |
|---|
| 211 | |
|---|
| 212 | #ifdef __cplusplus |
|---|
| 213 | } |
|---|
| 214 | #endif |
|---|
| 215 | |
|---|
| 216 | #endif /* BVSB_3520_H__ */ |
|---|
| 217 | |
|---|