Home | History | Annotate | Download | only in Test
      1 /*
      2  * fwdriverdebug.h
      3  *
      4  * Copyright(c) 1998 - 2009 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 /* \file FW_debug.h
     36  *  \brief This file include private definitions for the FW debug module.
     37  */
     38 
     39 #ifndef __FW_DEBUG_H__
     40 #define __FW_DEBUG_H__
     41 
     42 
     43 #include "tidef.h"
     44 #include "public_infoele.h"
     45 #include "TWDriver.h"
     46 #include "TWDriverInternal.h"
     47 
     48 /*
     49  ***********************************************************************
     50  *	Constant definitions.
     51  ***********************************************************************
     52  */
     53 
     54 /* debug functions */
     55 #define DBG_FW_PRINT_HELP					 	0
     56 #define DBG_FW_SEND_GENERAL_TEST_CMD	    	1
     57 #define DBG_FW_IBSS_CONNECTION	        		2
     58 #define DBG_FW_SEND_MGMT_PACKET                	3
     59 #define DBG_FW_SEND_DATA_PACKET	                4
     60 #define DBG_FW_START_LOOPBACK      				5
     61 #define DBG_FW_STOP_LOOPBACK                    6
     62 #define DBG_FW_INFINIT_SEND	                    7
     63 #define DBG_FW_GENERAL		                    10
     64 
     65 /*
     66  ***********************************************************************
     67  *	Enums.
     68  ***********************************************************************
     69  */
     70 
     71 /*
     72  ***********************************************************************
     73  *	Typedefs.
     74  ***********************************************************************
     75  */
     76 
     77 /*
     78  ***********************************************************************
     79  *	Structure definitions.
     80  ***********************************************************************
     81  */
     82  typedef struct {
     83  INFO_ELE_HDR
     84  unsigned char len;
     85  unsigned long buf[20];
     86  }FWDebugTestCmdParamter_t;
     87 
     88  typedef struct {
     89  INFO_ELE_HDR
     90  TTestCmd     Plt;
     91  }FWDebugPLT_t;
     92 
     93 /*
     94  ***********************************************************************
     95  *	External data definitions.
     96  ***********************************************************************
     97  */
     98 
     99 /*
    100  ***********************************************************************
    101  *	External functions definitions
    102  ***********************************************************************
    103  */
    104 
    105 void FWDebugFunction(TI_HANDLE hDrvMain,
    106 					 TI_HANDLE hOs,
    107 					 TI_HANDLE hTWD,
    108 					 TI_HANDLE hMlme,
    109 					 TI_HANDLE hTxMgmtQ,
    110 					 TI_HANDLE hTxCtrl,
    111 					 unsigned long funcType,
    112 					 void *pParam
    113 					 /*yael unsigned long packetNum*/);
    114 void FW_debugSendGeneralTestCmd(TI_HANDLE hTWD, void *pParam);
    115 void FW_DebugSendJoinCommand(TI_HANDLE hTWD, TI_HANDLE hTxMgmtQ);
    116 void FW_DebugSendPacket(TI_HANDLE hDrvMain ,TI_HANDLE hOs, TI_HANDLE hTxMgmtQ, void* pParam);
    117 void FW_DebugInfinitSendPacket(TI_HANDLE hDrvMain ,TI_HANDLE hOs);
    118 void FW_DebugStartLoopBack (TI_HANDLE hDrvMain, TI_HANDLE hTWD);
    119 void FW_DebugStopLoopBack (TI_HANDLE hDrvMain, TI_HANDLE hTWD);
    120 void FW_ComparePacket (char *buf);
    121 void printFWDbgFunctions(void);
    122 void FW_DebugGeneral(TI_HANDLE hTWD, void *pParam);
    123 
    124 
    125 
    126 #endif
    127 
    128