platforms/os/Symbian/WVSS/src/utils/wlantraceconfig.h
changeset 0 10c42ec6c05f
equal deleted inserted replaced
-1:000000000000 0:10c42ec6c05f
       
     1 /*
       
     2  * wlantraceconfig.h
       
     3  *
       
     4  * Copyright(c) 1998 - 2010 Texas Instruments. All rights reserved.      
       
     5  * All rights reserved.      
       
     6  * 
       
     7  * This program and the accompanying materials are made available under the 
       
     8  * terms of the Eclipse Public License v1.0 or BSD License which accompanies
       
     9  * this distribution. The Eclipse Public License is available at
       
    10  * http://www.eclipse.org/legal/epl-v10.html and the BSD License is as below.                                   
       
    11  *                                                                       
       
    12  * Redistribution and use in source and binary forms, with or without    
       
    13  * modification, are permitted provided that the following conditions    
       
    14  * are met:                                                              
       
    15  *                                                                       
       
    16  *  * Redistributions of source code must retain the above copyright     
       
    17  *    notice, this list of conditions and the following disclaimer.      
       
    18  *  * Redistributions in binary form must reproduce the above copyright  
       
    19  *    notice, this list of conditions and the following disclaimer in    
       
    20  *    the documentation and/or other materials provided with the         
       
    21  *    distribution.                                                      
       
    22  *  * Neither the name Texas Instruments nor the names of its            
       
    23  *    contributors may be used to endorse or promote products derived    
       
    24  *    from this software without specific prior written permission.      
       
    25  *                                                                       
       
    26  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS   
       
    27  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT     
       
    28  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
       
    29  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT  
       
    30  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
       
    31  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT      
       
    32  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
       
    33  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
       
    34  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT   
       
    35  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
       
    36  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
       
    37  */
       
    38 
       
    39 /* order matches that in CDebugOutput.cpp */
       
    40 #define WLAN_MODULE_ID_WLAN_OSA			 			0
       
    41 #define WLAN_MODULE_ID_SPI_CLIENT 				1
       
    42 #define WLAN_MODULE_ID_WLAN_WHA				 		2
       
    43 #define WLAN_MODULE_ID_SPIA	 					3
       
    44 #define WLAN_MODULE_ID_CONTROL 					4
       
    45 #define WLAN_MODULE_ID_WLAN_HPA                  5
       
    46 
       
    47 
       
    48 #define TRACE_ENABLED 	1
       
    49 #define TRACE_DISABLED 	2
       
    50 
       
    51 
       
    52 #ifdef _DEBUG
       
    53 	/* UDEB */
       
    54 	/* enable all TI trace - check MACROs in wlanpdd.mmh */
       
    55 	#if defined(REPORT_LOG) && defined(TI_DBG)
       
    56 		#define WLAN_TI_TRACE_ENABLED 			TRACE_ENABLED
       
    57 	#else
       
    58 		#define WLAN_TI_TRACE_ENABLED 			TRACE_DISABLED //trace is disabled because it is not enabled in wlanpdd.mmh
       
    59 	#endif
       
    60 
       
    61 	/* file specific */
       
    62 	#define WLAN_OSA				 			TRACE_DISABLED
       
    63 	#define WLAN_SPI_CLIENT 					TRACE_DISABLED
       
    64 	#define WLAN_WHA				 			TRACE_DISABLED
       
    65 	#define WLAN_SPIA 							TRACE_DISABLED
       
    66 	#define WLAN_CONTROL 						TRACE_DISABLED
       
    67     #define WLAN_HPA 						    TRACE_DISABLED
       
    68 	
       
    69 	/* action specific */
       
    70 	#define PROCESS_TRACE_ENABLED 			TRACE_DISABLED
       
    71 	#define IRQ_TRACE_ENABLED 				TRACE_DISABLED
       
    72 	#define PACKET_DATA_TRACE_ENABLED 		TRACE_DISABLED
       
    73 	#define SPI_DATA_TRACE_ENABLED 			TRACE_DISABLED
       
    74 	#define TIMER_TRACE_ENABLED 				TRACE_DISABLED
       
    75 	#define MEMORY_TRACE_ENABLED 				TRACE_DISABLED
       
    76 
       
    77 	/* should always be enabled - to show any errors */
       
    78 	#define ERROR_TRACE_ENABLED 				TRACE_ENABLED
       
    79 
       
    80 #else
       
    81 	/* UREL */
       
    82 	/* Must be disbled in urel build - will not compile if it is not!!! */
       
    83 	#define WLAN_TI_TRACE_ENABLED 			TRACE_DISABLED
       
    84 	#define WLAN_OSA				 			TRACE_DISABLED
       
    85 	#define WLAN_SPI_CLIENT 					TRACE_DISABLED
       
    86     #define WLAN_WHA 							TRACE_DISABLED
       
    87     #define WLAN_SPIA 							TRACE_DISABLED
       
    88 	#define WLAN_CONTROL 						TRACE_DISABLED
       
    89     #define WLAN_HPA 						    TRACE_DISABLED
       
    90 
       
    91 	#define PROCESS_TRACE_ENABLED 			TRACE_DISABLED
       
    92 	#define IRQ_TRACE_ENABLED 					TRACE_DISABLED
       
    93 	#define PACKET_DATA_TRACE_ENABLED 		TRACE_DISABLED
       
    94 	#define SPI_DATA_TRACE_ENABLED 			TRACE_DISABLED
       
    95 	#define TIMER_TRACE_ENABLED 				TRACE_DISABLED
       
    96 	#define MEMORY_TRACE_ENABLED 				TRACE_DISABLED
       
    97 	#define ERROR_TRACE_ENABLED 				TRACE_DISABLED
       
    98 
       
    99 #endif