usb_trc.h 23.8 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617
/*****************************************************************************
*  Copyright Statement:
*  --------------------
*  This software is protected by Copyright and the information contained
*  herein is confidential. The software may not be copied and the information
*  contained herein may not be used or disclosed except with the written
*  permission of MediaTek Inc. (C) 2005
*
*  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
*  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
*  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
*  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
*  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
*  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
*  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
*  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
*  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
*  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
*  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
*  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
*  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
*  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
*  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
*  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
*  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. 
*
*  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
*  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
*  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
*  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
*  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/

/*****************************************************************************
 *
 * Filename:
 * ---------
 * usb_trc.h
 *
 * Project:
 * --------
 *   Maui_Software
 *
 * Description:
 * ------------
 *   This file defines the index trace of USB module
 *
 * Author:
 * -------
 * -------
 *
 *==============================================================================
 *             HISTORY
 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *------------------------------------------------------------------------------
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 * removed!
 *
 *------------------------------------------------------------------------------
 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *============================================================================
 ****************************************************************************/
#ifndef _USB_TRC_H
#define _USB_TRC_H

#include "kal_trace.h"
#include "stack_config.h"

#ifdef __TST_MODULE__
	#ifndef GEN_FOR_PC
		#ifndef _STACK_CONFIG_H
			#error "stack_config.h should be included before tst_config.h"
		#endif
	#endif /* GEN_FOR_PC */

	#ifndef _KAL_TRACE_H
		#error "kal_trace.h should be included before tst_trace.h"
	#endif

#if !defined(GEN_FOR_PC)
#if defined(__TST_MODULE__) || defined(__CUSTOM_RELEASE__)
    #include "usb_trc_gen.h"
#endif /* TST Trace Defintion */
#endif
#ifdef __USB_ENABLE__
	BEGIN_TRACE_MAP(MOD_USB)
#else /*!__USB_ENABLE__*/
	BEGIN_TRACE_MAP(MOD_UART1_HISR)
