| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2005-2012, 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: bads_3x7x.c $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/5 $ |
|---|
| 12 | * $brcm_Date: 2/8/12 5:59p $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/portinginterface/ads/7552/bads_3x7x.c $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/5 2/8/12 5:59p atanugul |
|---|
| 21 | * SW3128-119: Add initializers for for SetAcquireParams, GetAcquireParams |
|---|
| 22 | * and PowerUp |
|---|
| 23 | * |
|---|
| 24 | * Hydra_Software_Devel/4 12/22/11 4:50p farshidf |
|---|
| 25 | * SW7552-170: add scanstatus calls |
|---|
| 26 | * |
|---|
| 27 | * Hydra_Software_Devel/3 12/8/11 3:31p atanugul |
|---|
| 28 | * SW3128-89: Add Initializer for ADS_RequestSpectrumAnalyzerData and |
|---|
| 29 | * BADS_GetSpectrumAnalyzerData |
|---|
| 30 | * |
|---|
| 31 | * Hydra_Software_Devel/2 10/10/11 3:30p farshidf |
|---|
| 32 | * SW7552-134: fix compiling |
|---|
| 33 | * |
|---|
| 34 | * Hydra_Software_Devel/1 10/10/11 2:05p farshidf |
|---|
| 35 | * SW7552-134: sync up to V2_0 of 3461 |
|---|
| 36 | * |
|---|
| 37 | * Hydra_Software_Devel/4 5/31/11 3:55p farshidf |
|---|
| 38 | * SW7552-36: add disable power saver |
|---|
| 39 | * |
|---|
| 40 | * Hydra_Software_Devel/3 5/6/11 2:24p farshidf |
|---|
| 41 | * SWDTV-6857: merge main |
|---|
| 42 | * |
|---|
| 43 | * Hydra_Software_Devel/SWDTV-6857/1 5/6/11 2:03p farshidf |
|---|
| 44 | * SWDTV-6587: add scan structure and calls |
|---|
| 45 | * |
|---|
| 46 | * Hydra_Software_Devel/2 4/27/11 1:11a farshidf |
|---|
| 47 | * SWDTV-6190: compile fix |
|---|
| 48 | * |
|---|
| 49 | * Hydra_Software_Devel/1 4/20/11 12:38p farshidf |
|---|
| 50 | * SWDTV-6190: add intial DS files |
|---|
| 51 | * |
|---|
| 52 | ***************************************************************************/ |
|---|
| 53 | #include "bads.h" |
|---|
| 54 | #include "bads_priv.h" |
|---|
| 55 | #include "bads_3x7x.h" |
|---|
| 56 | #include "bads_api.h" |
|---|
| 57 | |
|---|
| 58 | |
|---|
| 59 | BDBG_MODULE(bads_3x7x); |
|---|
| 60 | |
|---|
| 61 | /******************************************************************************* |
|---|
| 62 | * |
|---|
| 63 | * Default Module Settings |
|---|
| 64 | * |
|---|
| 65 | *******************************************************************************/ |
|---|
| 66 | static const BADS_Settings defDevSettings = |
|---|
| 67 | { |
|---|
| 68 | 0, |
|---|
| 69 | NULL, /* BHAB handle, must be provided by application*/ |
|---|
| 70 | { |
|---|
| 71 | BADS_3x7x_Open, |
|---|
| 72 | BADS_3x7x_Close, |
|---|
| 73 | BADS_3x7x_Init, |
|---|
| 74 | BADS_3x7x_GetVersion, |
|---|
| 75 | NULL, |
|---|
| 76 | BADS_3x7x_GetTotalChannels, |
|---|
| 77 | BADS_3x7x_OpenChannel, |
|---|
| 78 | BADS_3x7x_CloseChannel, |
|---|
| 79 | BADS_3x7x_GetDevice, |
|---|
| 80 | BADS_3x7x_GetChannelDefaultSettings, |
|---|
| 81 | BADS_3x7x_GetStatus, |
|---|
| 82 | BADS_3x7x_GetLockStatus, |
|---|
| 83 | BADS_3x7x_GetSoftDecision, |
|---|
| 84 | BADS_3x7x_InstallCallback, |
|---|
| 85 | NULL, /* BADS_GetDefaultAcquireParams */ |
|---|
| 86 | NULL, /* BADS_SetAcquireParams */ |
|---|
| 87 | NULL, /* BADS_GetAcquireParams */ |
|---|
| 88 | BADS_3x7x_Acquire, |
|---|
| 89 | BADS_3x7x_EnablePowerSaver, |
|---|
| 90 | BADS_3x7x_DisablePowerSaver, |
|---|
| 91 | BADS_3x7x_ProcessNotification, |
|---|
| 92 | BADS_3x7x_SetDaisyChain, |
|---|
| 93 | BADS_3x7x_GetDaisyChain, |
|---|
| 94 | BADS_3x7x_ResetStatus, |
|---|
| 95 | BADS_3x7x_GetInterruptEventHandle, |
|---|
| 96 | BADS_3x7x_ProcessInterruptEvent, |
|---|
| 97 | BADS_3x7x_Untune, |
|---|
| 98 | NULL, |
|---|
| 99 | NULL, |
|---|
| 100 | BADS_3x7x_GetScanStatus, |
|---|
| 101 | NULL, |
|---|
| 102 | NULL, |
|---|
| 103 | BADS_3x7x_SetScanParam, |
|---|
| 104 | BADS_3x7x_GetScanParam, |
|---|
| 105 | NULL, /* BADS_RequestSpectrumAnalyzerData */ |
|---|
| 106 | NULL /* BADS_GetSpectrumAnalyzerData */ |
|---|
| 107 | }, |
|---|
| 108 | false, |
|---|
| 109 | BADS_TransportData_eGpioSerial, |
|---|
| 110 | NULL, |
|---|
| 111 | NULL |
|---|
| 112 | }; |
|---|
| 113 | |
|---|
| 114 | /*************************************************************************** |
|---|
| 115 | Summary: |
|---|
| 116 | This function returns the default settings for Qam In-Band Downstream module. |
|---|
| 117 | |
|---|
| 118 | Description: |
|---|
| 119 | This function is responsible for returns the default setting for |
|---|
| 120 | BADS module. The returning default setting should be when |
|---|
| 121 | opening the device. |
|---|
| 122 | |
|---|
| 123 | Returns: |
|---|
| 124 | TODO: |
|---|
| 125 | |
|---|
| 126 | See Also: |
|---|
| 127 | BADS_7550_Open() |
|---|
| 128 | |
|---|
| 129 | ****************************************************************************/ |
|---|
| 130 | BERR_Code BADS_3x7x_GetDefaultSettings( |
|---|
| 131 | BADS_Settings *pDefSettings, /* [out] Returns default setting */ |
|---|
| 132 | BCHP_Handle hChip /* [in] Chip handle */ |
|---|
| 133 | ) |
|---|
| 134 | { |
|---|
| 135 | BERR_Code retCode = BERR_SUCCESS; |
|---|
| 136 | |
|---|
| 137 | BDBG_ENTER(BADS_7550_GetDefaultSettings); |
|---|
| 138 | BSTD_UNUSED(hChip); |
|---|
| 139 | |
|---|
| 140 | *pDefSettings = defDevSettings; |
|---|
| 141 | |
|---|
| 142 | BDBG_LEAVE(BADS_7550_GetDefaultSettings); |
|---|
| 143 | return( retCode ); |
|---|
| 144 | } |
|---|
| 145 | |
|---|