/*************************************************************************** * Copyright (c) 2003-2011, Broadcom Corporation * All Rights Reserved * Confidential Property of Broadcom Corporation * * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. * * $brcm_Workfile: bhab_3109.c $ * $brcm_Revision: Hydra_Software_Devel/6 $ * $brcm_Date: 5/27/11 4:42p $ * * * Revision History: * * $brcm_Log: /magnum/basemodules/hab/3109/bhab_3109.c $ * * Hydra_Software_Devel/6 5/27/11 4:42p atanugul * SW3461-3: Initializer for BHAB_3461_GetConfigSettings and * BHAB_3461_SetConfigSettings * * Hydra_Software_Devel/5 5/6/11 3:52p atanugul * SW3128-2: missing initializer for isMtsif. * * Hydra_Software_Devel/4 5/3/11 5:59p mward * SW3128-8: missing initializer for isSpi. * * Hydra_Software_Devel/3 12/2/10 7:30p VISHK * SW7405-5037: To make the i2c address programmable for the slave * device(LNA) of 31xx frontend chip. * * Hydra_Software_Devel/2 12/22/09 11:21a VISHK * SW7405-3621: Segmentation fault on BCM97405IFE with PREREL Brutus. * SW7405-2851: 31xx: Add support to configure the Watchdog feature of * 31xx * * Hydra_Software_Devel/1 3/10/09 1:58p vishk * PR 46431: Add support for BCM3117, BCM3114, and BCM3112 * * ***************************************************************************/ #include "bhab.h" #include "bhab_priv.h" #include "bhab_3109.h" #include "bhab_31xx_priv.h" BDBG_MODULE(bhab_3109); static const BHAB_Settings defDevSettings = { 0x66, /* chipAddr */ NULL, /* interruptEnableFunc */ NULL, /* interruptEnableFuncParam */ /* API function table */ { BHAB_31xx_Open, BHAB_31xx_Close, BHAB_31xx_InitAp, BHAB_31xx_GetApStatus, BHAB_31xx_GetApVersion, BHAB_31xx_ReadRegister, BHAB_31xx_WriteRegister, BHAB_31xx_ReadMemory, BHAB_31xx_WriteMemory, BHAB_31xx_ReadMbox, BHAB_31xx_WriteMbox, BHAB_31xx_HandleInterrupt_isr, BHAB_31xx_ProcessInterruptEvent, BHAB_31xx_EnableLockInterrupt, BHAB_31xx_InstallInterruptCallback, BHAB_31xx_UnInstallInterruptCallback, BHAB_31xx_SendHabCommand, BHAB_31xx_GetInterruptEventHandle, BHAB_31xx_GetWatchDogTimer, BHAB_31xx_SetWatchDogTimer, BHAB_31xx_GetNmiConfig, BHAB_31xx_SetNmiConfig, NULL, /* BHAB_3461_GetConfigSettings */ NULL /* BHAB_3461_SetConfigSettings */ }, 0x60, /* slaveChipAddr */ false, /* isSpi */ false /* isMtsif */ }; /****************************************************************************** BHAB_3109_GetDefaultSettings() ******************************************************************************/ BERR_Code BHAB_3109_GetDefaultSettings( BHAB_Settings *pDefSettings /* [out] default settings */ ) { *pDefSettings = defDevSettings; return BERR_SUCCESS; }