blob: b0d4302af29c0f705a6c6d357be8fdc53a216d57 [file] [log] [blame]
/*******************************************************************************
* Copyright (C) 2007, ZTE Corporation.
*
* File Name:threadpriority.h
* File Mark:
* Description:define thread priority
* Others:
* Version: v0.1
* Author: yechuan
* Date: 2009-02-20
* History 1:
* Date: 2009-02-20
* Version:
* Author:
* Modification:
*
* History 2:
********************************************************************************/
#ifndef _THREAD_PRIORITY_H
#define _THREAD_PRIORITY_H
/****************************************************************************
* Include files
****************************************************************************/
/****************************************************************************
* Local Macros
****************************************************************************/
/* Driver */
#define THR_ZATI__RECV_FROM_SERIAL_PRI 25
#define THR_PMIC_PRI 16
#if 0
#define THR_USB_HISR_PRI_LOW 18
#define THR_USB_HISR_PRI_MED 17
#define THR_USB_HISR_PRI_HIGH 16
#define THR_USB_OTG_PRI 16
#define THR_USB_DEV_PRI 18
#define THR_USB_CTRL_PRI 17
#define THR_USB_RNDIS_PRI 16
#define THR_USB_ECM_PRI 16
#else
#define THR_USB_OTG_PRI 9
#define THR_USB_HISR_PRI_LOW (THR_USB_OTG_PRI+2)
#define THR_USB_HISR_PRI_MED (THR_USB_OTG_PRI+1)
#define THR_USB_HISR_PRI_HIGH THR_USB_OTG_PRI
#define THR_USB_DEV_PRI (THR_USB_OTG_PRI+2)
#define THR_USB_CTRL_PRI (THR_USB_OTG_PRI+1)
#define THR_USB_RNDIS_PRI THR_USB_OTG_PRI
#define THR_USB_ECM_PRI THR_USB_OTG_PRI
#endif
#define THR_USB_CDC_RD_PRI 21//28
#define THR_USB_CDC_WR_PRI 21//23
#define THR_USB_MS_PRI 12//19//28
#define THR_USB_MS_PRI_PRE (THR_USB_CTRL_PRI-1) //28
#define THR_USB_MS_LU_PRI 20
#define THR_MUX_RX 18
#define THR_MUX_TX 15
#if 0
#define THR_USB_IFAC_PRI 16
#define THR_USB_DEFAULT_PRIORITY_HIGH 16
#define THR_USB_DEFAULT_PRIORITY_MEDIUM 22
#define THR_USB_DEFAULT_PRIORITY_LOW 30
#define THR_USB_CDC_DATA_SND_PRI 25
#define THR_USB_CDC_DATA_OBS_PRI 28
#define THR_USB_CDC_COMM_OBS_PRI 28
#endif
#define THR_CHG_ISR_PRI 22
#define THR_CHG_CHECK_PRI 29
#define THR_SD_PRI 29
#define THR_RPMSG_HISR_PRI 3
/* KeyMine */
#define THR_COMMREAD_PRI 15
#define THR_COMMWRITE_PRI 21
#define THR_EXCEPDAEMON_PRI 15
#define THR_TIMER_PRI 8
#define THR_TRACE_PRI 28
#define THR_FSAGENT_PRI 20
#define THR_SHELL_PRI 19
#define THR_SYSM_PRI 18
#define THR_ZDRV_TIMERISR_PRI 14
#define THR_ZDRV_ALARMISR_PRI 13
#define THR_ZDRV_KPDISR_PRI 20
#define THR_ZDRV_KPDSCAN_PRI 10
#define THR_ZSVR_PRI 20
#define THR_ZTAPI_PRI 20
#define THR_ZSVR_ECOM_PRI 20
#define THR_ZSVR_FM_PRI 20
#define THR_ZSVR_EM_PRI 20
#define THR_ZSVR_SS_PRI 20
#define THR_ZSVR_STK_PRI 20
#define THR_ZSVR_PDP_PRI 20
#define THR_ZSVR_CC_PRI 20
#define THR_ZSVR_CR_PRI 20
#define THR_ZSVR_PB_PRI 20
#define THR_ZSVR_SMS_PRI 20
#define THR_ZSVR_MM_PRI 20
#define THR_ZSVR_SET_PRI 20
#define THR_ZSVR_DM_PRI 20
#define THR_ZSVR_DB_PRI 20
#define ZSVR_ECOM_TIME_1_PRI 9
#define ZSVR_ECOM_TIME_0_PRI 9
#define THR_SIORXTIMER0_PRI 9
#define THR_DDDRAM_HISR_PRI 3
#define THR1_PRI 10
#define THR2_PRI 11
#define THR3_PRI 12
#define THR4_PRI 13
#define THR5_PRI 14
#define THR6_PRI 15
#define THR7_PRI 16
#define THR8_PRI 17
#define THR_TCPIP_PRI 10
#define THR_LWIPTIMER_PRI 9
/* GUI */
#define THR_AMS_PRI 20
#define THR_AMS_1_PRI 22
#define THR_AMS_2_PRI 24
#define THR_AMS_3_PRI 26
#define THR_AMS_4_PRI 28
#define THR_MMF_PRI 0
#define THR_PTHREAD1_PRI 26
#define THR_PTHREAD2_PRI 20
#define THR_UART2_PRI 18
#define THR_UART1_PRI 18
#define THR_UART0_PRI 18
/* MMI */
#define THR_ZMMMI_MAIN_PRI 20
/*SDL Thread */
#define SDL_YPAD_DLL_INST_PRI 11
#define SDL_YPAD_MAC_PRI 11
#define SDL_YPAD_RLC_PRI 11
#define SDL_YPAD_RRC_PRI 12
#define SDL_YPAD_GRR_PRI 12
#define SDL_YPAD_SNP_PRI 13
#define SDL_YPAD_L1G_PRI 10
#define SDL_AUDIO_PRI 15
/* HISR */
#define HISR_L1G_PCL_MAIN_PRI 2
#define HISR_MIDI_PRI 10
#define HISR_TONE_PRI 10
#define HISR_VM_PRI 10
/*Device Int Thread Priority*/
#define INT_TIMER_PRI 3
#define INT_UART1_PRI 20
#define INT_UART2_PRI 20
#define INT_UART3_PRI 20
#define INT_DPRAM_PRI 20
#define INT_KPD_PRI 20
#define INT_RTC_PRI 20/*RTC on DBB*/
#define INT_DMA_PRI 20
#define INT_UICC_PRI 20
#define INT_I2S1_PRI 20
#define INT_I2S2_PRI 20
#define INT_LCD_PRI 10
#define INT_USB_PRI 10
#define INT_USB_DMA_PRI 10
#define INT_PMIC_PRI 10
#define INT_I2C_PRI 20
#define INT_FM_PRI 10
#define INT_CAM_PRI 10
#define INT_SD_PRI 10
#define INT_VIDEO_VPU_PRI 18
#define INT_VIDEO_PPU_PRI 18
/* Teak INT Pri */
#define INT_TU_GP0_PRI 0
#define INT_TU_T_INT1_PRI 0
#define INT_TU_T_INT2_PRI 0
#define INT_GSM_DSP_INT0_PRI 0
#define INT_GSM_DSP_INT1_PRI 0
#define INT_GSM_DSP_INT2_PRI 15/*Voicememo*/
#define INT_GSM_DSP_INT3_PRI 15/*TONE*/
#define INT_GSM_DSP_INT4_PRI 15/*MIDI*/
#define INT_GSM_DSP_INT5_PRI 15/*PCM player*/
#define INT_GSM_DSP_INT6_PRI 15/*SBC Blue Tooth*/
#define INT_GSM_DSP_INT7_PRI 10
#endif/*_Thread_PRIority_H*/