rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | /***************************************************************************** |
| 2 | * Copyright Statement: |
| 3 | * -------------------- |
| 4 | * This software is protected by Copyright and the information contained |
| 5 | * herein is confidential. The software may not be copied and the information |
| 6 | * contained herein may not be used or disclosed except with the written |
| 7 | * permission of MediaTek Inc. (C) 2005 |
| 8 | * |
| 9 | * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES |
| 10 | * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") |
| 11 | * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON |
| 12 | * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, |
| 13 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF |
| 14 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. |
| 15 | * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE |
| 16 | * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR |
| 17 | * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH |
| 18 | * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO |
| 19 | * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S |
| 20 | * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM. |
| 21 | * |
| 22 | * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE |
| 23 | * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE, |
| 24 | * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE, |
| 25 | * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO |
| 26 | * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. |
| 27 | * |
| 28 | * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE |
| 29 | * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF |
| 30 | * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND |
| 31 | * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER |
| 32 | * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC). |
| 33 | * |
| 34 | *****************************************************************************/ |
| 35 | |
| 36 | /******************************************************************************* |
| 37 | * Filename: |
| 38 | * --------- |
| 39 | * rtc_trc.h |
| 40 | * |
| 41 | * Project: |
| 42 | * -------- |
| 43 | * MAUI |
| 44 | * |
| 45 | * Description: |
| 46 | * ------------ |
| 47 | * This is trace map definition for RTC driver |
| 48 | * |
| 49 | * Author: |
| 50 | * ------- |
| 51 | * ------- |
| 52 | * |
| 53 | ****************************************************************************/ |
| 54 | #ifndef _RTC_TRC_H |
| 55 | #define _RTC_TRC_H |
| 56 | |
| 57 | |
| 58 | #ifndef GEN_FOR_PC |
| 59 | |
| 60 | #ifndef _STACK_CONFIG_H |
| 61 | #error "stack_config.h should be included before tst_config.h" |
| 62 | #endif |
| 63 | |
| 64 | #else |
| 65 | #include "kal_trace.h" |
| 66 | #endif /* GEN_FOR_PC */ |
| 67 | |
| 68 | |
| 69 | #ifndef _KAL_TRACE_H |
| 70 | #error "kal_trace.h should be included before tst_trace.h" |
| 71 | #endif |
| 72 | |
| 73 | #if !defined(GEN_FOR_PC) |
| 74 | #if defined(__TST_MODULE__) || defined(__CUSTOM_RELEASE__) |
| 75 | #include "rtc_trc_gen.h" |
| 76 | #endif /* TST Trace Defintion */ |
| 77 | #endif |
| 78 | BEGIN_TRACE_MAP(MOD_RTC_HISR) |
| 79 | |
| 80 | TRC_MSG(RTC_REPEAT_CALI_ADJUST_COUNT,"RTC adjust %d count for repeat calibration register") |
| 81 | TRC_MSG(RTC_REPEAT_CALI_VALUE,"RTC repeat calibration register value: %x") |
| 82 | TRC_MSG(RTC_REPEAT_CALI_VALUE_EXCEED_MAX,"RTC repeat calibration value %d exceed max") |
| 83 | TRC_MSG(RTC_REPEAT_CALI_VALUE_EXCEED_MIN,"RTC repeat calibration value %d exceed min") |
| 84 | TRC_MSG(RTC_REPEAT_CALI_PERFORM_CALI,"RTC repeat calibration perform for %d counts") |
| 85 | |
| 86 | TRC_MSG(RTC_ONESHOT_CALI_PERFORM_COUNT,"RTC one shot calibration for %d counts, remains %d counts") |
| 87 | TRC_MSG(RTC_ONESHOT_CALI_VALUE,"RTC oneshot calibration register value: %x") |
| 88 | TRC_MSG(RTC_ONESHOT_CALI_FINISH,"RTC oneshot calibration finish") |
| 89 | |
| 90 | TRC_MSG(RTC_HW_CALI_START_MEASURE_INACCURATE,"RTC HW cali, start to measure rtc inaccurate: (%d:%d:%d)") |
| 91 | TRC_MSG(RTC_HW_CALI_INIT_MEASURE_ACCURATE_L1_TICK,"RTC HW cali, init L1 tick: %d") |
| 92 | TRC_MSG(RTC_HW_CALI_FINISH_MEASURE_INACCURATE,"RTC HW cali, finish measuring rtc inaccurate: (%d:%d:%d)") |
| 93 | TRC_MSG(RTC_HW_CALI_FINISH_MEASURE_ACCURATE_L1_TICK,"RTC HW cali, finish L1 tick: %d, inaccurate ticks: %d") |
| 94 | TRC_MSG(RTC_HW_CALI_NO_NEED_TO_CALI,"RTC HW cali, no need to perform calibration, no diff count: %d") |
| 95 | TRC_MSG(RTC_HW_CALI_IN_PROGRESS,"RTC HW cali, in progress: (%d:%d:%d)") |
| 96 | TRC_MSG(RTC_HW_CALI_INIT_REPEAT_CALI_COUNT,"RTC HW cali, init repeat cali count: %d") |
| 97 | |
| 98 | TRC_MSG(RTC_SW_CALI_START_POWEROFF_CALI,"RTC SW cali, start to do power off cali") |
| 99 | TRC_MSG(RTC_SW_CALI_START_POWEROFF_CALI_TIME,"RTC SW cali, current time before power off cali: (%d:%d:%d)") |
| 100 | TRC_MSG(RTC_SW_CALI_FINISH_POWEROFF_CALI_TIME,"RTC SW cali, current time after power off cali: (%d:%d:%d)") |
| 101 | TRC_MSG(RTC_SW_CALI_FINISH_2ND_POWEROFF_CALI,"RTC SW cali, wait %d ticks to perform 2nd power off cali") |
| 102 | TRC_MSG(RTC_SW_CALI_AFTER_2ND_POWEROFF_CALI,"RTC SW cali, current time after 2nd power off cali: (%d:%d:%d)") |
| 103 | TRC_MSG(RTC_SW_CALI_START_POWERON_CALI_TIME,"RTC SW cali, start power on cali: (%d:%d:%d), init tick: %d") |
| 104 | TRC_MSG(RTC_SW_CALI_POWERON_CALI_START_INACCURACY_MEASURE,"RTC SW cali, start accuracy measure") |
| 105 | TRC_MSG(RTC_SW_CALI_POWERON_CALI_FINISH_INACCURACY_MEASURE,"RTC SW cali, accuracy for one hour: %d ticks") |
| 106 | TRC_MSG(RTC_SW_CALI_POWERON_CALI_START,"RTC SW cali, start power on cali: (%d:%d:%d), init tick: %d") |
| 107 | TRC_MSG(RTC_SW_CALI_WRITE_NVRAM,"RTC SW cali, write to NVRAM") |
| 108 | TRC_MSG(RTC_SW_CALI_KAL_EXPIRE_EARLY,"RTC SW cali, KAL_timer expired early, expected: %d (tick), now: %d") |
| 109 | TRC_MSG(RTC_SW_CALI_TIMOUE_NOT_IN_SEC_BOUNDARY,"RTC SW cali, timeout not in second boundary: %d (tick)") |
| 110 | TRC_MSG(RTC_SW_CALI_TIMOUE_OUT,"RTC SW cali timeout (%d:%d:%d), current frame tick: %d") |
| 111 | TRC_MSG(RTC_SW_CALI_UPDATE_TIME,"RTC SW cali, update time (%d:%d:%d), current frame tick: %d") |
| 112 | TRC_MSG(RTC_SW_CALI_POWEROFF_CALI_INIT1,"RTC SW cali, NVRAM time valid: %d") |
| 113 | TRC_MSG(RTC_SW_CALI_POWEROFF_CALI_INIT2,"RTC SW cali, NVRAM time: %d-%d-%d (%d:%d:%d)") |
| 114 | TRC_MSG(RTC_SW_CALI_POWEROFF_CALI_INIT3,"RTC SW cali, NVRAM tick diff valud: %d") |
| 115 | TRC_MSG(RTC_SW_CALI_POWEROFF_CALI_INIT4,"RTC SW cali, NVRAM ticks_diff_per_hour: %d") |
| 116 | TRC_MSG(RTC_SW_CALI_CURR_POWER_TIME,"RTC SW cali, curr power on time: %d-%d-%d (%d:%d:%d)") |
| 117 | TRC_MSG(RTC_SW_CALI_RTC_TIME_IN_MINUTE_BOUNDARY,"RTC SW cali, rtc time in minute boundary: %d, delay 6 sec") |
| 118 | TRC_MSG(RTC_SW_CALI_RTC_TIME_IN_ALARM_BOUNDARY,"RTC SW cali, rtc time in alarm boundary: %d, delay 6 sec") |
| 119 | TRC_MSG(RTC_SW_CALI_INACCURATE_TICK_DURING_POWEROFF,"RTC cali, inaccurate ticks during power off: %d") |
| 120 | TRC_MSG(RTC_SW_CALI_ALARM_POWERON_AND_NEED_BACKWARD_TIME,"RTC cali, alarm power on, but we need to backward time") |
| 121 | TRC_MSG(RTC_SW_CALI_ALARM_POWERON_AND_POWEROFF,"RTC cali, alarm power on but we backward time so power off") |
| 122 | |
| 123 | |
| 124 | |
| 125 | TRC_MSG(RTC_TC_INTR_FOR_USER,"RTC TC intr for user") |
| 126 | TRC_MSG(RTC_AL_INTR,"RTC AL intr") |
| 127 | |
| 128 | TRC_MSG(RTC_FORWARD_TIME_1,"RTC forward time: (%d:%d:%d) forward %d hour, %d min, %d sec") |
| 129 | TRC_MSG(RTC_FORWARD_TIME_2,"RTC forward time done: (%d:%d:%d)") |
| 130 | TRC_MSG(RTC_BACKWARD_TIME_1,"RTC backward time: (%d:%d:%d) backward %d hour, %d min, %d sec") |
| 131 | TRC_MSG(RTC_BACKWARD_TIME_2,"RTC backward time done: (%d:%d:%d)") |
| 132 | |
| 133 | |
| 134 | |
| 135 | |
| 136 | |
| 137 | END_TRACE_MAP(MOD_RTC_HISR) |
| 138 | |
| 139 | #endif /* _RTC_TRC_H */ |
| 140 | |
| 141 | |