Home | History | Annotate | Download | only in RecoverCtrl
      1 /****************************************************************************
      2 **+-----------------------------------------------------------------------+**
      3 **|                                                                       |**
      4 **| Copyright(c) 1998 - 2008 Texas Instruments. All rights reserved.      |**
      5 **| All rights reserved.                                                  |**
      6 **|                                                                       |**
      7 **| Redistribution and use in source and binary forms, with or without    |**
      8 **| modification, are permitted provided that the following conditions    |**
      9 **| are met:                                                              |**
     10 **|                                                                       |**
     11 **|  * Redistributions of source code must retain the above copyright     |**
     12 **|    notice, this list of conditions and the following disclaimer.      |**
     13 **|  * Redistributions in binary form must reproduce the above copyright  |**
     14 **|    notice, this list of conditions and the following disclaimer in    |**
     15 **|    the documentation and/or other materials provided with the         |**
     16 **|    distribution.                                                      |**
     17 **|  * Neither the name Texas Instruments nor the names of its            |**
     18 **|    contributors may be used to endorse or promote products derived    |**
     19 **|    from this software without specific prior written permission.      |**
     20 **|                                                                       |**
     21 **| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS   |**
     22 **| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT     |**
     23 **| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |**
     24 **| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT  |**
     25 **| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |**
     26 **| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT      |**
     27 **| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |**
     28 **| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |**
     29 **| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT   |**
     30 **| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |**
     31 **| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  |**
     32 **|                                                                       |**
     33 **+-----------------------------------------------------------------------+**
     34 ****************************************************************************/
     35 
     36 /***************************************************************************/
     37 /*																		   */
     38 /*	  MODULE:	recoveryMgr.h										       */
     39 /*    PURPOSE:	RecoveryMgr module Header file                             */
     40 /*																		   */
     41 /***************************************************************************/
     42 #ifndef _RECOVERY_CTRL_H_
     43 #define _RECOVERY_CTRL_H_
     44 
     45 #include "osTIType.h"
     46 
     47 
     48 /* State-Machine States */
     49 typedef enum
     50 {
     51 	REC_CTRL_STATE_IDLE,				/*  */
     52 	REC_CTRL_STATE_WAIT_END_CURR_TXN,	/*  */
     53 	REC_CTRL_STATE_INIT_CMPLT,			/*  */
     54 	REC_CTRL_STATE_END_RECONFIG
     55 } recoveryCtrlSmState_e;
     56 
     57 /* Callback function definition for EndOfRecovery */
     58 typedef void (* EndOfRecoveryCB_t)(TI_HANDLE CBObj);
     59 
     60 /* The module object. */
     61 typedef struct
     62 {
     63 	/* Handles */
     64 	TI_HANDLE hOs;
     65 	TI_HANDLE hReport;
     66 	TI_HANDLE hTNETWIF;
     67 	TI_HANDLE hTxXfer;
     68 	TI_HANDLE hRxXfer;
     69 	TI_HANDLE hTxResult;
     70 	TI_HANDLE hMacServices;
     71 	TI_HANDLE hTxCtrlBlk;
     72 	TI_HANDLE hTxHwQueue;
     73 	TI_HANDLE hHalCtrl;
     74 	TI_HANDLE hHalRx;
     75 	TI_HANDLE hHwIntr;
     76 	TI_HANDLE hWhalParams;
     77 	TI_HANDLE hCmdQueue;
     78 	TI_HANDLE hFwEvent;
     79 	TI_HANDLE hCmdMBox;
     80 	TI_HANDLE hHwInit;
     81 
     82 	TI_HANDLE hTNETWArb;//hBusArbiter;
     83 	TI_HANDLE hBusTxn;
     84 	TI_HANDLE hELPCtrl;
     85 
     86 	TI_HANDLE hScanSRV;
     87 	TI_HANDLE hMeasurementSRV;
     88 	TI_HANDLE hPowerSrv;
     89 	TI_HANDLE hPowerAutho;
     90 
     91 	TI_HANDLE hRecoveryMgr;
     92 	EndOfRecoveryCB_t endOfRecoveryCB;		/* EndOfRecovery callback */
     93 
     94 	recoveryCtrlSmState_e smState;			/* The current state of the SM. */
     95 
     96 } recoveryCtrl_t;
     97 
     98 
     99 #endif /* _RECOVERY_CTRL_H_ */
    100