#endif   /*__USB_ENABLE__*/

	TRC_MSG(USB_RESET_TIMES, "USB reset %d times")
	TRC_MSG(USB_IS_SUSPEND, "USB is suspend")
	TRC_MSG(USB_IS_RESUME, "USB is resume")
	TRC_MSG(USB_IS_DISCONN, "USB is disconnect")	
	TRC_MSG(USB_IS_CONFIGURE, "USB is configured")
	TRC_MSG(USB_CONFIG_NUM, "USB configure number is %d , USB support current table index is %d")	
	TRC_MSG(USB_CURRENT_TABLE, "USB support current is %x")			
	TRC_MSG(USB_EP0_SetFeature, "USB cmd clear/set Feature")
	TRC_MSG(USB_EP0_Clear_Stall,"USB Clear EndPoint")
	TRC_MSG(USB_EP0_SET_ADDR,"USB Set Address")
	TRC_MSG(USB_EP0_GET_DESCRIPT,"USB Get Descriptor")
	TRC_MSG(USB_EP0_SET_CONFIG,"USB Set Configuration")
	TRC_MSG(USB_EP0_GET_CONFIG,"USB Get Configuration")	
	TRC_MSG(USB_EP0_SET_INTER,"USB Set Interface")
	TRC_MSG(USB_EP0_GET_INTER,"USB Get Interface")		
	TRC_MSG(USB_EP0_GET_STAT,"USB Get Status")
	TRC_MSG(USB_EP0_UNSUPPORT,"USB ep0 un-expected Command")										
	TRC_MSG(USB_PLUG_OUT, "USB is plugged out")
	TRC_MSG(USB_GET_MEMORY_ADDR, "USB memory left: %x , Memory length : %d")	
	TRC_MSG(USB_HISR_State, "USB interrupt  state %x ,USB mode %x , Line_State %x , OP_State %x")
	TRC_MSG(USB_EP_UNEXPECTED_TX_HISR, "USB TX ep %d have a unexpected interrupt with TXCSR %d")
	TRC_MSG(USB_EP_UNEXPECTED_RX_HISR, "USB RX ep %d have a unexpected interrupt with RXCSR %d")
	TRC_MSG(USB_DRV_IS_ERROR_1, "HW ERROR: error status is %d, fast mode status is %d")
	TRC_MSG(USB_DRV_IS_ERROR_2, "HW ERROR in host mode")
	TRC_MSG(USB_DRV_IS_ERROR_3, "HW ERROR D+ down")
	TRC_MSG(USB_Register, "USB Register Address: 0x%x , Value: 0x%x ")
	TRC_MSG(USB_DRV_RX_ERROR, "USB received a RX endpoint intr no %d with status %x")
	TRC_MSG(USBACM_DMA_Setup, "USB DMA Setup %d bytes by USB port %d")
	TRC_MSG(USBACM_DMA_Running, "USB DMA Running on endpoint %d by USB port %d")
	TRC_MSG(USB_RESET_Data_Toggle, "USB DMA Running just before Clear Feature on endpoint %d")	
	TRC_MSG(USB_HW_State, "USB OP state %x  Line state %x")	
	TRC_MSG(USB_TX_DEBUG, "USB TXCSR %x DMA State %x")
	TRC_MSG(USB_RX_DEBUG, "USB RXCSR %x DMA State %x")
	TRC_MSG(USB_DMA_DEBUG, "USB DMA Count %d Real Count %d")	
	TRC_MSG(USB_REMOTE_WAKEUP, "USB REMOTE WAKEUP %d")		
	TRC_MSG(USB_DMA_HW_Intr,"USB DMA Interrupt %d")
	TRC_MSG(USBACM_DMA_CALLBACK, "USB DMA TX callback %d bytes by USB port %d")
	TRC_MSG(USBACM_DMA_Setup2, "USB DMA Setup Again by USB port %d")
	TRC_MSG(USBACM_DMA_Setup0, "DMA with no Data and doesn't setup by USB port %d")
	TRC_MSG(USB_UTMI_SIGNAL, "UTMI Signal 61A = %x 61B = %x 61C = %x 61D = %x")
	TRC_MSG(USB_TXCSR_SET2, "USB TXCSR Setup with USB_TXCSR_TXPKTRDY already set")
	TRC_MSG(USB_TXCSR_SET, "USB DMA Callback and set TXCSR for short packet")	
	TRC_MSG(USBACM_CTRL_DCD, "USB COMPORT: Ctrl DCD to USB port %d")
	TRC_MSG(USBACM_CTRL_BREAK, "USB COMPORT: Ctrl Break to USB port %d")
	TRC_MSG(USBACM_SET_BAUDRATE, "USB COMPORT: Set BaudRate to USB port %d")
	TRC_MSG(USBACM_SET_AUTO_BAUDRATE, "USB COMPORT: Set AutoBaud Div to USB port %d")
	TRC_MSG(USBACM_CTRL_RI, "USB COMPORT: Ctrl RI to USB port %d")
	TRC_MSG(USBACM_CTRL_DTR, "USB COMPORT: Ctrl DTR to USB port %d")
	TRC_MSG(USBACM_THRESHOLD_ON, "Set threshold is ON to USB port %d")
	TRC_MSG(USBACM_THRESHOLD_OFF, "Set threshold is OFF to USB port %d")
	TRC_MSG(USBACM_PC_SENT,  "PC sent %d bytes to USB port %d")
	TRC_MSG(USBACM_RESET_READY_TO_READ_FLAG, "reset ready to read flag by USB port %d")
	TRC_MSG(USBACM_INIT_READY_TO_READ_FLAG, "initialize ready to read flag by USB port %d")
	TRC_MSG(USBACM_OPEN_READY_TO_READ_FLAG, "open by %d owner reset ready to read flag by USB port %d")
	TRC_MSG(USBACM_CLEAR_RX_BUF_READY_TO_READ_FLAG, "Clear RX buf by %d owner reset ready to read flag to USB port %d")
	TRC_MSG(USBACM_CLEAR_TX_BUF_READY_TO_READ_FLAG, "Clear TX buf by %d owner reset ready to read flag to USB port %d")
	TRC_MSG(USBACM_INTR, "ACM intr pipe sent %d bytes by USB port %d")
	TRC_MSG(USBACM_CLEAR_TX_ISR_BUF, "Clear TX ISR buffer to USB port %d")
	TRC_MSG(USBACM_OPEN, "USB ACM UART OPEN to USB port %d")
	TRC_MSG(USBACM_CLOSE, "USB ACM UART close by %d owner to USB port %d")
	TRC_MSG(USBACM_SET_OWNER, "USB ACM set %d owner to USB port %d")
