1/* 2 * dataCtrlDbg.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#ifndef __DATA_CTRL_DBG_H__ 35#define __DATA_CTRL_DBG_H__ 36 37 38/* RX/TX debug functions */ 39typedef enum 40{ 41/* Tx debug functions */ 42/* 0 */ TX_RX_DBG_FUNCTIONS, 43/* 1 */ PRINT_TX_CTRL_INFO, 44/* 2 */ PRINT_TX_CTRL_COUNTERS, 45/* 3 */ PRINT_TX_DATA_QUEUE_INFO, 46/* 4 */ PRINT_TX_DATA_QUEUE_COUNTERS, 47/* 5 */ PRINT_TX_MGMT_QUEUE_INFO, 48/* 6 */ PRINT_TX_MGMT_QUEUE_COUNTERS, 49/* 7 */ PRINT_TX_CTRL_BLK_INFO, 50/* 8 */ PRINT_TX_HW_QUEUE_INFO, 51/* 9 */ PRINT_TX_XFER_INFO, 52/* 10 */ PRINT_TX_RESULT_INFO, 53/* 11 */ PRINT_TX_DATA_CLSFR_TABLE, 54/* 20 */ RESET_TX_CTRL_COUNTERS = 20, 55/* 21 */ RESET_TX_DATA_QUEUE_COUNTERS, 56/* 22 */ RESET_TX_DATA_CLSFR_TABLE, 57/* 23 */ RESET_TX_MGMT_QUEUE_COUNTERS, 58 59/* Rx debug functions */ 60/* 50 */ PRINT_RX_BLOCK = 50, 61/* 51 */ PRINT_RX_COUNTERS, 62/* 52 */ RESET_RX_COUNTERS, 63/* 53 */ PRINT_RX_THROUGHPUT_START, 64/* 54 */ PRINT_RX_THROUGHPUT_STOP 65 66} ERxTxDbgFunc; 67 68 69/* debg functions */ 70typedef enum 71{ 72/* 0 */ CTRL_PRINT_DBG_FUNCTIONS, 73/* 1 */ CTRL_PRINT_CTRL_BLOCK, 74/* 2 */ CTRL_PRINT_TX_PARAMETERS, 75/* 3 */ CTRL_SET_CTS_TO_SELF 76 77} ECtrlDbgFunc; 78 79 80void rxTxDebugFunction (TI_HANDLE hRxTxHandle, TI_UINT32 funcType, void *pParam); 81void ctrlDebugFunction (TI_HANDLE hCtrlData, TI_UINT32 funcType, void *pParam); 82 83 84#endif /* __DATA_CTRL_DBG_H__*/ 85 86 87