| 1 | /****************************************************************************** |
|---|
| 2 | * (c)2011 Broadcom Corporation |
|---|
| 3 | * |
|---|
| 4 | * This program is the proprietary software of Broadcom Corporation and/or its licensors, |
|---|
| 5 | * and may only be used, duplicated, modified or distributed pursuant to the terms and |
|---|
| 6 | * conditions of a separate, written license agreement executed between you and Broadcom |
|---|
| 7 | * (an "Authorized License"). Except as set forth in an Authorized License, Broadcom grants |
|---|
| 8 | * no license (express or implied), right to use, or waiver of any kind with respect to the |
|---|
| 9 | * Software, and Broadcom expressly reserves all rights in and to the Software and all |
|---|
| 10 | * intellectual property rights therein. IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU |
|---|
| 11 | * HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY |
|---|
| 12 | * NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE. |
|---|
| 13 | * |
|---|
| 14 | * Except as expressly set forth in the Authorized License, |
|---|
| 15 | * |
|---|
| 16 | * 1. This program, including its structure, sequence and organization, constitutes the valuable trade |
|---|
| 17 | * secrets of Broadcom, and you shall use all reasonable efforts to protect the confidentiality thereof, |
|---|
| 18 | * and to use this information only in connection with your use of Broadcom integrated circuit products. |
|---|
| 19 | * |
|---|
| 20 | * 2. TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" |
|---|
| 21 | * AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES, REPRESENTATIONS OR |
|---|
| 22 | * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO |
|---|
| 23 | * THE SOFTWARE. BROADCOM SPECIFICALLY DISCLAIMS ANY AND ALL IMPLIED WARRANTIES |
|---|
| 24 | * OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, |
|---|
| 25 | * LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION |
|---|
| 26 | * OR CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING OUT OF |
|---|
| 27 | * USE OR PERFORMANCE OF THE SOFTWARE. |
|---|
| 28 | * |
|---|
| 29 | * 3. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM OR ITS |
|---|
| 30 | * LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL, INDIRECT, OR |
|---|
| 31 | * EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY WAY RELATING TO YOUR |
|---|
| 32 | * USE OF OR INABILITY TO USE THE SOFTWARE EVEN IF BROADCOM HAS BEEN ADVISED OF |
|---|
| 33 | * THE POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN EXCESS OF THE AMOUNT |
|---|
| 34 | * ACTUALLY PAID FOR THE SOFTWARE ITSELF OR U.S. $1, WHICHEVER IS GREATER. THESE |
|---|
| 35 | * LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF |
|---|
| 36 | * ANY LIMITED REMEDY. |
|---|
| 37 | * |
|---|
| 38 | * $brcm_Workfile: btnr_ob_struct.h $ |
|---|
| 39 | * $brcm_Revision: Hydra_Software_Devel/3 $ |
|---|
| 40 | * $brcm_Date: 3/12/12 1:08p $ |
|---|
| 41 | * |
|---|
| 42 | * Module Description: |
|---|
| 43 | * |
|---|
| 44 | * Revision History: |
|---|
| 45 | * |
|---|
| 46 | * $brcm_Log: /magnum/portinginterface/tnr/7552ob/btnr_ob_struct.h $ |
|---|
| 47 | * |
|---|
| 48 | * Hydra_Software_Devel/3 3/12/12 1:08p farshidf |
|---|
| 49 | * SW3461-1: add the AOB to tuner callback |
|---|
| 50 | * |
|---|
| 51 | * Hydra_Software_Devel/2 12/14/11 2:48p farshidf |
|---|
| 52 | * SW7552-170: remove the tuner power hard code values |
|---|
| 53 | * |
|---|
| 54 | * Hydra_Software_Devel/1 12/8/11 11:27p farshidf |
|---|
| 55 | * SW7552-170: first version of OOB tuner for B0 verification |
|---|
| 56 | * |
|---|
| 57 | * |
|---|
| 58 | *****************************************************************************/ |
|---|
| 59 | |
|---|
| 60 | #ifndef _BTNR_OB_STRUCT_H__ |
|---|
| 61 | #define _BTNR_OB_STRUCT_H__ |
|---|
| 62 | |
|---|
| 63 | #if __cplusplus |
|---|
| 64 | extern "C" { |
|---|
| 65 | #endif |
|---|
| 66 | |
|---|
| 67 | |
|---|
| 68 | |
|---|
| 69 | typedef enum BTNR_Ob_BBSConnectMode_s |
|---|
| 70 | { |
|---|
| 71 | BTNR_Ob_BBSConnectMode_Tune = 1, |
|---|
| 72 | BTNR_Ob_BBSConnectMode_ResetStatus = 2, |
|---|
| 73 | BTNR_Ob_BBSConnectMode_EnableStatus = 4 |
|---|
| 74 | } BTNR_Ob_BBSConnectMode_t; |
|---|
| 75 | |
|---|
| 76 | |
|---|
| 77 | typedef struct BTNR_Ob_3x7x_BBS_Params_t |
|---|
| 78 | { |
|---|
| 79 | uint32_t StartSturctureAddress; |
|---|
| 80 | uint32_t rfFreq; |
|---|
| 81 | volatile BTNR_Ob_BBSConnectMode_t BBSConnectMode; |
|---|
| 82 | uint32_t BBSAddress; |
|---|
| 83 | }BTNR_Ob_3x7x_BBS_Params_t; |
|---|
| 84 | |
|---|
| 85 | /*This is the main structure by the tuning functions*/ |
|---|
| 86 | typedef struct BTNR_Ob_3x7x_TuneParams_s |
|---|
| 87 | { |
|---|
| 88 | BTNR_Ob_3x7x_BBS_Params_t BTNR_Ob_BBS_Params; |
|---|
| 89 | }BTNR_Ob_3x7x_TuneParams_t; |
|---|
| 90 | |
|---|
| 91 | |
|---|
| 92 | |
|---|
| 93 | typedef enum BTNR_Ob_PowerStatus_s |
|---|
| 94 | { |
|---|
| 95 | BTNR_Ob_ePower_Off = 0, |
|---|
| 96 | BTNR_Ob_ePower_On = 1, |
|---|
| 97 | BTNR_Ob_ePower_Unknown = 0xFF |
|---|
| 98 | } BTNR_Ob_PowerStatus_t; |
|---|
| 99 | |
|---|
| 100 | |
|---|
| 101 | |
|---|
| 102 | /*This is the main structure by the tuning status*/ |
|---|
| 103 | typedef struct BTNR_Ob_3x7x_TuneStatus_s |
|---|
| 104 | { |
|---|
| 105 | BTNR_Ob_PowerStatus_t PowerStatus; |
|---|
| 106 | int32_t Total_Mix_After_ADC; /*Sum of mixer frequencies after ADC on eRequestMode*/ |
|---|
| 107 | int16_t PreADC_Gain_x256db ; /*Gain in db*256 before ADC on eRequestMode: set to 0x8000 if unknown*/ |
|---|
| 108 | int16_t PostADC_Gain_x256db; /*Gain in db*256 after ADC on eRequestMode: set to 0x8000 if unknown*/ |
|---|
| 109 | int16_t External_Gain_x256db; /*Gain in db*256 external to chip (like external LNA) on eRequestMode: set to 0x8000 if unknown*/ |
|---|
| 110 | |
|---|
| 111 | } BTNR_Ob_3x7x_TuneStatus_t; |
|---|
| 112 | |
|---|
| 113 | |
|---|
| 114 | #ifdef __cplusplus |
|---|
| 115 | } |
|---|
| 116 | #endif |
|---|
| 117 | |
|---|
| 118 | #endif /* _BTNR_STRUCT_H__ */ |
|---|
| 119 | |
|---|
| 120 | |
|---|
| 121 | |
|---|
| 122 | |
|---|
| 123 | |
|---|