//	TRC_MSG(USBACM_SEND_ISR_DATA, "USB ACM send ISR data %d bytes by USB port %d")
//	TRC_MSG(USBACM_PUT_ISR_BYTES, "USB ACM put ISR bytes %d bytes by USB port %d")
	TRC_MSG(USBACM_PUT_BYTES, "USB ACM put bytes %d bytes to USB port %d")
	TRC_MSG(USBACM_PUT_BYTES_FAIL, "USB ACM put bytes fail due to USB wrong state")
	TRC_MSG(USBACM_PUT_BYTES_BUF_FULL, "USB ACM buffer is full because put bytes by %d owner to USB port %d")
	TRC_MSG(USBACM_CLEAR_RX_BUF, "USB ACM clear RX buffer by USB port %d")
	TRC_MSG(USBACM_GET_BYTES_BUF_EMPTY, "USB ACM buffer is empty because get bytes by %d owner to USB port %d")
	TRC_MSG(USBACM_FAIL_NOT_UNMASK, "USB ACM not unmask because USB fail by USB port %d")
	TRC_MSG(USBACM_GET_BYTES, "USB ACM get bytes %d bytes to USB port %d")
	TRC_MSG(USBACM_CLEAR_TX_BUF, "USB ACM clear TX buffer to USB port %d")
	TRC_MSG(USBACM_CLEAR_RDY_W, "USB ACM clear readt to write flag by %d owner to USB port %d")
	TRC_MSG(USBACM_EP0_COMMAND, "USB ACM EP0 Command %d by USB port %d")
