source: svn/trunk/newcon3bcm2_21bu/magnum/basemodules/hab/3520/bhab_3520.c

Last change on this file was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 2.0 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2003-2008, 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: bhab_3520.c $
11 * $brcm_Revision: Hydra_Software_Devel/1 $
12 * $brcm_Date: 10/20/08 2:51p $
13 *
14 *
15 * Revision History:
16 *
17 * $brcm_Log: /magnum/basemodules/hab/3520/bhab_3520.c $
18 *
19 * Hydra_Software_Devel/1   10/20/08 2:51p gmohile
20 * PR 47386 : Checkin initial version
21 *
22 ***************************************************************************/
23
24#include "bhab.h"
25#include "bhab_priv.h"
26#include "bhab_3520.h"
27#include "bhab_3520_priv.h"
28
29BDBG_MODULE(bvsb_3520);
30
31
32static const BHAB_Settings defDevSettings =
33  {     
34          0x0F, /* chipAddr */
35          NULL, /* interruptEnableFunc */
36          NULL, /* interruptEnableFuncParam */
37          /* API function table */
38          {
39                  BHAB_3520_Open,
40                  BHAB_3520_Close,
41                  BHAB_3520_InitAp, 
42                  BHAB_3520_GetApStatus,
43                  BHAB_3520_GetApVersion,
44                  BHAB_3520_ReadRegister,
45                  BHAB_3520_WriteRegister,
46                  BHAB_3520_ReadMemory,
47                  BHAB_3520_WriteMemory,
48                  BHAB_3520_ReadMbox,
49                  BHAB_3520_WriteMbox,
50                  BHAB_3520_HandleInterrupt_isr,
51                  BHAB_3520_ProcessInterruptEvent,
52                  BHAB_3520_EnableLockInterrupt, 
53                  BHAB_3520_InstallInterruptCallback, 
54                  BHAB_3520_UnInstallInterruptCallback,
55                  BHAB_3520_SendHabCommand,
56                  BHAB_3520_GetLockStateChangeEventHandle,
57                  BHAB_3520_GetInterruptEventHandle
58          }
59};
60
61
62/******************************************************************************
63 BHAB_3520_GetDefaultSettings()
64******************************************************************************/
65BERR_Code BHAB_3520_GetDefaultSettings(
66        BHAB_Settings *pDefSettings /* [out] default settings */
67)
68{
69        *pDefSettings = defDevSettings;
70        return BERR_SUCCESS;
71}
Note: See TracBrowser for help on using the repository browser.