//	TRC_MSG(USBACM_TX_CLEAR_UNDERRUN, "USB Clear TX UnderRun by USB port %d")
	TRC_MSG(USBACM_SET_DMA_LIMITER, "%d owner set DMA Limiter as %d to USB port %d")
	TRC_MSG(USBACM_CLEAR_DMA_LIMITER, "%d owner Clear DMA Limiter to USB port %d")
	TRC_MSG(USBIMAGE_GET, "Printer send %d bytes")
	TRC_MSG(USBIMAGE_ERROR_CMDS, "PTP receive an error command %d")
	TRC_MSG(USBMS_RX_WRONG_CBW_LENGTH, "USB MS receive a wrong length (%d) CBW cmd packet")
	TRC_MSG(USBMS_RESET,"USB MS Receive Reset")
	TRC_MSG(USBMS_ERROR_CMD, "USB MS %d error cmd")
	TRC_MSG(USBMS_LOCKFAT_FAIL, "USB MS lock FAT fail")
	TRC_MSG(USBVIDEO_INIT, "USB video is init")
	TRC_MSG(USBVIDEO_RELEASE, "USB video is released")
	TRC_MSG(USBVIDEO_VC_ERROR_CMD, "USB video VC %d error cmd")
	TRC_MSG(USBVIDEO_VS_ERROR_CMD, "USB video VS %d error cmd")
	TRC_MSG(USBVIDEO_STILL_PROBE_NONE, "USB video reset still commit index because video commit doen")
	TRC_MSG(USBVIDEO_SET_COMMIT_VIDEO_STATE, " USB video Set commit video state %d")
	TRC_MSG(USBVIDEO_SET_PROB_CONTROL_ERROR, "USB video Set Probe control command received %d, and total length is %d > 26")
	TRC_MSG(USBVIDEO_STILL_COMMIT_DONE, "USB video still commit %d index")
	TRC_MSG(USBVIDEO_SET_STILL_PROB_CONTROL_ERROR, "USB video Set Still Probe control command received %d, and total length is %d > 11")
	TRC_MSG(USBVIDEO_GET_BUFFER, "USB video get video buffer buff r %d, w%d, f %d ")
	TRC_MSG(USBVIDEO_COMPLETE_BUFFER, "USB video complete video buffer buff r %d, w%d, f %d ")
	TRC_MSG(USBVIDEO_DMA_DONE, "USB video DMA done buff r %d, w%d, f %d ")
	TRC_MSG(USBVIDEO_STILL_ERROR, "WARNING: state is still but commit is 0")
	TRC_MSG(USBVIDEO_DCM_FREED, "WARNING: WEBCAM DCM HAVE BEEN FREED")	
	TRC_MSG(USB_HCD_BABBLE_INTR, "USB hcd detect babble")
	TRC_MSG(USB_HCD_CONN_INTR, "USB hcd detect connection")
	TRC_MSG(USB_HCD_DISCONN_INTR, "USB hcd detect disconnection")
	TRC_MSG(USB_HCD_CONN_AND_DISCONN_INTR, "USB hcd detect connection and disconnection at the same time")
	TRC_MSG(USB_HCD_TX_EPN_TIMEOUT, "USB hcd TX ep %d time out")
	TRC_MSG(USB_HCD_RX_EPN_TIMEOUT, "USB hcd RX ep %d time out")
	TRC_MSG(USB_HCD_TX_EPN_ERROR, "USB hcd TX ep %d error")
	TRC_MSG(USB_HCD_RX_EPN_ERROR, "USB hcd RX ep %d error")
	TRC_MSG(USB_HCD_TX_EPN_STALL, "USB hcd TX ep %d stall")
	TRC_MSG(USB_HCD_RX_EPN_STALL, "USB hcd RX ep %d stall")
	TRC_MSG(USB_HCD_RX_EPN_PID_ERROR, "USB hcd RX ep %d PID error")	
	TRC_MSG(USB_HCD_EP0,"USB hcd ep0 data length,already received %d, required length %d")
	TRC_MSG(USB_HCD_EP0_RX,"USB hcd ep0 rx data done,already received %d, required length %d, max packet %d")	
	TRC_MSG(USB_HCD_RX_DMA_TIMEOUT, "USB hcd RX DMA is timeout")	
	TRC_MSG(USB_HCD_TEST_UN_SUPPORT, "USB hcd test for un-support device.")
	TRC_MSG(USB_HCD_RESPONSE_ERROR, "USB hcd get stall from device and doesn't support HNP")
	TRC_MSG(USB_HCD_ENUM_FAIL, "USB hcd enumeration fail")			
	TRC_MSG(USB_HCD_COMMAND_FAIL, "USB hcd get response length error")
	TRC_MSG(USB_HCD_UN_SUPPORT, "USB hcd dones't support the class driver")		
	TRC_MSG(USB_OTG_SESSION_REQUEST, "USB A device detects B device issue session request, and USB interrupt  state %x ,USB mode %x , Line_State %x , OP_State %x")
	TRC_MSG(USB_OTG_VBUS_FALL_DOWN, "USB B device drag too much current than expected.A device going to trun off Vbus")
	TRC_MSG(USB_OTG_DMA_STATUS, "OTG DMA Status  Real Count: %d  Count: %d  host channel: %d  device channel: %d")
	TRC_MSG(USB_HOST_MS_STATE_START_FAIL, "USB host ms state start fail")
	TRC_MSG(USB_HOST_MS_STATE_MAIN_FAIL, "USB host ms state main fail")
	TRC_MSG(USB_HOST_MS_REQUEST_SENSE_OK, "USB lun %d sense ok")
	TRC_MSG(USB_HOST_MS_REQUEST_SENSE_MEDIA_CHANGE, "USB lun %d sense media change")
	TRC_MSG(USB_HOST_MS_REQUEST_SENSE_ABSENT, "USB lun %d sense absent")
	TRC_MSG(USB_HOST_MS_REQUEST_SENSE_ERROR, "USB lun %d sense error")
	TRC_MSG(USB_HOST_MS_READ_CAPACITY_FAIL, "USB lun %d read capacity is fail because its sector number is %d and sector size is %d")
	TRC_MSG(USB_HOST_MS_READ_CAPACITY_OK, "USB lun %d read capacity is OK and its sector number is %d and sector size is %d")
	TRC_MSG(USB_HOST_MS_CHECK_MEDIA_STATE, "USB MS host check media state %x")
	TRC_MSG(USB_HOST_MS_MEDIA_STATE_CHANGE, "USB MS host lun %d has state change")
	TRC_MSG(USB_HOST_MS_READ_FAIL, "USB MS host lun %d read fail")
	TRC_MSG(USB_HOST_MS_WRITE_FAIL, "USB MS host lun %d write fail")
	TRC_MSG(USB_HOST_MS_READ_SECTOR_FAIL, "USB MS host lun %d read sector %d with numbers %d fail because of reason %d")
	TRC_MSG(USB_HOST_MS_READ_SECTOR_OK, "USB MS host lun %d read sector %d with numbers %d is OK")
	TRC_MSG(USB_HOST_MS_WRITE_SECTOR_FAIL, "USB MS host lun %d write sector %d with numbers %d fail because of reason %d")
	TRC_MSG(USB_HOST_MS_WRITE_SECTOR_OK, "USB MS host lun %d write sector %d with numbers %d is OK")
	TRC_MSG(USB_HOST_MS_READ_SECTOR_TIMEOUT_FAIL, "USB MS host lun %d read sector fail because of timeout")
	TRC_MSG(USB_HOST_MS_WRITE_SECTOR_TIMEOUT_FAIL, "USB MS host lun %d write sector fail because of timeout")
	TRC_MSG(USB_HOST_ICCD_POWER_ON_OK, "IC USB ICCD  power on")	
	TRC_MSG(USB_HOST_ICCD_POWER_ON_Fail,"IC USB ICCD  power on fail")	
	TRC_MSG(USB_HOST_ICCD_POWER_OFF_OK, "IC USB ICCD  power off")	
	TRC_MSG(USB_HOST_ICCD_XFR_BLOCK_OK, "IC USB ICCD  TX Command:  %d length")	
	TRC_MSG(USB_HOST_ICCD_DATA_BLOCK_OK, "IC USB ICCD  RX Command:  %d length")	
	TRC_MSG(USB_HOST_ICCD_SLOT_STATUS_OK, "IC USB ICCD  Status %x")							
	TRC_MSG(USB_HOST_EEM_START, "IC USB EEM Start")	
	TRC_MSG(USB_HOST_EEM_END,"IC USB EEM Finish")	
	TRC_MSG(USB_HOST_EEM_SEND_FRAME, "IC USB EEM Send Frame: length : %d")	
	TRC_MSG(USB_HOST_EEM_SEND_FRAME_BUFFER, "IC USB EEM Send out buffer %d, waiting buffer %d")	
	TRC_MSG(USB_HOST_EEM_TX_DMA_Callback, "IC USB EEM TX DMA Callback buffer %d ,length: %d")		
	TRC_MSG(USB_HOST_EEM_GET_RX_BUFFER, "IC USB EEM Get RX buffer %d")	
	TRC_MSG(USB_HOST_EEM_RECEIVE_DATA, "IC USB EEM Receive Frame: length %d")
	TRC_MSG(USB_HOST_EEM_RECEIVE_DATA_BUFFER, "IC USB EEM Receive buffer %d,waiting buffer %d")
	TRC_MSG(USB_HOST_EEM_RX_DMA_Callback, "IC USB EEM RX DMA Callback buffer %d,length: %d")	
	TRC_MSG(USB_HOST_EEM_RX_FIFO_Read, "IC USB EEM RX FIFO Read buffer %d, length: %d")	
	TRC_MSG(USB_HOST_EEM_RECEIVE_DATA_ERROR, "IC USB EEM RX Data Error reason %d")
	TRC_MSG(USB_PDN_LOOP_FAIL, "USB pdnmode function's while loop count is overflow")
	TRC_MSG(USB_HOST_HIGH_RX_WRONG_MAX_PKT_SIZE, "USB host RX high endpoint max packet size is wrong")
	TRC_MSG(USB_HOST_FULL_RX_WRONG_MAX_PKT_SIZE, "USB host RX full endpoint max packet size is wrong")
	TRC_MSG(USB_HOST_HIGH_TX_WRONG_MAX_PKT_SIZE, "USB host TX high endpoint max packet size is wrong")
	TRC_MSG(USB_HOST_FULL_TX_WRONG_MAX_PKT_SIZE, "USB host TX full endpoint max packet size is wrong")
	TRC_MSG(USB_PTP_HREQUEST_ERROR, "WARNING!! 2 HREQUEST")
	TRC_MSG(USB_PTP_DREQUEST_ERROR, "WARNING!! 2 DREQUEST")
	TRC_MSG(USB_MTP_RESPONSE_WARNING, "USB receive MTP response message, but USB is in %d state")
	TRC_MSG(USB_MTP_RESPONSE_UNEXPECTED_ZERO_WARNING, "USB receive MTP response message with a zero length")
	TRC_MSG(USBIMAGE_EP0_RESET, "USB image receive ep0 reset command")
	TRC_MSG(USBIMAGE_EP0_CANCEL, "USB image receive ep0 cancel command")
	TRC_MSG(USBIMAGE_EP0_GET_STATUS_BUSY, "USB image response ep0 get status command with busy")
	TRC_MSG(USBIMAGE_EP0_GET_STATUS_OK, "USB image response ep0 get status command with OK")
	TRC_MSG(USBIMAGE_EP0_GET_STATUS_CANCEL, "USB image response ep0 get status command with transaction cancelled")
	TRC_MSG(USBIMAGE_EP0_CANCEL_ERROR, "USB ep0 cancel command with wrong transaction ID %d, but current ID is %d")
	TRC_MSG(USB_MTP_TX_RESPONSE_INVAILD_MTP_MSG, "USB in TX direction receive invalid MTP meaasge with result code %d and response code %x")
	TRC_MSG(USB_MTP_RX_RESPONSE_INVAILD_MTP_MSG, "USB in RX direction receive invalid MTP meaasge with result code %d and response code %x")
	TRC_MSG(USB_MTP_PC_SEND_WRONG_PACKET, "USB MTP receive a packet with %d length at wrong state %d")
	TRC_MSG(USB_HW_ERROR_STATUS, "USB HW ERROR: %d, fast mode: %d")
	TRC_MSG(USB_HOST_HW_ERROR, "USB HW ERROR in host mode")
	TRC_MSG(USB_PULL_DOWN_DP, "USB HW ERROR D+ down")
	TRC_MSG(USBACM_ENABLE_HIGH_SPEED_IF, "USB PPP enables high speed IF and current RX buffer write index is %d")
	TRC_MSG(USBACM_DISABLE_HIGH_SPEED_IF, "USB PPP disables high speed IF and current RX ring buffer read pointer is %d")
	TRC_MSG(USBACM_DISABLE_HIGH_SPEED_IF_TIMEOUT, "USB PPP disables high speed timeout, timeout count is %d")
	TRC_MSG(USBACM_MOVE_RC_INDEX, "USB move read clear index, and current RX buffer write index is %d, buffer count is %d, read clear index is %d, and read index is %d")
	TRC_MSG(USBACM_MOVE_R_INDEX, "USB move read index, and current RX buffer write index is %d, buffer count is %d, read clear index is %d, and read index is %d")
	TRC_MSG(USBACM_MOVE_W_INDEX, "USB move write index, and current RX buffer write index is %d, buffer count is %d, read clear index is %d, and read index is %d")
	TRC_MSG(USBACM_HIGHSPEED_GETBYTES, "USB ACM high speed IF get bytes with %d bytes from USB port %d")
	TRC_MSG(USBACM_HIGHSPEED_GETBYTES_NO_DATA, "USB ACM high speed IF get bytes no data by %d owner from USB port %d")
	TRC_MSG(USBACM_HIGHSPEED_PUTBYTES, "USB ACM high speed IF put bytes with %d bytes from USB port %d")
	TRC_MSG(USBACM_HIGHSPEED_PUTBYTES_SETUP_DMA, "USB ACM high speed IF put bytes ser up DMA with %d bytes from USB port %d")
	TRC_MSG(USBACM_HIGHSPEED_PUTBYTES_DMA_IS_RUNNING, "USB ACM high speed IF put bytes and DMA is running")
	TRC_MSG(USBACM_HIGHSPEED_PUTBYTES_FAIL, "USB ACM high speed IF put bytes fail due to USB wrong state")
	TRC_MSG(USB_ISD_ENABLE_HIGH_SPEED_IF, "USB RNDIS enables high speed IF and current RX buffer write index is %d")
	TRC_MSG(USB_ISD_DISABLE_HIGH_SPEED_IF, "USB RNDIS disables high speed IF and current RX ring buffer read pointer is %d")
	TRC_MSG(USB_ISD_DISABLE_HIGH_SPEED_IF_TIMEOUT, "USB RNDIS disables high speed timeout, timeout count is %d")
	TRC_MSG(USBACM_FLC_MOVE_RC_INDEX, "USB control pipe move read clear index, and current RX buffer write index is %d, buffer count is %d, read clear index is %d, and read index is %d")
	TRC_MSG(USBACM_FLC_MOVE_R_INDEX, "USB control pipe move read index, and current RX buffer write index is %d, buffer count is %d, read clear index is %d, and read index is %d")
	TRC_MSG(USBACM_FLC_MOVE_W_INDEX, "USB control pipe move write index, and current RX buffer write index is %d, buffer count is %d, read clear index is %d, and read index is %d")
	TRC_MSG(USBACM_FLC_HIGHSPEED_GETBYTES, "USB control pipe get bytes with %d bytes from USB port %d")
	TRC_MSG(USBACM_FLC_HIGHSPEED_GETBYTES_NO_DATA, "USB control pipe get bytes no data by %d owner from USB port %d")
	TRC_MSG(USBACM_FLC_HIGHSPEED_PUTBYTES, "USB control pipe  put bytes with %d bytes from USB port %d")
	TRC_MSG(USBACM_FLC_HIGHSPEED_PUTBYTES_SETUP_DMA, "USB control pipe put bytes ser up DMA with %d bytes from USB port %d")
	TRC_MSG(USBACM_FLC_HIGHSPEED_PUTBYTES_DMA_IS_RUNNING, "USB control pipe put bytes and DMA is running")
	TRC_MSG(USBACM_FLC_HIGHSPEED_PUTBYTES_FAIL, "USB control pipe put bytes fail due to USB wrong state")
	TRC_MSG(USBACM_RX_HIGHSPEED_BULK_OUT, "USB RX pipe : previous data len %d previous buffer addr  %x  current buffer addr %x")
	TRC_MSG(USBACM_RX_INDEX, "USB data RX index, and current RX buffer write index is %d, buffer count is %d, read clear index is %d, and read index is %d")
	TRC_MSG(USBACM_RX_DATA_HEADER,"USB RX pipe header : %x %x %x %x")
	TRC_MSG(USBACM_RX_PUSH,"USB RX buffer push, index %d")
	TRC_MSG(USBACM_RX_POP,"USB RX buffer pop, index %d")
	TRC_MSG(USBACM_RX_NO_BUFFER,"USB RX no buffer , data count: %d")
	TRC_MSG(USBACM_RX_FLC_DATA_HEADER,"USB control pipe rx header : %x %x %x %x")	
	TRC_MSG(USBACM_RX_FLC_PUSH,"USB control pipe rx buffer push, index %d")
	TRC_MSG(USBACM_RX_FLC_POP,"USB control pipe rx buffer pop, index %d")
	TRC_MSG(USBACM_RX_FLC_NO_BUFFER,"USB control pipe rx no buffer , data count: %d")	
	TRC_MSG(USBACM_Drop,"USB drop data , ep: %d , buffer index : %d")	
	TRC_MSG(USBACM_RX_FLC_HIGHSPEED_BULK_OUT, "USB RX pipe : previous data len %d previous buffer addr  %x  current buffer addr %x")	
	TRC_MSG(USBMS_READ_PERFORMANCE, "USB read performance %dKB/s")
	TRC_MSG(USBMS_WRITE_PERFORMANCE, "USB write performance %dKB/s")
	TRC_MSG(USBMS_CBWCMD, "USB CBW CMD 0x%x")
	TRC_MSG(USB_TEST_LOAD, "USB compliance test load")
#ifdef __USB_ENABLE__
	END_TRACE_MAP(MOD_USB)
#else /*!__USB_ENABLE__*/
	END_TRACE_MAP(MOD_UART1_HISR)
#endif   /*__USB_ENABLE__*/


#endif   /*__TST_MODULE__*/

#endif /* _USB_TRC_H */