3740 lines
118 KiBLFS
ObjectPascal
3740 lines
118 KiBLFS
ObjectPascal
//PPC Version : V2.1.9.30
|
|
//PPL Source File Name : \tavor\Arbel\obj_PMD2NONE_1602\prepass_results\osa_tx_init.ppp
|
|
//PPL Source File Name : \\os\\osa\\src\\osa_tx_init.c
|
|
typedef unsigned int size_t ;
|
|
typedef unsigned int size_t ;
|
|
typedef unsigned char BOOL ;
|
|
typedef unsigned char UINT8 ;
|
|
typedef unsigned short UINT16 ;
|
|
typedef unsigned long UINT32 ;
|
|
typedef char CHAR ;
|
|
typedef signed char INT8 ;
|
|
typedef signed short INT16 ;
|
|
typedef signed long INT32 ;
|
|
typedef unsigned char Bool ;
|
|
typedef UINT8 BYTE ;
|
|
typedef UINT8 UBYTE ;
|
|
typedef UINT16 UWORD ;
|
|
typedef UINT16 WORD ;
|
|
typedef INT16 SWORD ;
|
|
typedef UINT32 DWORD ;
|
|
typedef unsigned long long UINT64 ;
|
|
typedef void* VOID_PTR ;
|
|
typedef volatile UINT8 *V_UINT8_PTR ;
|
|
typedef volatile UINT16 *V_UINT16_PTR ;
|
|
typedef volatile UINT32 *V_UINT32_PTR ;
|
|
typedef unsigned int U32Bits ;
|
|
typedef BOOL BOOLEAN ;
|
|
typedef const char * SwVersion ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
PM_RC_OK = 0 ,
|
|
PM_RC_FAIL , // General Failure
|
|
PM_RC_ALREADY_EXISTS // Exit function since required target alrteady exists
|
|
} PM_ReturnCodeE;
|
|
|
|
typedef void ( *PM_CallbackFuncDDRstateT ) ( BOOL b_DDR_ready ) ;
|
|
typedef void ( *TIMER_CALLBACK_FUNCTION ) ( UINT8 ) ;
|
|
typedef void ( *ACC_TIMER_CALLBACK ) ( UINT32 ) ;
|
|
typedef int TIMER_STATUS ;
|
|
typedef int TIMER_ID ;
|
|
typedef unsigned long long UINT64 ;
|
|
typedef unsigned long TimeIn32KhzUnit ;
|
|
typedef void ( *TickCallbackPtr ) ( UINT32 ) ;
|
|
typedef TimeIn32KhzUnit ( *SuspendCallbackPtr ) ( void ) ;
|
|
typedef void ( *PrepareTimeCallbackPtr ) ( void ) ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_PIN_NOT_ASSIGNED = -1 ,
|
|
|
|
GPIO_PIN_0=0 , GPIO_PIN_1 , GPIO_PIN_2 , GPIO_PIN_3 , GPIO_PIN_4 , GPIO_PIN_5 , GPIO_PIN_6 , GPIO_PIN_7 ,
|
|
GPIO_PIN_8 , GPIO_PIN_9 , GPIO_PIN_10 , GPIO_PIN_11 , GPIO_PIN_12 , GPIO_PIN_13 , GPIO_PIN_14 , GPIO_PIN_15 ,
|
|
GPIO_PIN_16 , GPIO_PIN_17 , GPIO_PIN_18 , GPIO_PIN_19 , GPIO_PIN_20 , GPIO_PIN_21 , GPIO_PIN_22 , GPIO_PIN_23 ,
|
|
GPIO_PIN_24 , GPIO_PIN_25 , GPIO_PIN_26 , GPIO_PIN_27 , GPIO_PIN_28 , GPIO_PIN_29 , GPIO_PIN_30 , GPIO_PIN_31 ,
|
|
GPIO_PIN_32 , GPIO_PIN_33 , GPIO_PIN_34 , GPIO_PIN_35 , GPIO_PIN_36 , GPIO_PIN_37 , GPIO_PIN_38 , GPIO_PIN_39 ,
|
|
|
|
GPIO_PIN_40 , GPIO_PIN_41 , GPIO_PIN_42 , GPIO_PIN_43 , GPIO_PIN_44 , GPIO_PIN_45 , GPIO_PIN_46 , GPIO_PIN_47 ,
|
|
GPIO_PIN_48 , GPIO_PIN_49 , GPIO_PIN_50 , GPIO_PIN_51 , GPIO_PIN_52 , GPIO_PIN_53 , GPIO_PIN_54 , GPIO_PIN_55 ,
|
|
GPIO_PIN_56 , GPIO_PIN_57 , GPIO_PIN_58 , GPIO_PIN_59 , GPIO_PIN_60 , GPIO_PIN_61 , GPIO_PIN_62 , GPIO_PIN_63 ,
|
|
// #endif // _TAVOR_HARBELL_
|
|
|
|
// #if defined ( GPIO_128_ENTRIES )
|
|
GPIO_PIN_64 , GPIO_PIN_65 , GPIO_PIN_66 , GPIO_PIN_67 , GPIO_PIN_68 , GPIO_PIN_69 , GPIO_PIN_70 , GPIO_PIN_71 ,
|
|
GPIO_PIN_72 , GPIO_PIN_73 , GPIO_PIN_74 , GPIO_PIN_75 , GPIO_PIN_76 , GPIO_PIN_77 , GPIO_PIN_78 , GPIO_PIN_79 ,
|
|
GPIO_PIN_80 , GPIO_PIN_81 , GPIO_PIN_82 , GPIO_PIN_83 , GPIO_PIN_84 , GPIO_PIN_85 , GPIO_PIN_86 , GPIO_PIN_87 ,
|
|
GPIO_PIN_88 , GPIO_PIN_89 , GPIO_PIN_90 , GPIO_PIN_91 , GPIO_PIN_92 , GPIO_PIN_93 , GPIO_PIN_94 , GPIO_PIN_95 ,
|
|
GPIO_PIN_96 , GPIO_PIN_97 , GPIO_PIN_98 , GPIO_PIN_99 , GPIO_PIN_100 , GPIO_PIN_101 , GPIO_PIN_102 , GPIO_PIN_103 ,
|
|
GPIO_PIN_104 , GPIO_PIN_105 , GPIO_PIN_106 , GPIO_PIN_107 , GPIO_PIN_108 , GPIO_PIN_109 , GPIO_PIN_110 , GPIO_PIN_111 ,
|
|
GPIO_PIN_112 , GPIO_PIN_113 , GPIO_PIN_114 , GPIO_PIN_115 , GPIO_PIN_116 , GPIO_PIN_117 , GPIO_PIN_118 , GPIO_PIN_119 ,
|
|
GPIO_PIN_120 , GPIO_PIN_121 , GPIO_PIN_122 , GPIO_PIN_123 , GPIO_PIN_124 , GPIO_PIN_125 , GPIO_PIN_126 , GPIO_PIN_127 ,
|
|
|
|
GPIO_MAX_AMOUNT_OF_PINS
|
|
} GPIO_PinNumbers;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_RC_OK = 1 ,
|
|
|
|
GPIO_RC_INVALID_PORT_HANDLE = -100 ,
|
|
GPIO_RC_NOT_OUTPUT_PORT ,
|
|
GPIO_RC_NO_TIMER ,
|
|
GPIO_RC_NO_FREE_HANDLE ,
|
|
GPIO_RC_AMOUNT_OUT_OF_RANGE ,
|
|
GPIO_RC_INCORRECT_PORT_SIZE ,
|
|
GPIO_RC_PORT_NOT_ON_ONE_REG ,
|
|
GPIO_RC_INVALID_PIN_NUM ,
|
|
GPIO_RC_PIN_USED_IN_PORT ,
|
|
GPIO_RC_PIN_NOT_FREE ,
|
|
GPIO_RC_PIN_NOT_LOCKED ,
|
|
GPIO_RC_NULL_POINTER ,
|
|
GPIO_RC_PULLED_AND_OUTPUT ,
|
|
GPIO_RC_INCORRECT_PORT_TYPE ,
|
|
GPIO_RC_INCORRECT_TRANSITION_TYPE ,
|
|
GPIO_RC_INCORRECT_DEBOUNCE ,
|
|
GPIO_RC_INCORRECT_DIRECTION ,
|
|
GPIO_RC_INCORRECT_INIT_VALUE
|
|
|
|
, GPIO_RC_INTC_ERROR ,
|
|
GPIO_RC_PRM_ERROR
|
|
|
|
} GPIO_ReturnCode;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_INPUT_PIN = 1 ,
|
|
GPIO_OUTPUT_PIN
|
|
} GPIO_PinDirection;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_PIN_FREE_FOR_USE = 0 ,
|
|
GPIO_PIN_USE_IN_PORT ,
|
|
GPIO_PIN_USE_IN_INTERRUPT ,
|
|
GPIO_PIN_USE_IN_PORT_WITH_INTERRUPT ,
|
|
GPIO_PIN_LOCKED
|
|
} GPIO_PinUsage;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
GPIO_PinUsage pinUsage ;
|
|
GPIO_PinDirection direction ;
|
|
} GPIO_PinStatus;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_INITIAL_VALUE_NO_CHANGE = 0 ,
|
|
GPIO_INITIAL_VALUE_LOW ,
|
|
GPIO_INITIAL_VALUE_HIGH
|
|
} GPIO_BitInitialValue;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_PULL_UP_DOWN_DISABLE = 0 ,
|
|
GPIO_PULL_UP_ENABLE ,
|
|
GPIO_PULL_DOWN_ENABLE
|
|
} GPIO_PullUpDown;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
GPIO_PinNumbers pinNumber ;
|
|
GPIO_PinDirection direction ;
|
|
GPIO_TransitionType transitionType ;
|
|
GPIO_Debounce debounce ;
|
|
GPIO_PullUpDown pullUpDown ;
|
|
GPIO_BitInitialValue initialValue ;
|
|
} GPIO_PinConfiguration;
|
|
|
|
typedef UINT8 GPIO_PortHandle ;
|
|
typedef void ( *GPIO_ISR ) ( void ) ;
|
|
typedef UINT32 INTC_InterruptPriorityTable [ MAX_INTERRUPT_CONTROLLER_SOURCES ] ;
|
|
typedef UINT32 INTC_InterruptInfo ;
|
|
typedef void ( *INTC_ISR ) ( INTC_InterruptInfo interruptInfo ) ;
|
|
typedef char CHAR ;
|
|
typedef unsigned char UCHAR ;
|
|
typedef int INT ;
|
|
typedef unsigned int UINT ;
|
|
typedef long LONG ;
|
|
typedef unsigned long ULONG ;
|
|
typedef short SHORT ;
|
|
typedef unsigned short USHORT ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
OSA_TASK_READY ,
|
|
OSA_TASK_COMPLETED ,
|
|
OSA_TASK_TERMINATED ,
|
|
OSA_TASK_SUSPENDED ,
|
|
OSA_TASK_SLEEP ,
|
|
OSA_TASK_QUEUE_SUSP ,
|
|
OSA_TASK_SEMAPHORE_SUSP ,
|
|
OSA_TASK_EVENT_FLAG ,
|
|
OSA_TASK_BLOCK_MEMORY ,
|
|
OSA_TASK_MUTEX_SUSP ,
|
|
OSA_TASK_STATE_UNKNOWN ,
|
|
} OSA_TASK_STATE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct OSA_TASK_STRUCT
|
|
{
|
|
char *task_name ; /* Pointer to thread ' s name */
|
|
unsigned int task_priority ; /* Priority of thread ( 0 -255 ) */
|
|
unsigned long task_stack_def_val ; /* default vaule of thread */
|
|
OSA_TASK_STATE task_state ; /* Thread ' s execution state */
|
|
unsigned long task_stack_ptr ; /* Thread ' s stack pointer */
|
|
unsigned long task_stack_start ; /* Stack starting address */
|
|
unsigned long task_stack_end ; /* Stack ending address */
|
|
unsigned long task_stack_size ; /* Stack size */
|
|
unsigned long task_run_count ; /* Thread ' s run counter */
|
|
|
|
} OSA_TASK;
|
|
|
|
typedef void *OsaRefT ;
|
|
typedef UINT8 OSA_STATUS ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef void* OS_HISR ;
|
|
typedef void* OSATaskRef ;
|
|
typedef void* OSAHISRRef ;
|
|
typedef void* OSASemaRef ;
|
|
typedef void* OSAMutexRef ;
|
|
typedef void* OSAMsgQRef ;
|
|
typedef void* OSAMailboxQRef ;
|
|
typedef void* OSAPoolRef ;
|
|
typedef void* OSATimerRef ;
|
|
typedef void* OSAFlagRef ;
|
|
typedef void* OSAPartitionPoolRef ;
|
|
typedef void* OSTaskRef ;
|
|
typedef void* OSSemaRef ;
|
|
typedef void* OSMutexRef ;
|
|
typedef void* OSMsgQRef ;
|
|
typedef void* OSMailboxQRef ;
|
|
typedef void* OSPoolRef ;
|
|
typedef void* OSTimerRef ;
|
|
typedef void* OSFlagRef ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef OsaTimerStatusParamsT OSATimerStatus ;
|
|
typedef void* OSATaskRef ;
|
|
typedef void* OSAHISRRef ;
|
|
typedef void* OSAMsgQRef ;
|
|
typedef void* OSAMailboxQRef ;
|
|
typedef void* OSAPartitionPoolRef ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef unsigned long UNSIGNED ;
|
|
typedef long SIGNED ;
|
|
typedef unsigned char DATA_ELEMENT ;
|
|
typedef DATA_ELEMENT OPTION ;
|
|
typedef DATA_ELEMENT BOOLEAN ;
|
|
typedef int STATUS ;
|
|
typedef unsigned char UNSIGNED_CHAR ;
|
|
typedef unsigned int UNSIGNED_INT ;
|
|
typedef int INT ;
|
|
typedef unsigned long * UNSIGNED_PTR ;
|
|
typedef unsigned char * BYTE_PTR ;
|
|
typedef va_list __gnuc_va_list ;
|
|
typedef void ( *CommandAddress ) ( void ) ;
|
|
typedef char* CommandProto ;
|
|
typedef const char * DiagDBVersion ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
PROTOCOL_TYPE_0 = 0 ,
|
|
MAX_PROTOCOL_TYPES
|
|
} ProtocolType;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
BOOL bEnabled ; // enable / disable the trace logging feature
|
|
ProtocolType eProtocolType ; // protocol type for communication with ICAT , currently only protocol type 0 is supported
|
|
UINT16 nMaxDataPerTrace ; // for each trace , what is the maximum data length to accompany the trace , in protocol type 0 , this is relevant only to DSP messages
|
|
} DiagLoggerDefs;
|
|
|
|
typedef void ( *PMCNotifyEventFunc ) ( UINT64 eventRegs ) ;
|
|
typedef void ( *PMCGetStatusNotifyFunc ) ( UINT16 status ) ;
|
|
typedef void ( *PMCReadCallback ) ( UINT8 *dataBuffPtr , UINT16 dataSize , UINT16 userId ) ;
|
|
typedef void ( *PMCWriteCallback ) ( UINT16 dataBuffPtr ) ;
|
|
typedef void ( *PMCGetGPADCValueNotifyFunc ) ( PMC_adc_reg_t reg , UINT16 value ) ;
|
|
typedef void ( * ReadingCallback ) ( int ) ;
|
|
typedef void ( * LTETempReadingCallback ) ( unsigned short , unsigned short ) ;
|
|
typedef void ( * ReadingCallbackBoth ) ( BOOL , int , int ) ;
|
|
typedef union
|
|
{
|
|
UINT8 autoControl ;
|
|
UINT8 autoControl2 ;
|
|
UINT8 manControl ;
|
|
} adcModeCntrl_t ;
|
|
typedef union
|
|
{
|
|
UINT64 all ;
|
|
Registers_ts regs ;
|
|
} PMCEvents ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
SHD_POWER_DOWN ,
|
|
SHD_RESET ,
|
|
SHD_GHOST ,
|
|
SHD_SW_ERROR /* EEHandler triggered the reset */
|
|
} ShutDownType_te;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
RR_NORMAL_POWER_ON = 0x00 , // default , not combined with others
|
|
RR_WATCH_DOG_TIMEOUT = 0x01 ,
|
|
RR_SOFTWARE_GENERATED = 0x02 ,
|
|
RR_CHARGING_BATTERY = 0x04 ,
|
|
RR_LOW_BATTERY = 0x08 ,
|
|
RR_ALARM_POWER_ON = 0x10 ,
|
|
RR_EXT_POWER_ON = 0x20
|
|
}
|
|
StartupReason_te;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
RE_RTC_ALARM = 0x01
|
|
} StartupExtInd_te;
|
|
|
|
typedef BOOL ( *DiagPSisRunningFn ) ( void ) ;
|
|
typedef unsigned int size_t ;
|
|
typedef unsigned short wchar_t ;
|
|
typedef int ( *__heapprt ) ( void * , char const * , ... ) ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* @ENUM_DESC@ Configures Product Debug Level */
|
|
PRODUCT_MODE = 0 , /* @ENUM_VAL_DESC@ Product Mode Debug level*/
|
|
DEBUG_NORMAL = 1 , /* @ENUM_VAL_DESC@ Normal Debug level*/
|
|
DEBUG_EXTEND = 2 /* @ENUM_VAL_DESC@ Extended Debug level*/
|
|
} ProductDebugLevel_ts;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* @ENUM_DESC@ Configures UART route */
|
|
UART_DEFAULT = 0 , /* @ENUM_VAL_DESC@ Maintain code default*/
|
|
UART_DATA_IO = 1 , /* @ENUM_VAL_DESC@ Route UART to DATA IO */
|
|
UART_DIAG_ACAT = 2 , /* @ENUM_VAL_DESC@ Route UART to DIAG ACAT */
|
|
UART_NULL = 0xFF /* @ENUM_VAL_DESC@ Disable*/
|
|
} platformUART_route_ts;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* @ENUM_DESC@ Configures DIAG route */
|
|
DIAG_DEFAULT = 0 , /* @ENUM_VAL_DESC@ Maintain code default*/
|
|
USB = 1 , /* @ENUM_VAL_DESC@ Route DIAG through USB*/
|
|
UART = 2 /* @ENUM_VAL_DESC@ Route DIAG through UART*/
|
|
} platformDIAG_route_ts;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* @ENUM_DESC@ Configures USB detection*/
|
|
USB_DETECT_DEFAULT = 0 , /* @ENUM_VAL_DESC@ Maintain code default*/
|
|
USB_DETECT_ENABLE = 1 , /* @ENUM_VAL_DESC@ Enable USB detection*/
|
|
USB_DETECT_DISABLE = 2 , /* @ENUM_VAL_DESC@ Disable USB detection*/
|
|
USB_ALWAYS_CONNECT = 3 , /* @ENUM_VAL_DESC@ Always connect to USB*/
|
|
USB_ALWAYS_DISCONNECT = 4 /* @ENUM_VAL_DESC@ Never connect to USB*/
|
|
} platformUSBdetection_ts;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* @ENUM_DESC@ Configures HeartBeat mode*/
|
|
HB_DISABLE= 0 , /* @ENUM_VAL_DESC@ Disable heart beat*/
|
|
TO_UART = 1 , /* @ENUM_VAL_DESC@ Send heart beat to UART*/
|
|
TO_ACAT = 2 , /* @ENUM_VAL_DESC@ Send heart beat to ACAT*/
|
|
ANOTHER = 3 /* @ENUM_VAL_DESC@ Reserved*/
|
|
} platformHeartBeat_ts;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* @ENUM_DESC@ Configures RTC Client*/
|
|
RTC_CLIENT_DEFAULT = 0x0 , /* @ENUM_VAL_DESC@ Maintain code default*/
|
|
RTC_CLIENT_ENABLE = 1 , /* @ENUM_VAL_DESC@ Enable RTC client*/
|
|
RTC_CLIENT_DISABLE = 2 /* @ENUM_VAL_DESC@ Disable RTC client*/
|
|
} platformRtcClient_ts;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* @ENUM_DESC@ Configures Relaiable Data load source*/
|
|
RD_DEFAULT = 0x0 , /* @ENUM_VAL_DESC@ Maintain code default*/
|
|
RD_LOAD_CALIB_FILES_FROM_FLASH = 1 , /* @ENUM_VAL_DESC@ Load Callibration files from flash*/
|
|
RD_DONT_LOAD_CALIB_FILES_FROM_FALSH = 2 /* @ENUM_VAL_DESC@ Don ' t load Callibration files from flash*/
|
|
} platformRelaibeData_ts;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* @ENUM_DESC@ Configure Comm-Apps sync*/
|
|
PM_COMM_APPS_SYNC_DISABLED = 0 , /* @ENUM_VAL_DESC@ Disable Comm-Apps sync*/
|
|
PM_COMM_APPS_SYNC_ENABLED = 1 /* @ENUM_VAL_DESC@ Enable Comm-Apps sync*/
|
|
} nvmPM_CommAppsSync_ts;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* @ENUM_DESC@ Configure Power Manager operation level*/
|
|
PM_DEFAULT = 0 , /* @ENUM_VAL_DESC@ Maintain code default*/
|
|
PM_FULL_ENABLE = 1 , /* @ENUM_VAL_DESC@ Enable Power Manager full functionality*/
|
|
PM_DISABLE = 2 , /* @ENUM_VAL_DESC@ Disable Power Manager */
|
|
PM_LEVEL_C1 = 3 , /* @ENUM_VAL_DESC@ Enable Power Manager C1 */
|
|
PM_LEVEL_D2 = 4 /* @ENUM_VAL_DESC@ Enable Power Manager D2 */
|
|
} nvmPM_level_ts;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* @ENUM_DESC@ Set product point*/
|
|
PP_DEFAULT = 0 , /* @ENUM_VAL_DESC@ Maintain code default*/
|
|
PP_1 = 1 , /* @ENUM_VAL_DESC@ Set product point to 1 */
|
|
PP_2 = 2 , /* @ENUM_VAL_DESC@ Set product point to 2 */
|
|
PP_3 = 3 , /* @ENUM_VAL_DESC@ Set product point to 3 */
|
|
PP_4 = 4 /* @ENUM_VAL_DESC@ Set product point to 4 */
|
|
} nvmPM_ProductPoint_ts;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
PNVM_DEFAULT=0 ,
|
|
PNVM_ENABLE ,
|
|
PNVM_DISABLE
|
|
} nvm_EN_DIS_DEF_ts;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
/* @STRUCT_DESC@ Configures Power Manager*/
|
|
nvmPM_CommAppsSync_ts PM_AppsCommSyncEnabled ; /* @ITEM_DESC@ Configure Comm-Apps sync , @ITEM_MODE@ Debug , @ITEM_UNIT@ see enum*/
|
|
nvmPM_ProductPoint_ts PM_ProductPoint ; /* @ITEM_DESC@ Set product point , @ITEM_MODE@ Debug , @ITEM_UNIT@ see enum*/
|
|
nvmPM_level_ts PM_dbgLevel ; /* @ITEM_DESC@ Configure Power Manager operation level , @ITEM_MODE@ Debug , @ITEM_UNIT@ see enum*/
|
|
nvm_EN_DIS_DEF_ts PM_newDDRHandshakeEnabled ;
|
|
} platformPowerMngr_ts;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* @ENUM_DESC@ Configures USIM error handling*/
|
|
USIM_ERR_SILENT = 0 , /* @ENUM_VAL_DESC@ Silent error handling*/
|
|
USIM_ERR_ASSERT = 1 , /* @ENUM_VAL_DESC@ Assert on error*/
|
|
USIM_ERR_RECOVERY = 2 /* @ENUM_VAL_DESC@ error handling recovery*/
|
|
} nvmUsimErrorHandler_ts;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
/* @STRUCT_DESC@ Configures USIM driver settings*/
|
|
ProductDebugLevel_ts DebugLevel ; /* @ITEM_DESC@ Configures USIM Debug Level , @ITEM_MODE@ Debug , @ITEM_UNIT@ see enum*/
|
|
UINT8 TxDmaDisable ; /* @ITEM_DESC@ Configure Tx Dma Disable , @ITEM_MODE@ Debug , @ITEM_UNIT@ 0 -0xFF*/
|
|
UINT8 DetectGpioPinNo ; /* @ITEM_DESC@ Set USIM detection GPIO , @ITEM_MODE@ ReadWrite , @ITEM_UNIT@ Entries 1 -0xFF according to available GPIOs , 0 to diasble detection*/ // disable=0 , Detect_Pin=0xFF , others are GPIO / CGPIO pins
|
|
nvmUsimErrorHandler_ts ErrorHandler ; /* @ITEM_DESC@ Configures USIM error handling , @ITEM_MODE@ Debug , @ITEM_UNIT@ see enum*/
|
|
} platformUsim_ts;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* @ENUM_DESC@ Configures AppCommMode*/
|
|
APPCOMM_DEFAULT = 0 , /* @ENUM_VAL_DESC@ Maintain code default*/
|
|
APPCOMM_COMM_IN_RESET = 1 , /* @ENUM_VAL_DESC@ Set Comm in reset*/
|
|
APPCOMM_LONG_TYPE = 0x0FFFFFFF /* @ENUM_VAL_DESC@ force AppsComm enum long*/
|
|
} platformAppsCommMode_ts;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* @ENUM_DESC@ Configures OSA Error behavior*/
|
|
OSA_ERROR_DEFAULT = 0 , /* @ENUM_VAL_DESC@ Maintain code default*/
|
|
OSA_ERROR_ASSERT = 1 , /* @ENUM_VAL_DESC@ Assert on OSA errors*/
|
|
OSA_ERROR_IGNORE = 2 , /* @ENUM_VAL_DESC@ Ignore OSA errors*/
|
|
OSA_ERROR_RESTORE_OK = 3 , /* @ENUM_VAL_DESC@ OSA error restore*/
|
|
OSA_ERROR_LONG_TYPE = 0x0FFFFFFF /* @ENUM_VAL_DESC@ force OSA error enum long*/
|
|
} platformOsaErrBehavior_ts;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* @ENUM_DESC@ Configures I2C FAST-SLOW mode*/
|
|
NVM_I2C_CLK_DEFAULT = 0 , /* @ENUM_VAL_DESC@ Maintain code default*/
|
|
NVM_I2C_SLOW_ClK_MODE = 0x00007fff , /* @ENUM_VAL_DESC@ Configure for slow mode align to I2c.h*/
|
|
NVM_I2C_FAST_CLK_MODE = 0x00008000 , /* @ENUM_VAL_DESC@ Configure for fast mode align to I2c.h*/
|
|
NVM_I2C_CLK_LONG_TYPE = 0x0FFFFFFF /* @ENUM_VAL_DESC@ force I2C error enum long*/
|
|
} platfromI2cModeCfg_ts;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* @ENUM_DESC@ Configures I2C repeat start configuration */
|
|
NVM_I2C_REPEAT_DEFAULT = 0 , /* @ENUM_VAL_DESC@ Maintain code default*/
|
|
NVM_I2C_NOT_REPEAT_START = 1 , /* @ENUM_VAL_DESC@ Configure for slow mode align to I2c.h*/
|
|
NVM_I2C_REPEAT_START = 2 , /* @ENUM_VAL_DESC@ Configure for fast mode align to I2c.h*/
|
|
NVM_I2C_REPEAT_LONG_TYPE = 0x0FFFFFFF /* @ENUM_VAL_DESC@ force I2C error enum long*/
|
|
} platfromI2cRepeatCfg_ts;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
/* @STRUCT_DESC@ I2C Configures */
|
|
platfromI2cModeCfg_ts I2cClkMode ; /* @ITEM_DESC@ Configures I2C CLK mode FAST / SLOW , @ITEM_MODE@ Configuration , @ITEM_UNIT@ see enum*/
|
|
platfromI2cRepeatCfg_ts I2cRptStrt ; /* @ITEM_DESC@ Configures I2C REPEAT_START mode yes / no , @ITEM_MODE@ Configuration , @ITEM_UNIT@ see enum*/
|
|
} platfromI2cCfg_ts;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
/* @STRUCT_DESC@ Platfrom configuration */
|
|
/* @STRUCT_NVM_FILE_NAME@ platfrom.nvm */
|
|
ProductDebugLevel_ts ProductDebugLevel ; /* @ITEM_DESC@ Configures Product Debug Level , @ITEM_MODE@ Debug , @ITEM_UNIT@ see enum*/
|
|
|
|
UINT32 DelayMSEC_Startup ; /* @ITEM_DESC@ Startup Delay , @ITEM_MODE@ Debug , @ITEM_UNIT@ milisec*/
|
|
UINT32 DelayMSEC_MSL ; /* @ITEM_DESC@ MSL Delay , @ITEM_MODE@ Debug , @ITEM_UNIT@ milisec*/
|
|
UINT32 DelayMSEC_Audio ; /* @ITEM_DESC@ Audio Delay , @ITEM_MODE@ Debug , @ITEM_UNIT@ milisec*/
|
|
UINT32 DelayMSEC_Power ; /* @ITEM_DESC@ Power Delay , @ITEM_MODE@ Debug , @ITEM_UNIT@ milisec*/
|
|
UINT32 DelayMSEC_L1start ; /* @ITEM_DESC@ L1 start Delay , @ITEM_MODE@ Debug , @ITEM_UNIT@ milisec*/
|
|
UINT32 DelayMSEC_reserv1 ; /* @ITEM_DESC@ Reserved , @ITEM_MODE@ ReadOnly , @ITEM_UNIT@ Not Relevant*/
|
|
|
|
platformUART_route_ts UART_route ; /* @ITEM_DESC@ Configures UART route , @ITEM_MODE@ Debug , @ITEM_UNIT@ see enum*/
|
|
platformDIAG_route_ts DIAG_route ; /* @ITEM_DESC@ Configures DIAG route , @ITEM_MODE@ Debug , @ITEM_UNIT@ see enum*/
|
|
platformUSBdetection_ts USBdetection ; /* @ITEM_DESC@ Configures USB detection , @ITEM_MODE@ Debug , @ITEM_UNIT@ see enum*/
|
|
platformHeartBeat_ts HeartBeat ; /* @ITEM_DESC@ Configures HeartBeat modes , @ITEM_MODE@ Debug , @ITEM_UNIT@ see enum*/
|
|
platformPowerMngr_ts PowerManagement ; /* @ITEM_DESC@ Configures Power Manager , @ITEM_MODE@ Debug , @ITEM_UNIT@ see structure*/
|
|
platformRtcClient_ts RTC_Client ; /* @ITEM_DESC@ Configures RTC Client , @ITEM_MODE@ Debug , @ITEM_UNIT@ see enum*/
|
|
platformRelaibeData_ts RD_LoadCalibFiles ; /* @ITEM_DESC@ Configures Relaiable Data load source , @ITEM_MODE@ Debug , @ITEM_UNIT@ see enum*/
|
|
|
|
|
|
platformUsim_ts USIM ; /* @ITEM_DESC@ Configures USIM driver settings , @ITEM_MODE@ Debug , @ITEM_UNIT@ see structure*/
|
|
platformAppsCommMode_ts AppCommMode ; /* @ITEM_DESC@ Configures AppCommMode , @ITEM_MODE@ Debug , @ITEM_UNIT@ see enum*/
|
|
|
|
platformOsaErrBehavior_ts OsaErrBehavior ; /* @ITEM_DESC@ Configures OSA Error behavior , @ITEM_MODE@ Debug , @ITEM_UNIT@ see enum*/
|
|
platfromI2cCfg_ts NvmCfgI2C ; /* @ITEM_DESC@ Configures I2c CLK and REPEAT_START , @ITEM_MODE@ Configuration , @ITEM_UNIT@ see enum*/
|
|
/* the reserved [ X ] must be update for backward
|
|
* compatible if new fields are added to PlatformNvm_ts.
|
|
* for example if you add UNIT32 you need to reduce X = X-4*/
|
|
UINT8 reserved [ 44 ] ; /* @ITEM_DESC@ the amount of the reserved must be reduced if fields are added , @ITEM_MODE@ debugging , @ITEM_UNIT@ none*/
|
|
|
|
} PlatformNvm_ts;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
PMU_POR = 1 ,
|
|
PMU_EMR ,
|
|
PMU_WDTR = ( PMU_EMR+2 )
|
|
} PMU_LastResetStatus;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_INT_IFC ,
|
|
DIAG_EXT_IFC
|
|
} DIAG_IF_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_DEV_USB ,
|
|
DIAG_DEV_SD ,
|
|
DIAG_DEV_FS ,
|
|
DIAG_DEV_UART ,
|
|
DIAG_DEV_SPI ,
|
|
DIAG_DEV_RAM ,
|
|
DIAG_DEV_NONE
|
|
} DIAG_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
SULOG_DEV_USB ,
|
|
SULOG_DEV_SD
|
|
} SULOG_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
EEH_DUMP_DEV_USB_SD ,
|
|
EEH_DUMP_DEV_SPI
|
|
} EEH_DUMP_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_START_PS_OFF ,
|
|
DIAG_START_PS_ON
|
|
} DIAG_START_PS_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_UART_SPEED_921600 , // for CP UART
|
|
DIAG_UART_SPEED_1842000 ,
|
|
DIAG_UART_SPEED_3000000 ,
|
|
DIAG_UART_DISABLE ,
|
|
DIAG_AP_UART_SPEED_921600 , // for AP UART
|
|
DIAG_AP_UART_SPEED_1842000 ,
|
|
DIAG_AP_UART_SPEED_3000000 ,
|
|
} DIAG_UART_SPEED_TYPE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
DIAG_IF_TYPE useIntIf ; /* use internal interface or external interface */
|
|
DIAG_UART_SPEED_TYPE useHighSpeedUART ; /* high speed UART ( 460800 ) or low speed UART ( 115200 ) */
|
|
// DIAG_MEM_SWITCH diagMemSwitch ;
|
|
BOOL GLFeatureFlag ;
|
|
DIAG_START_PS_TYPE diagStartPS ;
|
|
DIAG_DEV_TYPE diagDevType ;
|
|
SULOG_DEV_TYPE sulogDevType ;
|
|
EEH_DUMP_DEV_TYPE eehDumpDevType ;
|
|
// DIAG_MEM_SWITCH diagMemSwitch ;
|
|
BOOL usbUserMode ;
|
|
} diagCfgDataS;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
UINT32 dbID ;
|
|
UINT32 filterBitLength ;
|
|
UINT32 reserved [ 6 ] ;
|
|
} DIAG_Nvm_Filter_File_Header_t;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
LOG_DISABLE = 0x0 ,
|
|
UART_LOG_ENABLE = 0x1 ,
|
|
ACAT_LOG_ENABLE = 0x2
|
|
} Log_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
MSG_DISABLE = 0x0 ,
|
|
ACAT_MSG_ENABLE = 0x1
|
|
} Msg_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
RTI_LOG_DISABLE = 0x0 ,
|
|
RTI_DUMP_ENABLE = 0x1 ,
|
|
RTI_TASK_ENABLE = 0x2 ,
|
|
RTI_MIPS_ENABLE = 0x3
|
|
} RTI_ConfigE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Log_ConfigE log_cfg ;
|
|
Msg_ConfigE msg_cfg ;
|
|
RTI_ConfigE rti_cfg ;
|
|
} Log_ConfigS;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
YMODEM_DISABLE = 0x0 ,
|
|
YMODEM_ENABLE = 0x1
|
|
} Ymodem_Dump_config;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Ymodem_Dump_config config ;
|
|
} Ymodem_Dump_type;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* MIFI driver*/
|
|
USB_GENERIC_MIFI_DRIVER = 0x0 ,
|
|
USB_MARVELL_MIFI_DRIVER = 0x1 ,
|
|
USB_ASR_MIFI_DRIVER = 0x2 ,
|
|
USB_GENERIC_MOD_DRIVER = 0x10 ,
|
|
USB_GENERIC_MOD_ECM_DRIVER = 0x12 ,
|
|
|
|
USB_CDC_ACM_ONLY_DRIVER = 0x13 ,
|
|
|
|
USB_DIAG_UAC_DRIVER = 0x14 ,
|
|
|
|
USB_QUEC_CUST_DRIVER = 0x15 ,
|
|
|
|
|
|
/* MBIM driver*/
|
|
USB_MBIM_ONLY_DRIVER = 0x40 ,
|
|
USB_MBIM_GENERIC_DRIVER = 0x41 ,
|
|
USB_MBIM_MAX_DRIVER = 0x4F ,
|
|
|
|
/* Other driver*/
|
|
USB_CDROM_ONLY_DRIVER = 0x91 ,
|
|
USB_CDROM_DIAG_DRIVER = 0x92 ,
|
|
USB_DIAG_ONLY_DRIVER = 0x93 ,
|
|
USB_MODEM_ONLY_DRIVER = 0x94 ,
|
|
USB_MODEM_DIAG_DRIVER = 0x95 ,
|
|
|
|
USB_MAX_DRIVER = 0xFF
|
|
} Usb_driver_typeE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
MASS_STORAGE_DISABLE = 0x0 ,
|
|
MASS_STORAGE_ENABLE = 0x1
|
|
} MassStorage_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
USB_AUTO_INSTALL_DISABLE = 0x0 ,
|
|
USB_AUTO_INSTALL_ENABLE = 0x1
|
|
} Usb_auto_install_type;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
USB_OS_DETECT_DISABLE = 0x0 ,
|
|
USB_OS_DETECT_ENABLE = 0x1
|
|
} Usb_OS_detect_type;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Usb_driver_typeE usb_driver ;
|
|
MassStorage_ConfigE mass_storage ;
|
|
Usb_auto_install_type auto_install ;
|
|
Usb_OS_detect_type os_detect ;
|
|
} Usb_DriverS;
|
|
|
|
typedef UINT8 UART_Activity ;
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct /* This is structure of the UART Configuration */
|
|
{
|
|
UART_OpMode opMode ; /* fifo mode , non fifo mode or DMA for basic interface*/
|
|
UART_TriggerLevel triggerLevel ; /* the trigger level interrupt on 1 , 8 , 16 , 32 */
|
|
UART_BaudRates baudRate ; /* the rate of the transmit and the receive up to 111520 ( default - 9600 ) .*/
|
|
UART_WordLen numDataBits ; /* 5 , 6 , 7 , or 8 number of data bits in the UART data frame ( default - 8 ) . */
|
|
UART_StopBits stopBits ; /* 1 , 1.500000 or 2 stop bits in the UART data frame ( default - 1 ) . */
|
|
UART_ParityTBits parityBitType ; /* Even , Odd or no-parity bit type in the UART data frame ( default - Non ) . */
|
|
UART_InterfaceType interfaceType ; /* number of interface that the UART driver supplies ( default - UART_IF_TYPE_L2 ) */
|
|
BOOL modemSignal ; /* enable operate modem - TRUE , disable modem - FALSE */
|
|
BOOL flowControl ; /* enable Auto flow Control - TRUE , disable Auto flow Control - FALSE */
|
|
UINT8 sleepMode ; /* enable sleep mode - TRUE , more fine control - see UARTSleepMode enum */
|
|
BOOL auto_baud ; /* enable auto_baud , auto-baud-rate detection within the UART ( default - FALSE ) */
|
|
UART_SIRConfigure sirIrDA ;
|
|
} UARTConfiguration;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum // change the order -1 to +
|
|
{
|
|
UART_RC_OK = 1 , /* 1 - no errors */
|
|
|
|
UART_RC_PORT_NUM_ERROR = -100 , /* -100 - Error in the UART port number */
|
|
UART_RC_NO_DATA_TO_READ , /* -99 - Eror no data to read from the FIFO UART */
|
|
UART_RC_ILLEGAL_BAUD_RATE , /* -98 - Error in the UART Bayd Rate */
|
|
UART_RC_UART_PARITY_BITS_ERROR , /* -97 - Error in parity bit */
|
|
UART_RC_UART_ONE_STOP_BIT_ERROR , /* -96 - Error in one stop bit */
|
|
UART_RC_ONE_HALF_OR_TWO_STOP_BIT_ERROR , /* -95 - Error in two stop bit */
|
|
UART_RC_BAD_INTERFACE_TYPE , /* -94 - Error in the Interface Type */
|
|
UART_RC_UART_NOT_AVAILABLE , /* -93 - Error in try to open UART that is open */
|
|
UART_RC_NO_DATA_TO_WRITE , /* -92 - Error No data to writ the len = 0 */
|
|
UART_RC_NOT_ALL_BYTE_WRITTEN , /* -91 - Error Not all the Byte write to the UART FIFO */
|
|
UART_RC_ISR_ALREADY_BIND , /* -90 - Error try to bind ISR for Basic Interface */
|
|
UART_RC_WRONG_ISR_UNBIND , /* -89 - Error in the UnBind ISR for Basic Interface */
|
|
UART_RC_FIFO_NOT_EMPTY , /* -88 - Error , the UART FIFO not empty */
|
|
UART_RC_UART_OPEN , /* -87 - Error try chance the configurr when the UART open */
|
|
UART_RC_GPIO_ERR , /* -86 - Error in the Configure of the GPIO */
|
|
UART_RC_IRDA_CONFIG_ERR , /* -85 - Illegal IrDA configuration */
|
|
UART_RC_TX_DMA_ERR /* -84 - DMA TX Error */
|
|
} UART_ReturnCode;
|
|
|
|
typedef void ( *UARTNotifyInterrupt ) ( UART_Port ) ;
|
|
typedef void ( *UsbLogPrint_t ) ( const char * , ... ) ;
|
|
typedef UINT32 rti_uint32_t ;
|
|
typedef UINT64 rti_uint64_t ;
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
UINT32 product_id ;
|
|
UINT8 data [ 20 ] ;
|
|
} InfoForBoardTracking_t;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
RTI_DISABLE=0 ,
|
|
RTI_EN_VER1=1 ,
|
|
RTI_EN_VER2=2
|
|
} RTI_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
RTI_QUE_DISABLE=0 ,
|
|
RTI_QUE_ENABLE=1
|
|
} RTI_QUE_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
RTI_EVT_DISABLE=0 ,
|
|
RTI_EVT_ENABLE=1
|
|
} RTI_EVT_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
TIME_OUT_3MS=0x62 ,
|
|
TIME_OUT_4MS=0x83 ,
|
|
TIME_OUT_5MS=0xA4 ,
|
|
TIME_OUT_6MS=0xC4 ,
|
|
TIME_OUT_MAX=0xFF
|
|
} Timeout_Threshold;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
RTI_TYPE rtiType ;
|
|
RTI_QUE_TYPE rtiQueType ;
|
|
RTI_EVT_TYPE rtiEvtType ;
|
|
|
|
int rtiChange ;
|
|
int rtiHT ;
|
|
int rtiLT ;
|
|
|
|
int modeChange ;
|
|
int modeHT ;
|
|
int modeLT ;
|
|
|
|
Timeout_Threshold Timeout ;
|
|
} RTICfg_t;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
UART_DEV_UART ,
|
|
UART_DEV_DIAG ,
|
|
} UART_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
UINT32 offset ;
|
|
UINT32 size ;
|
|
} activateCode_info_t;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
UART_DEV_TYPE uartDevType ;
|
|
BOOL actiCodeFlag ;
|
|
activateCode_info_t activateCode [ 4 ] ; // for Ali activation code , [ 0 ] :flag , [ 1 ] :offset , [ 2 ] :size
|
|
BOOL astRandomFlag ;
|
|
UINT8 multiVol ; // for log_parition
|
|
UINT8 reserved1_1 ;
|
|
UINT8 reserved1_2 ;
|
|
UINT8 reserved1_3 ;
|
|
UINT32 reserved2 ;
|
|
UINT32 reserved3 ;
|
|
|
|
} uartCfgDataS;
|
|
|
|
typedef TX_THREAD* rti_thread_t ;
|
|
DIAG_FILTER ( OSA , OSA_TX , OsaTaskDelete_0 , DIAG_ERROR)
|
|
diagPrintf ( " caller 0x%lx , delete %s , tx status %d " , CallerAddress , task_name , task_status );
|
|
|
|
DIAG_FILTER ( OSA , OSA_TX , OsaTaskSuspend_ERR , DIAG_ERROR)
|
|
diagPrintf ( " OsaTaskSuspend status %d by 0x%lx " , status , CallerAddress );
|
|
|
|
DIAG_FILTER ( OSA , OSA_TX , OsaTaskResume_ERR , DIAG_ERROR)
|
|
diagPrintf ( " OsaTaskResume status %d by 0x%lx " , status , CallerAddress );
|
|
|
|
DIAG_FILTER ( OSA , OSA_TX , TX_ERR0 , DIAG_ERROR)
|
|
diagPrintf ( " OSA ASSERT: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ " );
|
|
|
|
DIAG_FILTER ( OSA , OSA_TX , TX_ERR , DIAG_ERROR)
|
|
diagPrintf ( " OSA ASSERT: ErrCode ThreadX = %ld , OSA =%ld called by %s " , ErrorCode , *pOsaStatus , callerFuncName );
|
|
|
|
DIAG_FILTER ( OSA , OSA_TX , TX_ERR1 , DIAG_ERROR)
|
|
diagPrintf ( " OSA ASSERT: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ " );
|
|
|
|
//PPC Version : V2.1.9.30
|
|
//PPL Source File Name : \tavor\Arbel\obj_PMD2NONE_1602\prepass_results\osa_tx_run.ppp
|
|
//PPL Source File Name : \\os\\osa\\src\\osa_tx_run.c
|
|
typedef unsigned int size_t ;
|
|
typedef unsigned char BOOL ;
|
|
typedef unsigned char UINT8 ;
|
|
typedef unsigned short UINT16 ;
|
|
typedef unsigned long UINT32 ;
|
|
typedef char CHAR ;
|
|
typedef signed char INT8 ;
|
|
typedef signed short INT16 ;
|
|
typedef signed long INT32 ;
|
|
typedef unsigned char Bool ;
|
|
typedef UINT8 BYTE ;
|
|
typedef UINT8 UBYTE ;
|
|
typedef UINT16 UWORD ;
|
|
typedef UINT16 WORD ;
|
|
typedef INT16 SWORD ;
|
|
typedef UINT32 DWORD ;
|
|
typedef unsigned long long UINT64 ;
|
|
typedef void* VOID_PTR ;
|
|
typedef unsigned long UNSIGNED ;
|
|
typedef long SIGNED ;
|
|
typedef unsigned char DATA_ELEMENT ;
|
|
typedef DATA_ELEMENT OPTION ;
|
|
typedef DATA_ELEMENT BOOLEAN ;
|
|
typedef int STATUS ;
|
|
typedef unsigned char UNSIGNED_CHAR ;
|
|
typedef unsigned int UNSIGNED_INT ;
|
|
typedef int INT ;
|
|
typedef unsigned long * UNSIGNED_PTR ;
|
|
typedef unsigned char * BYTE_PTR ;
|
|
typedef char CHAR ;
|
|
typedef unsigned char UCHAR ;
|
|
typedef int INT ;
|
|
typedef unsigned int UINT ;
|
|
typedef long LONG ;
|
|
typedef unsigned long ULONG ;
|
|
typedef short SHORT ;
|
|
typedef unsigned short USHORT ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
OSA_TASK_READY ,
|
|
OSA_TASK_COMPLETED ,
|
|
OSA_TASK_TERMINATED ,
|
|
OSA_TASK_SUSPENDED ,
|
|
OSA_TASK_SLEEP ,
|
|
OSA_TASK_QUEUE_SUSP ,
|
|
OSA_TASK_SEMAPHORE_SUSP ,
|
|
OSA_TASK_EVENT_FLAG ,
|
|
OSA_TASK_BLOCK_MEMORY ,
|
|
OSA_TASK_MUTEX_SUSP ,
|
|
OSA_TASK_STATE_UNKNOWN ,
|
|
} OSA_TASK_STATE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct OSA_TASK_STRUCT
|
|
{
|
|
char *task_name ; /* Pointer to thread ' s name */
|
|
unsigned int task_priority ; /* Priority of thread ( 0 -255 ) */
|
|
unsigned long task_stack_def_val ; /* default vaule of thread */
|
|
OSA_TASK_STATE task_state ; /* Thread ' s execution state */
|
|
unsigned long task_stack_ptr ; /* Thread ' s stack pointer */
|
|
unsigned long task_stack_start ; /* Stack starting address */
|
|
unsigned long task_stack_end ; /* Stack ending address */
|
|
unsigned long task_stack_size ; /* Stack size */
|
|
unsigned long task_run_count ; /* Thread ' s run counter */
|
|
|
|
} OSA_TASK;
|
|
|
|
typedef void *OsaRefT ;
|
|
typedef UINT8 OSA_STATUS ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef void* OS_HISR ;
|
|
typedef void* OSATaskRef ;
|
|
typedef void* OSAHISRRef ;
|
|
typedef void* OSASemaRef ;
|
|
typedef void* OSAMutexRef ;
|
|
typedef void* OSAMsgQRef ;
|
|
typedef void* OSAMailboxQRef ;
|
|
typedef void* OSAPoolRef ;
|
|
typedef void* OSATimerRef ;
|
|
typedef void* OSAFlagRef ;
|
|
typedef void* OSAPartitionPoolRef ;
|
|
typedef void* OSTaskRef ;
|
|
typedef void* OSSemaRef ;
|
|
typedef void* OSMutexRef ;
|
|
typedef void* OSMsgQRef ;
|
|
typedef void* OSMailboxQRef ;
|
|
typedef void* OSPoolRef ;
|
|
typedef void* OSTimerRef ;
|
|
typedef void* OSFlagRef ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef OsaTimerStatusParamsT OSATimerStatus ;
|
|
typedef void* OSATaskRef ;
|
|
typedef void* OSAHISRRef ;
|
|
typedef void* OSAMsgQRef ;
|
|
typedef void* OSAMailboxQRef ;
|
|
typedef void* OSAPartitionPoolRef ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef volatile UINT8 *V_UINT8_PTR ;
|
|
typedef volatile UINT16 *V_UINT16_PTR ;
|
|
typedef volatile UINT32 *V_UINT32_PTR ;
|
|
typedef unsigned int U32Bits ;
|
|
typedef BOOL BOOLEAN ;
|
|
typedef const char * SwVersion ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
PMU_POR = 1 ,
|
|
PMU_EMR ,
|
|
PMU_WDTR = ( PMU_EMR+2 )
|
|
} PMU_LastResetStatus;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_INT_IFC ,
|
|
DIAG_EXT_IFC
|
|
} DIAG_IF_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_DEV_USB ,
|
|
DIAG_DEV_SD ,
|
|
DIAG_DEV_FS ,
|
|
DIAG_DEV_UART ,
|
|
DIAG_DEV_SPI ,
|
|
DIAG_DEV_RAM ,
|
|
DIAG_DEV_NONE
|
|
} DIAG_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
SULOG_DEV_USB ,
|
|
SULOG_DEV_SD
|
|
} SULOG_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
EEH_DUMP_DEV_USB_SD ,
|
|
EEH_DUMP_DEV_SPI
|
|
} EEH_DUMP_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_START_PS_OFF ,
|
|
DIAG_START_PS_ON
|
|
} DIAG_START_PS_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_UART_SPEED_921600 , // for CP UART
|
|
DIAG_UART_SPEED_1842000 ,
|
|
DIAG_UART_SPEED_3000000 ,
|
|
DIAG_UART_DISABLE ,
|
|
DIAG_AP_UART_SPEED_921600 , // for AP UART
|
|
DIAG_AP_UART_SPEED_1842000 ,
|
|
DIAG_AP_UART_SPEED_3000000 ,
|
|
} DIAG_UART_SPEED_TYPE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
DIAG_IF_TYPE useIntIf ; /* use internal interface or external interface */
|
|
DIAG_UART_SPEED_TYPE useHighSpeedUART ; /* high speed UART ( 460800 ) or low speed UART ( 115200 ) */
|
|
// DIAG_MEM_SWITCH diagMemSwitch ;
|
|
BOOL GLFeatureFlag ;
|
|
DIAG_START_PS_TYPE diagStartPS ;
|
|
DIAG_DEV_TYPE diagDevType ;
|
|
SULOG_DEV_TYPE sulogDevType ;
|
|
EEH_DUMP_DEV_TYPE eehDumpDevType ;
|
|
// DIAG_MEM_SWITCH diagMemSwitch ;
|
|
BOOL usbUserMode ;
|
|
} diagCfgDataS;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
UINT32 dbID ;
|
|
UINT32 filterBitLength ;
|
|
UINT32 reserved [ 6 ] ;
|
|
} DIAG_Nvm_Filter_File_Header_t;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
LOG_DISABLE = 0x0 ,
|
|
UART_LOG_ENABLE = 0x1 ,
|
|
ACAT_LOG_ENABLE = 0x2
|
|
} Log_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
MSG_DISABLE = 0x0 ,
|
|
ACAT_MSG_ENABLE = 0x1
|
|
} Msg_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
RTI_LOG_DISABLE = 0x0 ,
|
|
RTI_DUMP_ENABLE = 0x1 ,
|
|
RTI_TASK_ENABLE = 0x2 ,
|
|
RTI_MIPS_ENABLE = 0x3
|
|
} RTI_ConfigE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Log_ConfigE log_cfg ;
|
|
Msg_ConfigE msg_cfg ;
|
|
RTI_ConfigE rti_cfg ;
|
|
} Log_ConfigS;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
YMODEM_DISABLE = 0x0 ,
|
|
YMODEM_ENABLE = 0x1
|
|
} Ymodem_Dump_config;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Ymodem_Dump_config config ;
|
|
} Ymodem_Dump_type;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* MIFI driver*/
|
|
USB_GENERIC_MIFI_DRIVER = 0x0 ,
|
|
USB_MARVELL_MIFI_DRIVER = 0x1 ,
|
|
USB_ASR_MIFI_DRIVER = 0x2 ,
|
|
USB_GENERIC_MOD_DRIVER = 0x10 ,
|
|
USB_GENERIC_MOD_ECM_DRIVER = 0x12 ,
|
|
|
|
USB_CDC_ACM_ONLY_DRIVER = 0x13 ,
|
|
|
|
USB_DIAG_UAC_DRIVER = 0x14 ,
|
|
|
|
USB_QUEC_CUST_DRIVER = 0x15 ,
|
|
|
|
|
|
/* MBIM driver*/
|
|
USB_MBIM_ONLY_DRIVER = 0x40 ,
|
|
USB_MBIM_GENERIC_DRIVER = 0x41 ,
|
|
USB_MBIM_MAX_DRIVER = 0x4F ,
|
|
|
|
/* Other driver*/
|
|
USB_CDROM_ONLY_DRIVER = 0x91 ,
|
|
USB_CDROM_DIAG_DRIVER = 0x92 ,
|
|
USB_DIAG_ONLY_DRIVER = 0x93 ,
|
|
USB_MODEM_ONLY_DRIVER = 0x94 ,
|
|
USB_MODEM_DIAG_DRIVER = 0x95 ,
|
|
|
|
USB_MAX_DRIVER = 0xFF
|
|
} Usb_driver_typeE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
MASS_STORAGE_DISABLE = 0x0 ,
|
|
MASS_STORAGE_ENABLE = 0x1
|
|
} MassStorage_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
USB_AUTO_INSTALL_DISABLE = 0x0 ,
|
|
USB_AUTO_INSTALL_ENABLE = 0x1
|
|
} Usb_auto_install_type;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
USB_OS_DETECT_DISABLE = 0x0 ,
|
|
USB_OS_DETECT_ENABLE = 0x1
|
|
} Usb_OS_detect_type;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Usb_driver_typeE usb_driver ;
|
|
MassStorage_ConfigE mass_storage ;
|
|
Usb_auto_install_type auto_install ;
|
|
Usb_OS_detect_type os_detect ;
|
|
} Usb_DriverS;
|
|
|
|
typedef UINT8 UART_Activity ;
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct /* This is structure of the UART Configuration */
|
|
{
|
|
UART_OpMode opMode ; /* fifo mode , non fifo mode or DMA for basic interface*/
|
|
UART_TriggerLevel triggerLevel ; /* the trigger level interrupt on 1 , 8 , 16 , 32 */
|
|
UART_BaudRates baudRate ; /* the rate of the transmit and the receive up to 111520 ( default - 9600 ) .*/
|
|
UART_WordLen numDataBits ; /* 5 , 6 , 7 , or 8 number of data bits in the UART data frame ( default - 8 ) . */
|
|
UART_StopBits stopBits ; /* 1 , 1.500000 or 2 stop bits in the UART data frame ( default - 1 ) . */
|
|
UART_ParityTBits parityBitType ; /* Even , Odd or no-parity bit type in the UART data frame ( default - Non ) . */
|
|
UART_InterfaceType interfaceType ; /* number of interface that the UART driver supplies ( default - UART_IF_TYPE_L2 ) */
|
|
BOOL modemSignal ; /* enable operate modem - TRUE , disable modem - FALSE */
|
|
BOOL flowControl ; /* enable Auto flow Control - TRUE , disable Auto flow Control - FALSE */
|
|
UINT8 sleepMode ; /* enable sleep mode - TRUE , more fine control - see UARTSleepMode enum */
|
|
BOOL auto_baud ; /* enable auto_baud , auto-baud-rate detection within the UART ( default - FALSE ) */
|
|
UART_SIRConfigure sirIrDA ;
|
|
} UARTConfiguration;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum // change the order -1 to +
|
|
{
|
|
UART_RC_OK = 1 , /* 1 - no errors */
|
|
|
|
UART_RC_PORT_NUM_ERROR = -100 , /* -100 - Error in the UART port number */
|
|
UART_RC_NO_DATA_TO_READ , /* -99 - Eror no data to read from the FIFO UART */
|
|
UART_RC_ILLEGAL_BAUD_RATE , /* -98 - Error in the UART Bayd Rate */
|
|
UART_RC_UART_PARITY_BITS_ERROR , /* -97 - Error in parity bit */
|
|
UART_RC_UART_ONE_STOP_BIT_ERROR , /* -96 - Error in one stop bit */
|
|
UART_RC_ONE_HALF_OR_TWO_STOP_BIT_ERROR , /* -95 - Error in two stop bit */
|
|
UART_RC_BAD_INTERFACE_TYPE , /* -94 - Error in the Interface Type */
|
|
UART_RC_UART_NOT_AVAILABLE , /* -93 - Error in try to open UART that is open */
|
|
UART_RC_NO_DATA_TO_WRITE , /* -92 - Error No data to writ the len = 0 */
|
|
UART_RC_NOT_ALL_BYTE_WRITTEN , /* -91 - Error Not all the Byte write to the UART FIFO */
|
|
UART_RC_ISR_ALREADY_BIND , /* -90 - Error try to bind ISR for Basic Interface */
|
|
UART_RC_WRONG_ISR_UNBIND , /* -89 - Error in the UnBind ISR for Basic Interface */
|
|
UART_RC_FIFO_NOT_EMPTY , /* -88 - Error , the UART FIFO not empty */
|
|
UART_RC_UART_OPEN , /* -87 - Error try chance the configurr when the UART open */
|
|
UART_RC_GPIO_ERR , /* -86 - Error in the Configure of the GPIO */
|
|
UART_RC_IRDA_CONFIG_ERR , /* -85 - Illegal IrDA configuration */
|
|
UART_RC_TX_DMA_ERR /* -84 - DMA TX Error */
|
|
} UART_ReturnCode;
|
|
|
|
typedef void ( *UARTNotifyInterrupt ) ( UART_Port ) ;
|
|
typedef void ( *UsbLogPrint_t ) ( const char * , ... ) ;
|
|
typedef UINT32 rti_uint32_t ;
|
|
typedef UINT64 rti_uint64_t ;
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
UINT32 product_id ;
|
|
UINT8 data [ 20 ] ;
|
|
} InfoForBoardTracking_t;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
RTI_DISABLE=0 ,
|
|
RTI_EN_VER1=1 ,
|
|
RTI_EN_VER2=2
|
|
} RTI_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
RTI_QUE_DISABLE=0 ,
|
|
RTI_QUE_ENABLE=1
|
|
} RTI_QUE_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
RTI_EVT_DISABLE=0 ,
|
|
RTI_EVT_ENABLE=1
|
|
} RTI_EVT_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
TIME_OUT_3MS=0x62 ,
|
|
TIME_OUT_4MS=0x83 ,
|
|
TIME_OUT_5MS=0xA4 ,
|
|
TIME_OUT_6MS=0xC4 ,
|
|
TIME_OUT_MAX=0xFF
|
|
} Timeout_Threshold;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
RTI_TYPE rtiType ;
|
|
RTI_QUE_TYPE rtiQueType ;
|
|
RTI_EVT_TYPE rtiEvtType ;
|
|
|
|
int rtiChange ;
|
|
int rtiHT ;
|
|
int rtiLT ;
|
|
|
|
int modeChange ;
|
|
int modeHT ;
|
|
int modeLT ;
|
|
|
|
Timeout_Threshold Timeout ;
|
|
} RTICfg_t;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
UART_DEV_UART ,
|
|
UART_DEV_DIAG ,
|
|
} UART_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
UINT32 offset ;
|
|
UINT32 size ;
|
|
} activateCode_info_t;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
UART_DEV_TYPE uartDevType ;
|
|
BOOL actiCodeFlag ;
|
|
activateCode_info_t activateCode [ 4 ] ; // for Ali activation code , [ 0 ] :flag , [ 1 ] :offset , [ 2 ] :size
|
|
BOOL astRandomFlag ;
|
|
UINT8 multiVol ; // for log_parition
|
|
UINT8 reserved1_1 ;
|
|
UINT8 reserved1_2 ;
|
|
UINT8 reserved1_3 ;
|
|
UINT32 reserved2 ;
|
|
UINT32 reserved3 ;
|
|
|
|
} uartCfgDataS;
|
|
|
|
typedef void ( *TIMER_CALLBACK_FUNCTION ) ( UINT8 ) ;
|
|
typedef void ( *ACC_TIMER_CALLBACK ) ( UINT32 ) ;
|
|
typedef int TIMER_STATUS ;
|
|
typedef int TIMER_ID ;
|
|
typedef unsigned long long UINT64 ;
|
|
typedef unsigned long TimeIn32KhzUnit ;
|
|
typedef void ( *TickCallbackPtr ) ( UINT32 ) ;
|
|
typedef TimeIn32KhzUnit ( *SuspendCallbackPtr ) ( void ) ;
|
|
typedef void ( *PrepareTimeCallbackPtr ) ( void ) ;
|
|
//PPC Version : V2.1.9.30
|
|
//PPL Source File Name : \tavor\Arbel\obj_PMD2NONE_1602\prepass_results\osa_common_init.ppp
|
|
//PPL Source File Name : \\os\\osa\\src\\osa_common_init.c
|
|
typedef unsigned int size_t ;
|
|
typedef unsigned char BOOL ;
|
|
typedef unsigned char UINT8 ;
|
|
typedef unsigned short UINT16 ;
|
|
typedef unsigned long UINT32 ;
|
|
typedef char CHAR ;
|
|
typedef signed char INT8 ;
|
|
typedef signed short INT16 ;
|
|
typedef signed long INT32 ;
|
|
typedef unsigned char Bool ;
|
|
typedef UINT8 BYTE ;
|
|
typedef UINT8 UBYTE ;
|
|
typedef UINT16 UWORD ;
|
|
typedef UINT16 WORD ;
|
|
typedef INT16 SWORD ;
|
|
typedef UINT32 DWORD ;
|
|
typedef unsigned long long UINT64 ;
|
|
typedef void* VOID_PTR ;
|
|
typedef volatile UINT8 *V_UINT8_PTR ;
|
|
typedef volatile UINT16 *V_UINT16_PTR ;
|
|
typedef volatile UINT32 *V_UINT32_PTR ;
|
|
typedef unsigned int U32Bits ;
|
|
typedef BOOL BOOLEAN ;
|
|
typedef const char * SwVersion ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
PM_RC_OK = 0 ,
|
|
PM_RC_FAIL , // General Failure
|
|
PM_RC_ALREADY_EXISTS // Exit function since required target alrteady exists
|
|
} PM_ReturnCodeE;
|
|
|
|
typedef void ( *PM_CallbackFuncDDRstateT ) ( BOOL b_DDR_ready ) ;
|
|
typedef void ( *TIMER_CALLBACK_FUNCTION ) ( UINT8 ) ;
|
|
typedef void ( *ACC_TIMER_CALLBACK ) ( UINT32 ) ;
|
|
typedef int TIMER_STATUS ;
|
|
typedef int TIMER_ID ;
|
|
typedef unsigned long long UINT64 ;
|
|
typedef unsigned long TimeIn32KhzUnit ;
|
|
typedef void ( *TickCallbackPtr ) ( UINT32 ) ;
|
|
typedef TimeIn32KhzUnit ( *SuspendCallbackPtr ) ( void ) ;
|
|
typedef void ( *PrepareTimeCallbackPtr ) ( void ) ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_PIN_NOT_ASSIGNED = -1 ,
|
|
|
|
GPIO_PIN_0=0 , GPIO_PIN_1 , GPIO_PIN_2 , GPIO_PIN_3 , GPIO_PIN_4 , GPIO_PIN_5 , GPIO_PIN_6 , GPIO_PIN_7 ,
|
|
GPIO_PIN_8 , GPIO_PIN_9 , GPIO_PIN_10 , GPIO_PIN_11 , GPIO_PIN_12 , GPIO_PIN_13 , GPIO_PIN_14 , GPIO_PIN_15 ,
|
|
GPIO_PIN_16 , GPIO_PIN_17 , GPIO_PIN_18 , GPIO_PIN_19 , GPIO_PIN_20 , GPIO_PIN_21 , GPIO_PIN_22 , GPIO_PIN_23 ,
|
|
GPIO_PIN_24 , GPIO_PIN_25 , GPIO_PIN_26 , GPIO_PIN_27 , GPIO_PIN_28 , GPIO_PIN_29 , GPIO_PIN_30 , GPIO_PIN_31 ,
|
|
GPIO_PIN_32 , GPIO_PIN_33 , GPIO_PIN_34 , GPIO_PIN_35 , GPIO_PIN_36 , GPIO_PIN_37 , GPIO_PIN_38 , GPIO_PIN_39 ,
|
|
|
|
GPIO_PIN_40 , GPIO_PIN_41 , GPIO_PIN_42 , GPIO_PIN_43 , GPIO_PIN_44 , GPIO_PIN_45 , GPIO_PIN_46 , GPIO_PIN_47 ,
|
|
GPIO_PIN_48 , GPIO_PIN_49 , GPIO_PIN_50 , GPIO_PIN_51 , GPIO_PIN_52 , GPIO_PIN_53 , GPIO_PIN_54 , GPIO_PIN_55 ,
|
|
GPIO_PIN_56 , GPIO_PIN_57 , GPIO_PIN_58 , GPIO_PIN_59 , GPIO_PIN_60 , GPIO_PIN_61 , GPIO_PIN_62 , GPIO_PIN_63 ,
|
|
// #endif // _TAVOR_HARBELL_
|
|
|
|
// #if defined ( GPIO_128_ENTRIES )
|
|
GPIO_PIN_64 , GPIO_PIN_65 , GPIO_PIN_66 , GPIO_PIN_67 , GPIO_PIN_68 , GPIO_PIN_69 , GPIO_PIN_70 , GPIO_PIN_71 ,
|
|
GPIO_PIN_72 , GPIO_PIN_73 , GPIO_PIN_74 , GPIO_PIN_75 , GPIO_PIN_76 , GPIO_PIN_77 , GPIO_PIN_78 , GPIO_PIN_79 ,
|
|
GPIO_PIN_80 , GPIO_PIN_81 , GPIO_PIN_82 , GPIO_PIN_83 , GPIO_PIN_84 , GPIO_PIN_85 , GPIO_PIN_86 , GPIO_PIN_87 ,
|
|
GPIO_PIN_88 , GPIO_PIN_89 , GPIO_PIN_90 , GPIO_PIN_91 , GPIO_PIN_92 , GPIO_PIN_93 , GPIO_PIN_94 , GPIO_PIN_95 ,
|
|
GPIO_PIN_96 , GPIO_PIN_97 , GPIO_PIN_98 , GPIO_PIN_99 , GPIO_PIN_100 , GPIO_PIN_101 , GPIO_PIN_102 , GPIO_PIN_103 ,
|
|
GPIO_PIN_104 , GPIO_PIN_105 , GPIO_PIN_106 , GPIO_PIN_107 , GPIO_PIN_108 , GPIO_PIN_109 , GPIO_PIN_110 , GPIO_PIN_111 ,
|
|
GPIO_PIN_112 , GPIO_PIN_113 , GPIO_PIN_114 , GPIO_PIN_115 , GPIO_PIN_116 , GPIO_PIN_117 , GPIO_PIN_118 , GPIO_PIN_119 ,
|
|
GPIO_PIN_120 , GPIO_PIN_121 , GPIO_PIN_122 , GPIO_PIN_123 , GPIO_PIN_124 , GPIO_PIN_125 , GPIO_PIN_126 , GPIO_PIN_127 ,
|
|
|
|
GPIO_MAX_AMOUNT_OF_PINS
|
|
} GPIO_PinNumbers;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_RC_OK = 1 ,
|
|
|
|
GPIO_RC_INVALID_PORT_HANDLE = -100 ,
|
|
GPIO_RC_NOT_OUTPUT_PORT ,
|
|
GPIO_RC_NO_TIMER ,
|
|
GPIO_RC_NO_FREE_HANDLE ,
|
|
GPIO_RC_AMOUNT_OUT_OF_RANGE ,
|
|
GPIO_RC_INCORRECT_PORT_SIZE ,
|
|
GPIO_RC_PORT_NOT_ON_ONE_REG ,
|
|
GPIO_RC_INVALID_PIN_NUM ,
|
|
GPIO_RC_PIN_USED_IN_PORT ,
|
|
GPIO_RC_PIN_NOT_FREE ,
|
|
GPIO_RC_PIN_NOT_LOCKED ,
|
|
GPIO_RC_NULL_POINTER ,
|
|
GPIO_RC_PULLED_AND_OUTPUT ,
|
|
GPIO_RC_INCORRECT_PORT_TYPE ,
|
|
GPIO_RC_INCORRECT_TRANSITION_TYPE ,
|
|
GPIO_RC_INCORRECT_DEBOUNCE ,
|
|
GPIO_RC_INCORRECT_DIRECTION ,
|
|
GPIO_RC_INCORRECT_INIT_VALUE
|
|
|
|
, GPIO_RC_INTC_ERROR ,
|
|
GPIO_RC_PRM_ERROR
|
|
|
|
} GPIO_ReturnCode;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_INPUT_PIN = 1 ,
|
|
GPIO_OUTPUT_PIN
|
|
} GPIO_PinDirection;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_PIN_FREE_FOR_USE = 0 ,
|
|
GPIO_PIN_USE_IN_PORT ,
|
|
GPIO_PIN_USE_IN_INTERRUPT ,
|
|
GPIO_PIN_USE_IN_PORT_WITH_INTERRUPT ,
|
|
GPIO_PIN_LOCKED
|
|
} GPIO_PinUsage;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
GPIO_PinUsage pinUsage ;
|
|
GPIO_PinDirection direction ;
|
|
} GPIO_PinStatus;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_INITIAL_VALUE_NO_CHANGE = 0 ,
|
|
GPIO_INITIAL_VALUE_LOW ,
|
|
GPIO_INITIAL_VALUE_HIGH
|
|
} GPIO_BitInitialValue;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_PULL_UP_DOWN_DISABLE = 0 ,
|
|
GPIO_PULL_UP_ENABLE ,
|
|
GPIO_PULL_DOWN_ENABLE
|
|
} GPIO_PullUpDown;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
GPIO_PinNumbers pinNumber ;
|
|
GPIO_PinDirection direction ;
|
|
GPIO_TransitionType transitionType ;
|
|
GPIO_Debounce debounce ;
|
|
GPIO_PullUpDown pullUpDown ;
|
|
GPIO_BitInitialValue initialValue ;
|
|
} GPIO_PinConfiguration;
|
|
|
|
typedef UINT8 GPIO_PortHandle ;
|
|
typedef void ( *GPIO_ISR ) ( void ) ;
|
|
typedef UINT32 INTC_InterruptPriorityTable [ MAX_INTERRUPT_CONTROLLER_SOURCES ] ;
|
|
typedef UINT32 INTC_InterruptInfo ;
|
|
typedef void ( *INTC_ISR ) ( INTC_InterruptInfo interruptInfo ) ;
|
|
typedef char CHAR ;
|
|
typedef unsigned char UCHAR ;
|
|
typedef int INT ;
|
|
typedef unsigned int UINT ;
|
|
typedef long LONG ;
|
|
typedef unsigned long ULONG ;
|
|
typedef short SHORT ;
|
|
typedef unsigned short USHORT ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
OSA_TASK_READY ,
|
|
OSA_TASK_COMPLETED ,
|
|
OSA_TASK_TERMINATED ,
|
|
OSA_TASK_SUSPENDED ,
|
|
OSA_TASK_SLEEP ,
|
|
OSA_TASK_QUEUE_SUSP ,
|
|
OSA_TASK_SEMAPHORE_SUSP ,
|
|
OSA_TASK_EVENT_FLAG ,
|
|
OSA_TASK_BLOCK_MEMORY ,
|
|
OSA_TASK_MUTEX_SUSP ,
|
|
OSA_TASK_STATE_UNKNOWN ,
|
|
} OSA_TASK_STATE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct OSA_TASK_STRUCT
|
|
{
|
|
char *task_name ; /* Pointer to thread ' s name */
|
|
unsigned int task_priority ; /* Priority of thread ( 0 -255 ) */
|
|
unsigned long task_stack_def_val ; /* default vaule of thread */
|
|
OSA_TASK_STATE task_state ; /* Thread ' s execution state */
|
|
unsigned long task_stack_ptr ; /* Thread ' s stack pointer */
|
|
unsigned long task_stack_start ; /* Stack starting address */
|
|
unsigned long task_stack_end ; /* Stack ending address */
|
|
unsigned long task_stack_size ; /* Stack size */
|
|
unsigned long task_run_count ; /* Thread ' s run counter */
|
|
|
|
} OSA_TASK;
|
|
|
|
typedef void *OsaRefT ;
|
|
typedef UINT8 OSA_STATUS ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef void* OS_HISR ;
|
|
typedef void* OSATaskRef ;
|
|
typedef void* OSAHISRRef ;
|
|
typedef void* OSASemaRef ;
|
|
typedef void* OSAMutexRef ;
|
|
typedef void* OSAMsgQRef ;
|
|
typedef void* OSAMailboxQRef ;
|
|
typedef void* OSAPoolRef ;
|
|
typedef void* OSATimerRef ;
|
|
typedef void* OSAFlagRef ;
|
|
typedef void* OSAPartitionPoolRef ;
|
|
typedef void* OSTaskRef ;
|
|
typedef void* OSSemaRef ;
|
|
typedef void* OSMutexRef ;
|
|
typedef void* OSMsgQRef ;
|
|
typedef void* OSMailboxQRef ;
|
|
typedef void* OSPoolRef ;
|
|
typedef void* OSTimerRef ;
|
|
typedef void* OSFlagRef ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef OsaTimerStatusParamsT OSATimerStatus ;
|
|
typedef void* OSATaskRef ;
|
|
typedef void* OSAHISRRef ;
|
|
typedef void* OSAMsgQRef ;
|
|
typedef void* OSAMailboxQRef ;
|
|
typedef void* OSAPartitionPoolRef ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef unsigned long UNSIGNED ;
|
|
typedef long SIGNED ;
|
|
typedef unsigned char DATA_ELEMENT ;
|
|
typedef DATA_ELEMENT OPTION ;
|
|
typedef DATA_ELEMENT BOOLEAN ;
|
|
typedef int STATUS ;
|
|
typedef unsigned char UNSIGNED_CHAR ;
|
|
typedef unsigned int UNSIGNED_INT ;
|
|
typedef int INT ;
|
|
typedef unsigned long * UNSIGNED_PTR ;
|
|
typedef unsigned char * BYTE_PTR ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
PMU_POR = 1 ,
|
|
PMU_EMR ,
|
|
PMU_WDTR = ( PMU_EMR+2 )
|
|
} PMU_LastResetStatus;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_INT_IFC ,
|
|
DIAG_EXT_IFC
|
|
} DIAG_IF_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_DEV_USB ,
|
|
DIAG_DEV_SD ,
|
|
DIAG_DEV_FS ,
|
|
DIAG_DEV_UART ,
|
|
DIAG_DEV_SPI ,
|
|
DIAG_DEV_RAM ,
|
|
DIAG_DEV_NONE
|
|
} DIAG_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
SULOG_DEV_USB ,
|
|
SULOG_DEV_SD
|
|
} SULOG_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
EEH_DUMP_DEV_USB_SD ,
|
|
EEH_DUMP_DEV_SPI
|
|
} EEH_DUMP_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_START_PS_OFF ,
|
|
DIAG_START_PS_ON
|
|
} DIAG_START_PS_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_UART_SPEED_921600 , // for CP UART
|
|
DIAG_UART_SPEED_1842000 ,
|
|
DIAG_UART_SPEED_3000000 ,
|
|
DIAG_UART_DISABLE ,
|
|
DIAG_AP_UART_SPEED_921600 , // for AP UART
|
|
DIAG_AP_UART_SPEED_1842000 ,
|
|
DIAG_AP_UART_SPEED_3000000 ,
|
|
} DIAG_UART_SPEED_TYPE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
DIAG_IF_TYPE useIntIf ; /* use internal interface or external interface */
|
|
DIAG_UART_SPEED_TYPE useHighSpeedUART ; /* high speed UART ( 460800 ) or low speed UART ( 115200 ) */
|
|
// DIAG_MEM_SWITCH diagMemSwitch ;
|
|
BOOL GLFeatureFlag ;
|
|
DIAG_START_PS_TYPE diagStartPS ;
|
|
DIAG_DEV_TYPE diagDevType ;
|
|
SULOG_DEV_TYPE sulogDevType ;
|
|
EEH_DUMP_DEV_TYPE eehDumpDevType ;
|
|
// DIAG_MEM_SWITCH diagMemSwitch ;
|
|
BOOL usbUserMode ;
|
|
} diagCfgDataS;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
UINT32 dbID ;
|
|
UINT32 filterBitLength ;
|
|
UINT32 reserved [ 6 ] ;
|
|
} DIAG_Nvm_Filter_File_Header_t;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
LOG_DISABLE = 0x0 ,
|
|
UART_LOG_ENABLE = 0x1 ,
|
|
ACAT_LOG_ENABLE = 0x2
|
|
} Log_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
MSG_DISABLE = 0x0 ,
|
|
ACAT_MSG_ENABLE = 0x1
|
|
} Msg_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
RTI_LOG_DISABLE = 0x0 ,
|
|
RTI_DUMP_ENABLE = 0x1 ,
|
|
RTI_TASK_ENABLE = 0x2 ,
|
|
RTI_MIPS_ENABLE = 0x3
|
|
} RTI_ConfigE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Log_ConfigE log_cfg ;
|
|
Msg_ConfigE msg_cfg ;
|
|
RTI_ConfigE rti_cfg ;
|
|
} Log_ConfigS;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
YMODEM_DISABLE = 0x0 ,
|
|
YMODEM_ENABLE = 0x1
|
|
} Ymodem_Dump_config;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Ymodem_Dump_config config ;
|
|
} Ymodem_Dump_type;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* MIFI driver*/
|
|
USB_GENERIC_MIFI_DRIVER = 0x0 ,
|
|
USB_MARVELL_MIFI_DRIVER = 0x1 ,
|
|
USB_ASR_MIFI_DRIVER = 0x2 ,
|
|
USB_GENERIC_MOD_DRIVER = 0x10 ,
|
|
USB_GENERIC_MOD_ECM_DRIVER = 0x12 ,
|
|
|
|
USB_CDC_ACM_ONLY_DRIVER = 0x13 ,
|
|
|
|
USB_DIAG_UAC_DRIVER = 0x14 ,
|
|
|
|
USB_QUEC_CUST_DRIVER = 0x15 ,
|
|
|
|
|
|
/* MBIM driver*/
|
|
USB_MBIM_ONLY_DRIVER = 0x40 ,
|
|
USB_MBIM_GENERIC_DRIVER = 0x41 ,
|
|
USB_MBIM_MAX_DRIVER = 0x4F ,
|
|
|
|
/* Other driver*/
|
|
USB_CDROM_ONLY_DRIVER = 0x91 ,
|
|
USB_CDROM_DIAG_DRIVER = 0x92 ,
|
|
USB_DIAG_ONLY_DRIVER = 0x93 ,
|
|
USB_MODEM_ONLY_DRIVER = 0x94 ,
|
|
USB_MODEM_DIAG_DRIVER = 0x95 ,
|
|
|
|
USB_MAX_DRIVER = 0xFF
|
|
} Usb_driver_typeE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
MASS_STORAGE_DISABLE = 0x0 ,
|
|
MASS_STORAGE_ENABLE = 0x1
|
|
} MassStorage_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
USB_AUTO_INSTALL_DISABLE = 0x0 ,
|
|
USB_AUTO_INSTALL_ENABLE = 0x1
|
|
} Usb_auto_install_type;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
USB_OS_DETECT_DISABLE = 0x0 ,
|
|
USB_OS_DETECT_ENABLE = 0x1
|
|
} Usb_OS_detect_type;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Usb_driver_typeE usb_driver ;
|
|
MassStorage_ConfigE mass_storage ;
|
|
Usb_auto_install_type auto_install ;
|
|
Usb_OS_detect_type os_detect ;
|
|
} Usb_DriverS;
|
|
|
|
typedef UINT8 UART_Activity ;
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct /* This is structure of the UART Configuration */
|
|
{
|
|
UART_OpMode opMode ; /* fifo mode , non fifo mode or DMA for basic interface*/
|
|
UART_TriggerLevel triggerLevel ; /* the trigger level interrupt on 1 , 8 , 16 , 32 */
|
|
UART_BaudRates baudRate ; /* the rate of the transmit and the receive up to 111520 ( default - 9600 ) .*/
|
|
UART_WordLen numDataBits ; /* 5 , 6 , 7 , or 8 number of data bits in the UART data frame ( default - 8 ) . */
|
|
UART_StopBits stopBits ; /* 1 , 1.500000 or 2 stop bits in the UART data frame ( default - 1 ) . */
|
|
UART_ParityTBits parityBitType ; /* Even , Odd or no-parity bit type in the UART data frame ( default - Non ) . */
|
|
UART_InterfaceType interfaceType ; /* number of interface that the UART driver supplies ( default - UART_IF_TYPE_L2 ) */
|
|
BOOL modemSignal ; /* enable operate modem - TRUE , disable modem - FALSE */
|
|
BOOL flowControl ; /* enable Auto flow Control - TRUE , disable Auto flow Control - FALSE */
|
|
UINT8 sleepMode ; /* enable sleep mode - TRUE , more fine control - see UARTSleepMode enum */
|
|
BOOL auto_baud ; /* enable auto_baud , auto-baud-rate detection within the UART ( default - FALSE ) */
|
|
UART_SIRConfigure sirIrDA ;
|
|
} UARTConfiguration;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum // change the order -1 to +
|
|
{
|
|
UART_RC_OK = 1 , /* 1 - no errors */
|
|
|
|
UART_RC_PORT_NUM_ERROR = -100 , /* -100 - Error in the UART port number */
|
|
UART_RC_NO_DATA_TO_READ , /* -99 - Eror no data to read from the FIFO UART */
|
|
UART_RC_ILLEGAL_BAUD_RATE , /* -98 - Error in the UART Bayd Rate */
|
|
UART_RC_UART_PARITY_BITS_ERROR , /* -97 - Error in parity bit */
|
|
UART_RC_UART_ONE_STOP_BIT_ERROR , /* -96 - Error in one stop bit */
|
|
UART_RC_ONE_HALF_OR_TWO_STOP_BIT_ERROR , /* -95 - Error in two stop bit */
|
|
UART_RC_BAD_INTERFACE_TYPE , /* -94 - Error in the Interface Type */
|
|
UART_RC_UART_NOT_AVAILABLE , /* -93 - Error in try to open UART that is open */
|
|
UART_RC_NO_DATA_TO_WRITE , /* -92 - Error No data to writ the len = 0 */
|
|
UART_RC_NOT_ALL_BYTE_WRITTEN , /* -91 - Error Not all the Byte write to the UART FIFO */
|
|
UART_RC_ISR_ALREADY_BIND , /* -90 - Error try to bind ISR for Basic Interface */
|
|
UART_RC_WRONG_ISR_UNBIND , /* -89 - Error in the UnBind ISR for Basic Interface */
|
|
UART_RC_FIFO_NOT_EMPTY , /* -88 - Error , the UART FIFO not empty */
|
|
UART_RC_UART_OPEN , /* -87 - Error try chance the configurr when the UART open */
|
|
UART_RC_GPIO_ERR , /* -86 - Error in the Configure of the GPIO */
|
|
UART_RC_IRDA_CONFIG_ERR , /* -85 - Illegal IrDA configuration */
|
|
UART_RC_TX_DMA_ERR /* -84 - DMA TX Error */
|
|
} UART_ReturnCode;
|
|
|
|
typedef void ( *UARTNotifyInterrupt ) ( UART_Port ) ;
|
|
typedef void ( *UsbLogPrint_t ) ( const char * , ... ) ;
|
|
typedef UINT32 rti_uint32_t ;
|
|
typedef UINT64 rti_uint64_t ;
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
UINT32 product_id ;
|
|
UINT8 data [ 20 ] ;
|
|
} InfoForBoardTracking_t;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
RTI_DISABLE=0 ,
|
|
RTI_EN_VER1=1 ,
|
|
RTI_EN_VER2=2
|
|
} RTI_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
RTI_QUE_DISABLE=0 ,
|
|
RTI_QUE_ENABLE=1
|
|
} RTI_QUE_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
RTI_EVT_DISABLE=0 ,
|
|
RTI_EVT_ENABLE=1
|
|
} RTI_EVT_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
TIME_OUT_3MS=0x62 ,
|
|
TIME_OUT_4MS=0x83 ,
|
|
TIME_OUT_5MS=0xA4 ,
|
|
TIME_OUT_6MS=0xC4 ,
|
|
TIME_OUT_MAX=0xFF
|
|
} Timeout_Threshold;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
RTI_TYPE rtiType ;
|
|
RTI_QUE_TYPE rtiQueType ;
|
|
RTI_EVT_TYPE rtiEvtType ;
|
|
|
|
int rtiChange ;
|
|
int rtiHT ;
|
|
int rtiLT ;
|
|
|
|
int modeChange ;
|
|
int modeHT ;
|
|
int modeLT ;
|
|
|
|
Timeout_Threshold Timeout ;
|
|
} RTICfg_t;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
UART_DEV_UART ,
|
|
UART_DEV_DIAG ,
|
|
} UART_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
UINT32 offset ;
|
|
UINT32 size ;
|
|
} activateCode_info_t;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
UART_DEV_TYPE uartDevType ;
|
|
BOOL actiCodeFlag ;
|
|
activateCode_info_t activateCode [ 4 ] ; // for Ali activation code , [ 0 ] :flag , [ 1 ] :offset , [ 2 ] :size
|
|
BOOL astRandomFlag ;
|
|
UINT8 multiVol ; // for log_parition
|
|
UINT8 reserved1_1 ;
|
|
UINT8 reserved1_2 ;
|
|
UINT8 reserved1_3 ;
|
|
UINT32 reserved2 ;
|
|
UINT32 reserved3 ;
|
|
|
|
} uartCfgDataS;
|
|
|
|
//PPC Version : V2.1.9.30
|
|
//PPL Source File Name : \tavor\Arbel\obj_PMD2NONE_1602\prepass_results\osa_common_run.ppp
|
|
//PPL Source File Name : \\os\\osa\\src\\osa_common_run.c
|
|
typedef unsigned int size_t ;
|
|
typedef unsigned char BOOL ;
|
|
typedef unsigned char UINT8 ;
|
|
typedef unsigned short UINT16 ;
|
|
typedef unsigned long UINT32 ;
|
|
typedef char CHAR ;
|
|
typedef signed char INT8 ;
|
|
typedef signed short INT16 ;
|
|
typedef signed long INT32 ;
|
|
typedef unsigned char Bool ;
|
|
typedef UINT8 BYTE ;
|
|
typedef UINT8 UBYTE ;
|
|
typedef UINT16 UWORD ;
|
|
typedef UINT16 WORD ;
|
|
typedef INT16 SWORD ;
|
|
typedef UINT32 DWORD ;
|
|
typedef unsigned long long UINT64 ;
|
|
typedef void* VOID_PTR ;
|
|
typedef char CHAR ;
|
|
typedef unsigned char UCHAR ;
|
|
typedef int INT ;
|
|
typedef unsigned int UINT ;
|
|
typedef long LONG ;
|
|
typedef unsigned long ULONG ;
|
|
typedef short SHORT ;
|
|
typedef unsigned short USHORT ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
OSA_TASK_READY ,
|
|
OSA_TASK_COMPLETED ,
|
|
OSA_TASK_TERMINATED ,
|
|
OSA_TASK_SUSPENDED ,
|
|
OSA_TASK_SLEEP ,
|
|
OSA_TASK_QUEUE_SUSP ,
|
|
OSA_TASK_SEMAPHORE_SUSP ,
|
|
OSA_TASK_EVENT_FLAG ,
|
|
OSA_TASK_BLOCK_MEMORY ,
|
|
OSA_TASK_MUTEX_SUSP ,
|
|
OSA_TASK_STATE_UNKNOWN ,
|
|
} OSA_TASK_STATE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct OSA_TASK_STRUCT
|
|
{
|
|
char *task_name ; /* Pointer to thread ' s name */
|
|
unsigned int task_priority ; /* Priority of thread ( 0 -255 ) */
|
|
unsigned long task_stack_def_val ; /* default vaule of thread */
|
|
OSA_TASK_STATE task_state ; /* Thread ' s execution state */
|
|
unsigned long task_stack_ptr ; /* Thread ' s stack pointer */
|
|
unsigned long task_stack_start ; /* Stack starting address */
|
|
unsigned long task_stack_end ; /* Stack ending address */
|
|
unsigned long task_stack_size ; /* Stack size */
|
|
unsigned long task_run_count ; /* Thread ' s run counter */
|
|
|
|
} OSA_TASK;
|
|
|
|
typedef void *OsaRefT ;
|
|
typedef UINT8 OSA_STATUS ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef void* OS_HISR ;
|
|
typedef void* OSATaskRef ;
|
|
typedef void* OSAHISRRef ;
|
|
typedef void* OSASemaRef ;
|
|
typedef void* OSAMutexRef ;
|
|
typedef void* OSAMsgQRef ;
|
|
typedef void* OSAMailboxQRef ;
|
|
typedef void* OSAPoolRef ;
|
|
typedef void* OSATimerRef ;
|
|
typedef void* OSAFlagRef ;
|
|
typedef void* OSAPartitionPoolRef ;
|
|
typedef void* OSTaskRef ;
|
|
typedef void* OSSemaRef ;
|
|
typedef void* OSMutexRef ;
|
|
typedef void* OSMsgQRef ;
|
|
typedef void* OSMailboxQRef ;
|
|
typedef void* OSPoolRef ;
|
|
typedef void* OSTimerRef ;
|
|
typedef void* OSFlagRef ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef OsaTimerStatusParamsT OSATimerStatus ;
|
|
typedef void* OSATaskRef ;
|
|
typedef void* OSAHISRRef ;
|
|
typedef void* OSAMsgQRef ;
|
|
typedef void* OSAMailboxQRef ;
|
|
typedef void* OSAPartitionPoolRef ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef unsigned long UNSIGNED ;
|
|
typedef long SIGNED ;
|
|
typedef unsigned char DATA_ELEMENT ;
|
|
typedef DATA_ELEMENT OPTION ;
|
|
typedef DATA_ELEMENT BOOLEAN ;
|
|
typedef int STATUS ;
|
|
typedef unsigned char UNSIGNED_CHAR ;
|
|
typedef unsigned int UNSIGNED_INT ;
|
|
typedef int INT ;
|
|
typedef unsigned long * UNSIGNED_PTR ;
|
|
typedef unsigned char * BYTE_PTR ;
|
|
typedef volatile UINT8 *V_UINT8_PTR ;
|
|
typedef volatile UINT16 *V_UINT16_PTR ;
|
|
typedef volatile UINT32 *V_UINT32_PTR ;
|
|
typedef unsigned int U32Bits ;
|
|
typedef BOOL BOOLEAN ;
|
|
typedef const char * SwVersion ;
|
|
typedef unsigned int size_t ;
|
|
typedef unsigned int size_t ;
|
|
typedef unsigned short wchar_t ;
|
|
typedef int ( *__heapprt ) ( void * , char const * , ... ) ;
|
|
typedef va_list __gnuc_va_list ;
|
|
typedef void ( *CommandAddress ) ( void ) ;
|
|
typedef char* CommandProto ;
|
|
typedef const char * DiagDBVersion ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
PROTOCOL_TYPE_0 = 0 ,
|
|
MAX_PROTOCOL_TYPES
|
|
} ProtocolType;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
BOOL bEnabled ; // enable / disable the trace logging feature
|
|
ProtocolType eProtocolType ; // protocol type for communication with ICAT , currently only protocol type 0 is supported
|
|
UINT16 nMaxDataPerTrace ; // for each trace , what is the maximum data length to accompany the trace , in protocol type 0 , this is relevant only to DSP messages
|
|
} DiagLoggerDefs;
|
|
|
|
typedef void ( *TIMER_CALLBACK_FUNCTION ) ( UINT8 ) ;
|
|
typedef void ( *ACC_TIMER_CALLBACK ) ( UINT32 ) ;
|
|
typedef int TIMER_STATUS ;
|
|
typedef int TIMER_ID ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
PM_RC_OK = 0 ,
|
|
PM_RC_FAIL , // General Failure
|
|
PM_RC_ALREADY_EXISTS // Exit function since required target alrteady exists
|
|
} PM_ReturnCodeE;
|
|
|
|
typedef void ( *PM_CallbackFuncDDRstateT ) ( BOOL b_DDR_ready ) ;
|
|
typedef unsigned long long UINT64 ;
|
|
typedef unsigned long TimeIn32KhzUnit ;
|
|
typedef void ( *TickCallbackPtr ) ( UINT32 ) ;
|
|
typedef TimeIn32KhzUnit ( *SuspendCallbackPtr ) ( void ) ;
|
|
typedef void ( *PrepareTimeCallbackPtr ) ( void ) ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_PIN_NOT_ASSIGNED = -1 ,
|
|
|
|
GPIO_PIN_0=0 , GPIO_PIN_1 , GPIO_PIN_2 , GPIO_PIN_3 , GPIO_PIN_4 , GPIO_PIN_5 , GPIO_PIN_6 , GPIO_PIN_7 ,
|
|
GPIO_PIN_8 , GPIO_PIN_9 , GPIO_PIN_10 , GPIO_PIN_11 , GPIO_PIN_12 , GPIO_PIN_13 , GPIO_PIN_14 , GPIO_PIN_15 ,
|
|
GPIO_PIN_16 , GPIO_PIN_17 , GPIO_PIN_18 , GPIO_PIN_19 , GPIO_PIN_20 , GPIO_PIN_21 , GPIO_PIN_22 , GPIO_PIN_23 ,
|
|
GPIO_PIN_24 , GPIO_PIN_25 , GPIO_PIN_26 , GPIO_PIN_27 , GPIO_PIN_28 , GPIO_PIN_29 , GPIO_PIN_30 , GPIO_PIN_31 ,
|
|
GPIO_PIN_32 , GPIO_PIN_33 , GPIO_PIN_34 , GPIO_PIN_35 , GPIO_PIN_36 , GPIO_PIN_37 , GPIO_PIN_38 , GPIO_PIN_39 ,
|
|
|
|
GPIO_PIN_40 , GPIO_PIN_41 , GPIO_PIN_42 , GPIO_PIN_43 , GPIO_PIN_44 , GPIO_PIN_45 , GPIO_PIN_46 , GPIO_PIN_47 ,
|
|
GPIO_PIN_48 , GPIO_PIN_49 , GPIO_PIN_50 , GPIO_PIN_51 , GPIO_PIN_52 , GPIO_PIN_53 , GPIO_PIN_54 , GPIO_PIN_55 ,
|
|
GPIO_PIN_56 , GPIO_PIN_57 , GPIO_PIN_58 , GPIO_PIN_59 , GPIO_PIN_60 , GPIO_PIN_61 , GPIO_PIN_62 , GPIO_PIN_63 ,
|
|
// #endif // _TAVOR_HARBELL_
|
|
|
|
// #if defined ( GPIO_128_ENTRIES )
|
|
GPIO_PIN_64 , GPIO_PIN_65 , GPIO_PIN_66 , GPIO_PIN_67 , GPIO_PIN_68 , GPIO_PIN_69 , GPIO_PIN_70 , GPIO_PIN_71 ,
|
|
GPIO_PIN_72 , GPIO_PIN_73 , GPIO_PIN_74 , GPIO_PIN_75 , GPIO_PIN_76 , GPIO_PIN_77 , GPIO_PIN_78 , GPIO_PIN_79 ,
|
|
GPIO_PIN_80 , GPIO_PIN_81 , GPIO_PIN_82 , GPIO_PIN_83 , GPIO_PIN_84 , GPIO_PIN_85 , GPIO_PIN_86 , GPIO_PIN_87 ,
|
|
GPIO_PIN_88 , GPIO_PIN_89 , GPIO_PIN_90 , GPIO_PIN_91 , GPIO_PIN_92 , GPIO_PIN_93 , GPIO_PIN_94 , GPIO_PIN_95 ,
|
|
GPIO_PIN_96 , GPIO_PIN_97 , GPIO_PIN_98 , GPIO_PIN_99 , GPIO_PIN_100 , GPIO_PIN_101 , GPIO_PIN_102 , GPIO_PIN_103 ,
|
|
GPIO_PIN_104 , GPIO_PIN_105 , GPIO_PIN_106 , GPIO_PIN_107 , GPIO_PIN_108 , GPIO_PIN_109 , GPIO_PIN_110 , GPIO_PIN_111 ,
|
|
GPIO_PIN_112 , GPIO_PIN_113 , GPIO_PIN_114 , GPIO_PIN_115 , GPIO_PIN_116 , GPIO_PIN_117 , GPIO_PIN_118 , GPIO_PIN_119 ,
|
|
GPIO_PIN_120 , GPIO_PIN_121 , GPIO_PIN_122 , GPIO_PIN_123 , GPIO_PIN_124 , GPIO_PIN_125 , GPIO_PIN_126 , GPIO_PIN_127 ,
|
|
|
|
GPIO_MAX_AMOUNT_OF_PINS
|
|
} GPIO_PinNumbers;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_RC_OK = 1 ,
|
|
|
|
GPIO_RC_INVALID_PORT_HANDLE = -100 ,
|
|
GPIO_RC_NOT_OUTPUT_PORT ,
|
|
GPIO_RC_NO_TIMER ,
|
|
GPIO_RC_NO_FREE_HANDLE ,
|
|
GPIO_RC_AMOUNT_OUT_OF_RANGE ,
|
|
GPIO_RC_INCORRECT_PORT_SIZE ,
|
|
GPIO_RC_PORT_NOT_ON_ONE_REG ,
|
|
GPIO_RC_INVALID_PIN_NUM ,
|
|
GPIO_RC_PIN_USED_IN_PORT ,
|
|
GPIO_RC_PIN_NOT_FREE ,
|
|
GPIO_RC_PIN_NOT_LOCKED ,
|
|
GPIO_RC_NULL_POINTER ,
|
|
GPIO_RC_PULLED_AND_OUTPUT ,
|
|
GPIO_RC_INCORRECT_PORT_TYPE ,
|
|
GPIO_RC_INCORRECT_TRANSITION_TYPE ,
|
|
GPIO_RC_INCORRECT_DEBOUNCE ,
|
|
GPIO_RC_INCORRECT_DIRECTION ,
|
|
GPIO_RC_INCORRECT_INIT_VALUE
|
|
|
|
, GPIO_RC_INTC_ERROR ,
|
|
GPIO_RC_PRM_ERROR
|
|
|
|
} GPIO_ReturnCode;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_INPUT_PIN = 1 ,
|
|
GPIO_OUTPUT_PIN
|
|
} GPIO_PinDirection;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_PIN_FREE_FOR_USE = 0 ,
|
|
GPIO_PIN_USE_IN_PORT ,
|
|
GPIO_PIN_USE_IN_INTERRUPT ,
|
|
GPIO_PIN_USE_IN_PORT_WITH_INTERRUPT ,
|
|
GPIO_PIN_LOCKED
|
|
} GPIO_PinUsage;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
GPIO_PinUsage pinUsage ;
|
|
GPIO_PinDirection direction ;
|
|
} GPIO_PinStatus;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_INITIAL_VALUE_NO_CHANGE = 0 ,
|
|
GPIO_INITIAL_VALUE_LOW ,
|
|
GPIO_INITIAL_VALUE_HIGH
|
|
} GPIO_BitInitialValue;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_PULL_UP_DOWN_DISABLE = 0 ,
|
|
GPIO_PULL_UP_ENABLE ,
|
|
GPIO_PULL_DOWN_ENABLE
|
|
} GPIO_PullUpDown;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
GPIO_PinNumbers pinNumber ;
|
|
GPIO_PinDirection direction ;
|
|
GPIO_TransitionType transitionType ;
|
|
GPIO_Debounce debounce ;
|
|
GPIO_PullUpDown pullUpDown ;
|
|
GPIO_BitInitialValue initialValue ;
|
|
} GPIO_PinConfiguration;
|
|
|
|
typedef UINT8 GPIO_PortHandle ;
|
|
typedef void ( *GPIO_ISR ) ( void ) ;
|
|
typedef UINT32 INTC_InterruptPriorityTable [ MAX_INTERRUPT_CONTROLLER_SOURCES ] ;
|
|
typedef UINT32 INTC_InterruptInfo ;
|
|
typedef void ( *INTC_ISR ) ( INTC_InterruptInfo interruptInfo ) ;
|
|
typedef void ( *PMCNotifyEventFunc ) ( UINT64 eventRegs ) ;
|
|
typedef void ( *PMCGetStatusNotifyFunc ) ( UINT16 status ) ;
|
|
typedef void ( *PMCReadCallback ) ( UINT8 *dataBuffPtr , UINT16 dataSize , UINT16 userId ) ;
|
|
typedef void ( *PMCWriteCallback ) ( UINT16 dataBuffPtr ) ;
|
|
typedef void ( *PMCGetGPADCValueNotifyFunc ) ( PMC_adc_reg_t reg , UINT16 value ) ;
|
|
typedef void ( * ReadingCallback ) ( int ) ;
|
|
typedef void ( * LTETempReadingCallback ) ( unsigned short , unsigned short ) ;
|
|
typedef void ( * ReadingCallbackBoth ) ( BOOL , int , int ) ;
|
|
typedef union
|
|
{
|
|
UINT8 autoControl ;
|
|
UINT8 autoControl2 ;
|
|
UINT8 manControl ;
|
|
} adcModeCntrl_t ;
|
|
typedef union
|
|
{
|
|
UINT64 all ;
|
|
Registers_ts regs ;
|
|
} PMCEvents ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
SHD_POWER_DOWN ,
|
|
SHD_RESET ,
|
|
SHD_GHOST ,
|
|
SHD_SW_ERROR /* EEHandler triggered the reset */
|
|
} ShutDownType_te;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
RR_NORMAL_POWER_ON = 0x00 , // default , not combined with others
|
|
RR_WATCH_DOG_TIMEOUT = 0x01 ,
|
|
RR_SOFTWARE_GENERATED = 0x02 ,
|
|
RR_CHARGING_BATTERY = 0x04 ,
|
|
RR_LOW_BATTERY = 0x08 ,
|
|
RR_ALARM_POWER_ON = 0x10 ,
|
|
RR_EXT_POWER_ON = 0x20
|
|
}
|
|
StartupReason_te;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
RE_RTC_ALARM = 0x01
|
|
} StartupExtInd_te;
|
|
|
|
typedef BOOL ( *DiagPSisRunningFn ) ( void ) ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
PMU_POR = 1 ,
|
|
PMU_EMR ,
|
|
PMU_WDTR = ( PMU_EMR+2 )
|
|
} PMU_LastResetStatus;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_INT_IFC ,
|
|
DIAG_EXT_IFC
|
|
} DIAG_IF_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_DEV_USB ,
|
|
DIAG_DEV_SD ,
|
|
DIAG_DEV_FS ,
|
|
DIAG_DEV_UART ,
|
|
DIAG_DEV_SPI ,
|
|
DIAG_DEV_RAM ,
|
|
DIAG_DEV_NONE
|
|
} DIAG_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
SULOG_DEV_USB ,
|
|
SULOG_DEV_SD
|
|
} SULOG_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
EEH_DUMP_DEV_USB_SD ,
|
|
EEH_DUMP_DEV_SPI
|
|
} EEH_DUMP_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_START_PS_OFF ,
|
|
DIAG_START_PS_ON
|
|
} DIAG_START_PS_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_UART_SPEED_921600 , // for CP UART
|
|
DIAG_UART_SPEED_1842000 ,
|
|
DIAG_UART_SPEED_3000000 ,
|
|
DIAG_UART_DISABLE ,
|
|
DIAG_AP_UART_SPEED_921600 , // for AP UART
|
|
DIAG_AP_UART_SPEED_1842000 ,
|
|
DIAG_AP_UART_SPEED_3000000 ,
|
|
} DIAG_UART_SPEED_TYPE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
DIAG_IF_TYPE useIntIf ; /* use internal interface or external interface */
|
|
DIAG_UART_SPEED_TYPE useHighSpeedUART ; /* high speed UART ( 460800 ) or low speed UART ( 115200 ) */
|
|
// DIAG_MEM_SWITCH diagMemSwitch ;
|
|
BOOL GLFeatureFlag ;
|
|
DIAG_START_PS_TYPE diagStartPS ;
|
|
DIAG_DEV_TYPE diagDevType ;
|
|
SULOG_DEV_TYPE sulogDevType ;
|
|
EEH_DUMP_DEV_TYPE eehDumpDevType ;
|
|
// DIAG_MEM_SWITCH diagMemSwitch ;
|
|
BOOL usbUserMode ;
|
|
} diagCfgDataS;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
UINT32 dbID ;
|
|
UINT32 filterBitLength ;
|
|
UINT32 reserved [ 6 ] ;
|
|
} DIAG_Nvm_Filter_File_Header_t;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
LOG_DISABLE = 0x0 ,
|
|
UART_LOG_ENABLE = 0x1 ,
|
|
ACAT_LOG_ENABLE = 0x2
|
|
} Log_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
MSG_DISABLE = 0x0 ,
|
|
ACAT_MSG_ENABLE = 0x1
|
|
} Msg_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
RTI_LOG_DISABLE = 0x0 ,
|
|
RTI_DUMP_ENABLE = 0x1 ,
|
|
RTI_TASK_ENABLE = 0x2 ,
|
|
RTI_MIPS_ENABLE = 0x3
|
|
} RTI_ConfigE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Log_ConfigE log_cfg ;
|
|
Msg_ConfigE msg_cfg ;
|
|
RTI_ConfigE rti_cfg ;
|
|
} Log_ConfigS;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
YMODEM_DISABLE = 0x0 ,
|
|
YMODEM_ENABLE = 0x1
|
|
} Ymodem_Dump_config;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Ymodem_Dump_config config ;
|
|
} Ymodem_Dump_type;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* MIFI driver*/
|
|
USB_GENERIC_MIFI_DRIVER = 0x0 ,
|
|
USB_MARVELL_MIFI_DRIVER = 0x1 ,
|
|
USB_ASR_MIFI_DRIVER = 0x2 ,
|
|
USB_GENERIC_MOD_DRIVER = 0x10 ,
|
|
USB_GENERIC_MOD_ECM_DRIVER = 0x12 ,
|
|
|
|
USB_CDC_ACM_ONLY_DRIVER = 0x13 ,
|
|
|
|
USB_DIAG_UAC_DRIVER = 0x14 ,
|
|
|
|
USB_QUEC_CUST_DRIVER = 0x15 ,
|
|
|
|
|
|
/* MBIM driver*/
|
|
USB_MBIM_ONLY_DRIVER = 0x40 ,
|
|
USB_MBIM_GENERIC_DRIVER = 0x41 ,
|
|
USB_MBIM_MAX_DRIVER = 0x4F ,
|
|
|
|
/* Other driver*/
|
|
USB_CDROM_ONLY_DRIVER = 0x91 ,
|
|
USB_CDROM_DIAG_DRIVER = 0x92 ,
|
|
USB_DIAG_ONLY_DRIVER = 0x93 ,
|
|
USB_MODEM_ONLY_DRIVER = 0x94 ,
|
|
USB_MODEM_DIAG_DRIVER = 0x95 ,
|
|
|
|
USB_MAX_DRIVER = 0xFF
|
|
} Usb_driver_typeE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
MASS_STORAGE_DISABLE = 0x0 ,
|
|
MASS_STORAGE_ENABLE = 0x1
|
|
} MassStorage_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
USB_AUTO_INSTALL_DISABLE = 0x0 ,
|
|
USB_AUTO_INSTALL_ENABLE = 0x1
|
|
} Usb_auto_install_type;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
USB_OS_DETECT_DISABLE = 0x0 ,
|
|
USB_OS_DETECT_ENABLE = 0x1
|
|
} Usb_OS_detect_type;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Usb_driver_typeE usb_driver ;
|
|
MassStorage_ConfigE mass_storage ;
|
|
Usb_auto_install_type auto_install ;
|
|
Usb_OS_detect_type os_detect ;
|
|
} Usb_DriverS;
|
|
|
|
typedef UINT8 UART_Activity ;
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct /* This is structure of the UART Configuration */
|
|
{
|
|
UART_OpMode opMode ; /* fifo mode , non fifo mode or DMA for basic interface*/
|
|
UART_TriggerLevel triggerLevel ; /* the trigger level interrupt on 1 , 8 , 16 , 32 */
|
|
UART_BaudRates baudRate ; /* the rate of the transmit and the receive up to 111520 ( default - 9600 ) .*/
|
|
UART_WordLen numDataBits ; /* 5 , 6 , 7 , or 8 number of data bits in the UART data frame ( default - 8 ) . */
|
|
UART_StopBits stopBits ; /* 1 , 1.500000 or 2 stop bits in the UART data frame ( default - 1 ) . */
|
|
UART_ParityTBits parityBitType ; /* Even , Odd or no-parity bit type in the UART data frame ( default - Non ) . */
|
|
UART_InterfaceType interfaceType ; /* number of interface that the UART driver supplies ( default - UART_IF_TYPE_L2 ) */
|
|
BOOL modemSignal ; /* enable operate modem - TRUE , disable modem - FALSE */
|
|
BOOL flowControl ; /* enable Auto flow Control - TRUE , disable Auto flow Control - FALSE */
|
|
UINT8 sleepMode ; /* enable sleep mode - TRUE , more fine control - see UARTSleepMode enum */
|
|
BOOL auto_baud ; /* enable auto_baud , auto-baud-rate detection within the UART ( default - FALSE ) */
|
|
UART_SIRConfigure sirIrDA ;
|
|
} UARTConfiguration;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum // change the order -1 to +
|
|
{
|
|
UART_RC_OK = 1 , /* 1 - no errors */
|
|
|
|
UART_RC_PORT_NUM_ERROR = -100 , /* -100 - Error in the UART port number */
|
|
UART_RC_NO_DATA_TO_READ , /* -99 - Eror no data to read from the FIFO UART */
|
|
UART_RC_ILLEGAL_BAUD_RATE , /* -98 - Error in the UART Bayd Rate */
|
|
UART_RC_UART_PARITY_BITS_ERROR , /* -97 - Error in parity bit */
|
|
UART_RC_UART_ONE_STOP_BIT_ERROR , /* -96 - Error in one stop bit */
|
|
UART_RC_ONE_HALF_OR_TWO_STOP_BIT_ERROR , /* -95 - Error in two stop bit */
|
|
UART_RC_BAD_INTERFACE_TYPE , /* -94 - Error in the Interface Type */
|
|
UART_RC_UART_NOT_AVAILABLE , /* -93 - Error in try to open UART that is open */
|
|
UART_RC_NO_DATA_TO_WRITE , /* -92 - Error No data to writ the len = 0 */
|
|
UART_RC_NOT_ALL_BYTE_WRITTEN , /* -91 - Error Not all the Byte write to the UART FIFO */
|
|
UART_RC_ISR_ALREADY_BIND , /* -90 - Error try to bind ISR for Basic Interface */
|
|
UART_RC_WRONG_ISR_UNBIND , /* -89 - Error in the UnBind ISR for Basic Interface */
|
|
UART_RC_FIFO_NOT_EMPTY , /* -88 - Error , the UART FIFO not empty */
|
|
UART_RC_UART_OPEN , /* -87 - Error try chance the configurr when the UART open */
|
|
UART_RC_GPIO_ERR , /* -86 - Error in the Configure of the GPIO */
|
|
UART_RC_IRDA_CONFIG_ERR , /* -85 - Illegal IrDA configuration */
|
|
UART_RC_TX_DMA_ERR /* -84 - DMA TX Error */
|
|
} UART_ReturnCode;
|
|
|
|
typedef void ( *UARTNotifyInterrupt ) ( UART_Port ) ;
|
|
typedef void ( *UsbLogPrint_t ) ( const char * , ... ) ;
|
|
typedef UINT32 rti_uint32_t ;
|
|
typedef UINT64 rti_uint64_t ;
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
UINT32 product_id ;
|
|
UINT8 data [ 20 ] ;
|
|
} InfoForBoardTracking_t;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
RTI_DISABLE=0 ,
|
|
RTI_EN_VER1=1 ,
|
|
RTI_EN_VER2=2
|
|
} RTI_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
RTI_QUE_DISABLE=0 ,
|
|
RTI_QUE_ENABLE=1
|
|
} RTI_QUE_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
RTI_EVT_DISABLE=0 ,
|
|
RTI_EVT_ENABLE=1
|
|
} RTI_EVT_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
TIME_OUT_3MS=0x62 ,
|
|
TIME_OUT_4MS=0x83 ,
|
|
TIME_OUT_5MS=0xA4 ,
|
|
TIME_OUT_6MS=0xC4 ,
|
|
TIME_OUT_MAX=0xFF
|
|
} Timeout_Threshold;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
RTI_TYPE rtiType ;
|
|
RTI_QUE_TYPE rtiQueType ;
|
|
RTI_EVT_TYPE rtiEvtType ;
|
|
|
|
int rtiChange ;
|
|
int rtiHT ;
|
|
int rtiLT ;
|
|
|
|
int modeChange ;
|
|
int modeHT ;
|
|
int modeLT ;
|
|
|
|
Timeout_Threshold Timeout ;
|
|
} RTICfg_t;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
UART_DEV_UART ,
|
|
UART_DEV_DIAG ,
|
|
} UART_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
UINT32 offset ;
|
|
UINT32 size ;
|
|
} activateCode_info_t;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
UART_DEV_TYPE uartDevType ;
|
|
BOOL actiCodeFlag ;
|
|
activateCode_info_t activateCode [ 4 ] ; // for Ali activation code , [ 0 ] :flag , [ 1 ] :offset , [ 2 ] :size
|
|
BOOL astRandomFlag ;
|
|
UINT8 multiVol ; // for log_parition
|
|
UINT8 reserved1_1 ;
|
|
UINT8 reserved1_2 ;
|
|
UINT8 reserved1_3 ;
|
|
UINT32 reserved2 ;
|
|
UINT32 reserved3 ;
|
|
|
|
} uartCfgDataS;
|
|
|
|
DIAG_FILTER ( OSA , OsaMem , NO_DTCM , DIAG_WARNING)
|
|
diagPrintf ( " No available memory in DTCM , using the Default Pool " );
|
|
|
|
//PPC Version : V2.1.9.30
|
|
//PPL Source File Name : \tavor\Arbel\obj_PMD2NONE_1602\prepass_results\osa_mem.ppp
|
|
//PPL Source File Name : \\os\\osa\\src\\osa_mem.c
|
|
typedef unsigned int size_t ;
|
|
typedef signed int ptrdiff_t ;
|
|
typedef unsigned int size_t ;
|
|
typedef unsigned short wchar_t ;
|
|
typedef unsigned int size_t ;
|
|
typedef char CHAR ;
|
|
typedef unsigned char UCHAR ;
|
|
typedef int INT ;
|
|
typedef unsigned int UINT ;
|
|
typedef long LONG ;
|
|
typedef unsigned long ULONG ;
|
|
typedef short SHORT ;
|
|
typedef unsigned short USHORT ;
|
|
typedef unsigned char BOOL ;
|
|
typedef unsigned char UINT8 ;
|
|
typedef unsigned short UINT16 ;
|
|
typedef unsigned long UINT32 ;
|
|
typedef char CHAR ;
|
|
typedef signed char INT8 ;
|
|
typedef signed short INT16 ;
|
|
typedef signed long INT32 ;
|
|
typedef unsigned char Bool ;
|
|
typedef UINT8 BYTE ;
|
|
typedef UINT8 UBYTE ;
|
|
typedef UINT16 UWORD ;
|
|
typedef UINT16 WORD ;
|
|
typedef INT16 SWORD ;
|
|
typedef UINT32 DWORD ;
|
|
typedef unsigned long long UINT64 ;
|
|
typedef void* VOID_PTR ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
OSA_TASK_READY ,
|
|
OSA_TASK_COMPLETED ,
|
|
OSA_TASK_TERMINATED ,
|
|
OSA_TASK_SUSPENDED ,
|
|
OSA_TASK_SLEEP ,
|
|
OSA_TASK_QUEUE_SUSP ,
|
|
OSA_TASK_SEMAPHORE_SUSP ,
|
|
OSA_TASK_EVENT_FLAG ,
|
|
OSA_TASK_BLOCK_MEMORY ,
|
|
OSA_TASK_MUTEX_SUSP ,
|
|
OSA_TASK_STATE_UNKNOWN ,
|
|
} OSA_TASK_STATE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct OSA_TASK_STRUCT
|
|
{
|
|
char *task_name ; /* Pointer to thread ' s name */
|
|
unsigned int task_priority ; /* Priority of thread ( 0 -255 ) */
|
|
unsigned long task_stack_def_val ; /* default vaule of thread */
|
|
OSA_TASK_STATE task_state ; /* Thread ' s execution state */
|
|
unsigned long task_stack_ptr ; /* Thread ' s stack pointer */
|
|
unsigned long task_stack_start ; /* Stack starting address */
|
|
unsigned long task_stack_end ; /* Stack ending address */
|
|
unsigned long task_stack_size ; /* Stack size */
|
|
unsigned long task_run_count ; /* Thread ' s run counter */
|
|
|
|
} OSA_TASK;
|
|
|
|
typedef void *OsaRefT ;
|
|
typedef UINT8 OSA_STATUS ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef void* OS_HISR ;
|
|
typedef void* OSATaskRef ;
|
|
typedef void* OSAHISRRef ;
|
|
typedef void* OSASemaRef ;
|
|
typedef void* OSAMutexRef ;
|
|
typedef void* OSAMsgQRef ;
|
|
typedef void* OSAMailboxQRef ;
|
|
typedef void* OSAPoolRef ;
|
|
typedef void* OSATimerRef ;
|
|
typedef void* OSAFlagRef ;
|
|
typedef void* OSAPartitionPoolRef ;
|
|
typedef void* OSTaskRef ;
|
|
typedef void* OSSemaRef ;
|
|
typedef void* OSMutexRef ;
|
|
typedef void* OSMsgQRef ;
|
|
typedef void* OSMailboxQRef ;
|
|
typedef void* OSPoolRef ;
|
|
typedef void* OSTimerRef ;
|
|
typedef void* OSFlagRef ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef OsaTimerStatusParamsT OSATimerStatus ;
|
|
typedef void* OSATaskRef ;
|
|
typedef void* OSAHISRRef ;
|
|
typedef void* OSAMsgQRef ;
|
|
typedef void* OSAMailboxQRef ;
|
|
typedef void* OSAPartitionPoolRef ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef unsigned long UNSIGNED ;
|
|
typedef long SIGNED ;
|
|
typedef unsigned char DATA_ELEMENT ;
|
|
typedef DATA_ELEMENT OPTION ;
|
|
typedef DATA_ELEMENT BOOLEAN ;
|
|
typedef int STATUS ;
|
|
typedef unsigned char UNSIGNED_CHAR ;
|
|
typedef unsigned int UNSIGNED_INT ;
|
|
typedef int INT ;
|
|
typedef unsigned long * UNSIGNED_PTR ;
|
|
typedef unsigned char * BYTE_PTR ;
|
|
typedef volatile UINT8 *V_UINT8_PTR ;
|
|
typedef volatile UINT16 *V_UINT16_PTR ;
|
|
typedef volatile UINT32 *V_UINT32_PTR ;
|
|
typedef unsigned int U32Bits ;
|
|
typedef BOOL BOOLEAN ;
|
|
typedef const char * SwVersion ;
|
|
typedef unsigned int size_t ;
|
|
typedef unsigned short wchar_t ;
|
|
typedef int ( *__heapprt ) ( void * , char const * , ... ) ;
|
|
typedef va_list __gnuc_va_list ;
|
|
typedef void ( *CommandAddress ) ( void ) ;
|
|
typedef char* CommandProto ;
|
|
typedef const char * DiagDBVersion ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
PROTOCOL_TYPE_0 = 0 ,
|
|
MAX_PROTOCOL_TYPES
|
|
} ProtocolType;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
BOOL bEnabled ; // enable / disable the trace logging feature
|
|
ProtocolType eProtocolType ; // protocol type for communication with ICAT , currently only protocol type 0 is supported
|
|
UINT16 nMaxDataPerTrace ; // for each trace , what is the maximum data length to accompany the trace , in protocol type 0 , this is relevant only to DSP messages
|
|
} DiagLoggerDefs;
|
|
|
|
typedef void ( *TIMER_CALLBACK_FUNCTION ) ( UINT8 ) ;
|
|
typedef void ( *ACC_TIMER_CALLBACK ) ( UINT32 ) ;
|
|
typedef int TIMER_STATUS ;
|
|
typedef int TIMER_ID ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
PM_RC_OK = 0 ,
|
|
PM_RC_FAIL , // General Failure
|
|
PM_RC_ALREADY_EXISTS // Exit function since required target alrteady exists
|
|
} PM_ReturnCodeE;
|
|
|
|
typedef void ( *PM_CallbackFuncDDRstateT ) ( BOOL b_DDR_ready ) ;
|
|
typedef unsigned long long UINT64 ;
|
|
typedef unsigned long TimeIn32KhzUnit ;
|
|
typedef void ( *TickCallbackPtr ) ( UINT32 ) ;
|
|
typedef TimeIn32KhzUnit ( *SuspendCallbackPtr ) ( void ) ;
|
|
typedef void ( *PrepareTimeCallbackPtr ) ( void ) ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_PIN_NOT_ASSIGNED = -1 ,
|
|
|
|
GPIO_PIN_0=0 , GPIO_PIN_1 , GPIO_PIN_2 , GPIO_PIN_3 , GPIO_PIN_4 , GPIO_PIN_5 , GPIO_PIN_6 , GPIO_PIN_7 ,
|
|
GPIO_PIN_8 , GPIO_PIN_9 , GPIO_PIN_10 , GPIO_PIN_11 , GPIO_PIN_12 , GPIO_PIN_13 , GPIO_PIN_14 , GPIO_PIN_15 ,
|
|
GPIO_PIN_16 , GPIO_PIN_17 , GPIO_PIN_18 , GPIO_PIN_19 , GPIO_PIN_20 , GPIO_PIN_21 , GPIO_PIN_22 , GPIO_PIN_23 ,
|
|
GPIO_PIN_24 , GPIO_PIN_25 , GPIO_PIN_26 , GPIO_PIN_27 , GPIO_PIN_28 , GPIO_PIN_29 , GPIO_PIN_30 , GPIO_PIN_31 ,
|
|
GPIO_PIN_32 , GPIO_PIN_33 , GPIO_PIN_34 , GPIO_PIN_35 , GPIO_PIN_36 , GPIO_PIN_37 , GPIO_PIN_38 , GPIO_PIN_39 ,
|
|
|
|
GPIO_PIN_40 , GPIO_PIN_41 , GPIO_PIN_42 , GPIO_PIN_43 , GPIO_PIN_44 , GPIO_PIN_45 , GPIO_PIN_46 , GPIO_PIN_47 ,
|
|
GPIO_PIN_48 , GPIO_PIN_49 , GPIO_PIN_50 , GPIO_PIN_51 , GPIO_PIN_52 , GPIO_PIN_53 , GPIO_PIN_54 , GPIO_PIN_55 ,
|
|
GPIO_PIN_56 , GPIO_PIN_57 , GPIO_PIN_58 , GPIO_PIN_59 , GPIO_PIN_60 , GPIO_PIN_61 , GPIO_PIN_62 , GPIO_PIN_63 ,
|
|
// #endif // _TAVOR_HARBELL_
|
|
|
|
// #if defined ( GPIO_128_ENTRIES )
|
|
GPIO_PIN_64 , GPIO_PIN_65 , GPIO_PIN_66 , GPIO_PIN_67 , GPIO_PIN_68 , GPIO_PIN_69 , GPIO_PIN_70 , GPIO_PIN_71 ,
|
|
GPIO_PIN_72 , GPIO_PIN_73 , GPIO_PIN_74 , GPIO_PIN_75 , GPIO_PIN_76 , GPIO_PIN_77 , GPIO_PIN_78 , GPIO_PIN_79 ,
|
|
GPIO_PIN_80 , GPIO_PIN_81 , GPIO_PIN_82 , GPIO_PIN_83 , GPIO_PIN_84 , GPIO_PIN_85 , GPIO_PIN_86 , GPIO_PIN_87 ,
|
|
GPIO_PIN_88 , GPIO_PIN_89 , GPIO_PIN_90 , GPIO_PIN_91 , GPIO_PIN_92 , GPIO_PIN_93 , GPIO_PIN_94 , GPIO_PIN_95 ,
|
|
GPIO_PIN_96 , GPIO_PIN_97 , GPIO_PIN_98 , GPIO_PIN_99 , GPIO_PIN_100 , GPIO_PIN_101 , GPIO_PIN_102 , GPIO_PIN_103 ,
|
|
GPIO_PIN_104 , GPIO_PIN_105 , GPIO_PIN_106 , GPIO_PIN_107 , GPIO_PIN_108 , GPIO_PIN_109 , GPIO_PIN_110 , GPIO_PIN_111 ,
|
|
GPIO_PIN_112 , GPIO_PIN_113 , GPIO_PIN_114 , GPIO_PIN_115 , GPIO_PIN_116 , GPIO_PIN_117 , GPIO_PIN_118 , GPIO_PIN_119 ,
|
|
GPIO_PIN_120 , GPIO_PIN_121 , GPIO_PIN_122 , GPIO_PIN_123 , GPIO_PIN_124 , GPIO_PIN_125 , GPIO_PIN_126 , GPIO_PIN_127 ,
|
|
|
|
GPIO_MAX_AMOUNT_OF_PINS
|
|
} GPIO_PinNumbers;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_RC_OK = 1 ,
|
|
|
|
GPIO_RC_INVALID_PORT_HANDLE = -100 ,
|
|
GPIO_RC_NOT_OUTPUT_PORT ,
|
|
GPIO_RC_NO_TIMER ,
|
|
GPIO_RC_NO_FREE_HANDLE ,
|
|
GPIO_RC_AMOUNT_OUT_OF_RANGE ,
|
|
GPIO_RC_INCORRECT_PORT_SIZE ,
|
|
GPIO_RC_PORT_NOT_ON_ONE_REG ,
|
|
GPIO_RC_INVALID_PIN_NUM ,
|
|
GPIO_RC_PIN_USED_IN_PORT ,
|
|
GPIO_RC_PIN_NOT_FREE ,
|
|
GPIO_RC_PIN_NOT_LOCKED ,
|
|
GPIO_RC_NULL_POINTER ,
|
|
GPIO_RC_PULLED_AND_OUTPUT ,
|
|
GPIO_RC_INCORRECT_PORT_TYPE ,
|
|
GPIO_RC_INCORRECT_TRANSITION_TYPE ,
|
|
GPIO_RC_INCORRECT_DEBOUNCE ,
|
|
GPIO_RC_INCORRECT_DIRECTION ,
|
|
GPIO_RC_INCORRECT_INIT_VALUE
|
|
|
|
, GPIO_RC_INTC_ERROR ,
|
|
GPIO_RC_PRM_ERROR
|
|
|
|
} GPIO_ReturnCode;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_INPUT_PIN = 1 ,
|
|
GPIO_OUTPUT_PIN
|
|
} GPIO_PinDirection;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_PIN_FREE_FOR_USE = 0 ,
|
|
GPIO_PIN_USE_IN_PORT ,
|
|
GPIO_PIN_USE_IN_INTERRUPT ,
|
|
GPIO_PIN_USE_IN_PORT_WITH_INTERRUPT ,
|
|
GPIO_PIN_LOCKED
|
|
} GPIO_PinUsage;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
GPIO_PinUsage pinUsage ;
|
|
GPIO_PinDirection direction ;
|
|
} GPIO_PinStatus;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_INITIAL_VALUE_NO_CHANGE = 0 ,
|
|
GPIO_INITIAL_VALUE_LOW ,
|
|
GPIO_INITIAL_VALUE_HIGH
|
|
} GPIO_BitInitialValue;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_PULL_UP_DOWN_DISABLE = 0 ,
|
|
GPIO_PULL_UP_ENABLE ,
|
|
GPIO_PULL_DOWN_ENABLE
|
|
} GPIO_PullUpDown;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
GPIO_PinNumbers pinNumber ;
|
|
GPIO_PinDirection direction ;
|
|
GPIO_TransitionType transitionType ;
|
|
GPIO_Debounce debounce ;
|
|
GPIO_PullUpDown pullUpDown ;
|
|
GPIO_BitInitialValue initialValue ;
|
|
} GPIO_PinConfiguration;
|
|
|
|
typedef UINT8 GPIO_PortHandle ;
|
|
typedef void ( *GPIO_ISR ) ( void ) ;
|
|
typedef UINT32 INTC_InterruptPriorityTable [ MAX_INTERRUPT_CONTROLLER_SOURCES ] ;
|
|
typedef UINT32 INTC_InterruptInfo ;
|
|
typedef void ( *INTC_ISR ) ( INTC_InterruptInfo interruptInfo ) ;
|
|
typedef void ( *PMCNotifyEventFunc ) ( UINT64 eventRegs ) ;
|
|
typedef void ( *PMCGetStatusNotifyFunc ) ( UINT16 status ) ;
|
|
typedef void ( *PMCReadCallback ) ( UINT8 *dataBuffPtr , UINT16 dataSize , UINT16 userId ) ;
|
|
typedef void ( *PMCWriteCallback ) ( UINT16 dataBuffPtr ) ;
|
|
typedef void ( *PMCGetGPADCValueNotifyFunc ) ( PMC_adc_reg_t reg , UINT16 value ) ;
|
|
typedef void ( * ReadingCallback ) ( int ) ;
|
|
typedef void ( * LTETempReadingCallback ) ( unsigned short , unsigned short ) ;
|
|
typedef void ( * ReadingCallbackBoth ) ( BOOL , int , int ) ;
|
|
typedef union
|
|
{
|
|
UINT8 autoControl ;
|
|
UINT8 autoControl2 ;
|
|
UINT8 manControl ;
|
|
} adcModeCntrl_t ;
|
|
typedef union
|
|
{
|
|
UINT64 all ;
|
|
Registers_ts regs ;
|
|
} PMCEvents ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
SHD_POWER_DOWN ,
|
|
SHD_RESET ,
|
|
SHD_GHOST ,
|
|
SHD_SW_ERROR /* EEHandler triggered the reset */
|
|
} ShutDownType_te;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
RR_NORMAL_POWER_ON = 0x00 , // default , not combined with others
|
|
RR_WATCH_DOG_TIMEOUT = 0x01 ,
|
|
RR_SOFTWARE_GENERATED = 0x02 ,
|
|
RR_CHARGING_BATTERY = 0x04 ,
|
|
RR_LOW_BATTERY = 0x08 ,
|
|
RR_ALARM_POWER_ON = 0x10 ,
|
|
RR_EXT_POWER_ON = 0x20
|
|
}
|
|
StartupReason_te;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
RE_RTC_ALARM = 0x01
|
|
} StartupExtInd_te;
|
|
|
|
typedef BOOL ( *DiagPSisRunningFn ) ( void ) ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
PMU_POR = 1 ,
|
|
PMU_EMR ,
|
|
PMU_WDTR = ( PMU_EMR+2 )
|
|
} PMU_LastResetStatus;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_INT_IFC ,
|
|
DIAG_EXT_IFC
|
|
} DIAG_IF_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_DEV_USB ,
|
|
DIAG_DEV_SD ,
|
|
DIAG_DEV_FS ,
|
|
DIAG_DEV_UART ,
|
|
DIAG_DEV_SPI ,
|
|
DIAG_DEV_RAM ,
|
|
DIAG_DEV_NONE
|
|
} DIAG_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
SULOG_DEV_USB ,
|
|
SULOG_DEV_SD
|
|
} SULOG_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
EEH_DUMP_DEV_USB_SD ,
|
|
EEH_DUMP_DEV_SPI
|
|
} EEH_DUMP_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_START_PS_OFF ,
|
|
DIAG_START_PS_ON
|
|
} DIAG_START_PS_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_UART_SPEED_921600 , // for CP UART
|
|
DIAG_UART_SPEED_1842000 ,
|
|
DIAG_UART_SPEED_3000000 ,
|
|
DIAG_UART_DISABLE ,
|
|
DIAG_AP_UART_SPEED_921600 , // for AP UART
|
|
DIAG_AP_UART_SPEED_1842000 ,
|
|
DIAG_AP_UART_SPEED_3000000 ,
|
|
} DIAG_UART_SPEED_TYPE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
DIAG_IF_TYPE useIntIf ; /* use internal interface or external interface */
|
|
DIAG_UART_SPEED_TYPE useHighSpeedUART ; /* high speed UART ( 460800 ) or low speed UART ( 115200 ) */
|
|
// DIAG_MEM_SWITCH diagMemSwitch ;
|
|
BOOL GLFeatureFlag ;
|
|
DIAG_START_PS_TYPE diagStartPS ;
|
|
DIAG_DEV_TYPE diagDevType ;
|
|
SULOG_DEV_TYPE sulogDevType ;
|
|
EEH_DUMP_DEV_TYPE eehDumpDevType ;
|
|
// DIAG_MEM_SWITCH diagMemSwitch ;
|
|
BOOL usbUserMode ;
|
|
} diagCfgDataS;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
UINT32 dbID ;
|
|
UINT32 filterBitLength ;
|
|
UINT32 reserved [ 6 ] ;
|
|
} DIAG_Nvm_Filter_File_Header_t;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
LOG_DISABLE = 0x0 ,
|
|
UART_LOG_ENABLE = 0x1 ,
|
|
ACAT_LOG_ENABLE = 0x2
|
|
} Log_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
MSG_DISABLE = 0x0 ,
|
|
ACAT_MSG_ENABLE = 0x1
|
|
} Msg_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
RTI_LOG_DISABLE = 0x0 ,
|
|
RTI_DUMP_ENABLE = 0x1 ,
|
|
RTI_TASK_ENABLE = 0x2 ,
|
|
RTI_MIPS_ENABLE = 0x3
|
|
} RTI_ConfigE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Log_ConfigE log_cfg ;
|
|
Msg_ConfigE msg_cfg ;
|
|
RTI_ConfigE rti_cfg ;
|
|
} Log_ConfigS;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
YMODEM_DISABLE = 0x0 ,
|
|
YMODEM_ENABLE = 0x1
|
|
} Ymodem_Dump_config;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Ymodem_Dump_config config ;
|
|
} Ymodem_Dump_type;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* MIFI driver*/
|
|
USB_GENERIC_MIFI_DRIVER = 0x0 ,
|
|
USB_MARVELL_MIFI_DRIVER = 0x1 ,
|
|
USB_ASR_MIFI_DRIVER = 0x2 ,
|
|
USB_GENERIC_MOD_DRIVER = 0x10 ,
|
|
USB_GENERIC_MOD_ECM_DRIVER = 0x12 ,
|
|
|
|
USB_CDC_ACM_ONLY_DRIVER = 0x13 ,
|
|
|
|
USB_DIAG_UAC_DRIVER = 0x14 ,
|
|
|
|
USB_QUEC_CUST_DRIVER = 0x15 ,
|
|
|
|
|
|
/* MBIM driver*/
|
|
USB_MBIM_ONLY_DRIVER = 0x40 ,
|
|
USB_MBIM_GENERIC_DRIVER = 0x41 ,
|
|
USB_MBIM_MAX_DRIVER = 0x4F ,
|
|
|
|
/* Other driver*/
|
|
USB_CDROM_ONLY_DRIVER = 0x91 ,
|
|
USB_CDROM_DIAG_DRIVER = 0x92 ,
|
|
USB_DIAG_ONLY_DRIVER = 0x93 ,
|
|
USB_MODEM_ONLY_DRIVER = 0x94 ,
|
|
USB_MODEM_DIAG_DRIVER = 0x95 ,
|
|
|
|
USB_MAX_DRIVER = 0xFF
|
|
} Usb_driver_typeE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
MASS_STORAGE_DISABLE = 0x0 ,
|
|
MASS_STORAGE_ENABLE = 0x1
|
|
} MassStorage_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
USB_AUTO_INSTALL_DISABLE = 0x0 ,
|
|
USB_AUTO_INSTALL_ENABLE = 0x1
|
|
} Usb_auto_install_type;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
USB_OS_DETECT_DISABLE = 0x0 ,
|
|
USB_OS_DETECT_ENABLE = 0x1
|
|
} Usb_OS_detect_type;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Usb_driver_typeE usb_driver ;
|
|
MassStorage_ConfigE mass_storage ;
|
|
Usb_auto_install_type auto_install ;
|
|
Usb_OS_detect_type os_detect ;
|
|
} Usb_DriverS;
|
|
|
|
typedef UINT8 UART_Activity ;
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct /* This is structure of the UART Configuration */
|
|
{
|
|
UART_OpMode opMode ; /* fifo mode , non fifo mode or DMA for basic interface*/
|
|
UART_TriggerLevel triggerLevel ; /* the trigger level interrupt on 1 , 8 , 16 , 32 */
|
|
UART_BaudRates baudRate ; /* the rate of the transmit and the receive up to 111520 ( default - 9600 ) .*/
|
|
UART_WordLen numDataBits ; /* 5 , 6 , 7 , or 8 number of data bits in the UART data frame ( default - 8 ) . */
|
|
UART_StopBits stopBits ; /* 1 , 1.500000 or 2 stop bits in the UART data frame ( default - 1 ) . */
|
|
UART_ParityTBits parityBitType ; /* Even , Odd or no-parity bit type in the UART data frame ( default - Non ) . */
|
|
UART_InterfaceType interfaceType ; /* number of interface that the UART driver supplies ( default - UART_IF_TYPE_L2 ) */
|
|
BOOL modemSignal ; /* enable operate modem - TRUE , disable modem - FALSE */
|
|
BOOL flowControl ; /* enable Auto flow Control - TRUE , disable Auto flow Control - FALSE */
|
|
UINT8 sleepMode ; /* enable sleep mode - TRUE , more fine control - see UARTSleepMode enum */
|
|
BOOL auto_baud ; /* enable auto_baud , auto-baud-rate detection within the UART ( default - FALSE ) */
|
|
UART_SIRConfigure sirIrDA ;
|
|
} UARTConfiguration;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum // change the order -1 to +
|
|
{
|
|
UART_RC_OK = 1 , /* 1 - no errors */
|
|
|
|
UART_RC_PORT_NUM_ERROR = -100 , /* -100 - Error in the UART port number */
|
|
UART_RC_NO_DATA_TO_READ , /* -99 - Eror no data to read from the FIFO UART */
|
|
UART_RC_ILLEGAL_BAUD_RATE , /* -98 - Error in the UART Bayd Rate */
|
|
UART_RC_UART_PARITY_BITS_ERROR , /* -97 - Error in parity bit */
|
|
UART_RC_UART_ONE_STOP_BIT_ERROR , /* -96 - Error in one stop bit */
|
|
UART_RC_ONE_HALF_OR_TWO_STOP_BIT_ERROR , /* -95 - Error in two stop bit */
|
|
UART_RC_BAD_INTERFACE_TYPE , /* -94 - Error in the Interface Type */
|
|
UART_RC_UART_NOT_AVAILABLE , /* -93 - Error in try to open UART that is open */
|
|
UART_RC_NO_DATA_TO_WRITE , /* -92 - Error No data to writ the len = 0 */
|
|
UART_RC_NOT_ALL_BYTE_WRITTEN , /* -91 - Error Not all the Byte write to the UART FIFO */
|
|
UART_RC_ISR_ALREADY_BIND , /* -90 - Error try to bind ISR for Basic Interface */
|
|
UART_RC_WRONG_ISR_UNBIND , /* -89 - Error in the UnBind ISR for Basic Interface */
|
|
UART_RC_FIFO_NOT_EMPTY , /* -88 - Error , the UART FIFO not empty */
|
|
UART_RC_UART_OPEN , /* -87 - Error try chance the configurr when the UART open */
|
|
UART_RC_GPIO_ERR , /* -86 - Error in the Configure of the GPIO */
|
|
UART_RC_IRDA_CONFIG_ERR , /* -85 - Illegal IrDA configuration */
|
|
UART_RC_TX_DMA_ERR /* -84 - DMA TX Error */
|
|
} UART_ReturnCode;
|
|
|
|
typedef void ( *UARTNotifyInterrupt ) ( UART_Port ) ;
|
|
typedef void ( *UsbLogPrint_t ) ( const char * , ... ) ;
|
|
DIAG_FILTER ( OSA , OsaMem , ZeroSize , DIAG_INFORMATION)
|
|
diagPrintf ( " OsaMemAlloc: force size 0 to be %ld bytes " , Size );
|
|
|
|
DIAG_FILTER ( OSA , OsaMem , HitWaterMark , DIAG_INFORMATION)
|
|
diagPrintf ( " Pool <%s> free bytes increased from %ld KBytes to %ld KBytes due to the LowWaterMarkCbFunc " ,
|
|
pPoolHeader->poolName , ( ( ( ( NumberOfFreeBytes ) >> 9 ) + 1 ) >> 1 ) , ( ( ( ( pPoolHeader->poolSize - pPoolHeader->BytesInUse ) >> 9 ) + 1 ) >> 1 ) );
|
|
|
|
DIAG_FILTER ( OSA , MemCheck , Address , DIAG_ERROR)
|
|
diagPrintf ( " Address 0x%lx is not aligned " , FirstAddress );
|
|
|
|
DIAG_FILTER ( OSA , MemCheck , HeadGuard , DIAG_ERROR)
|
|
diagPrintf ( " Illegal header guard 0x%lx , Address 0x%lx " , pBufHdr->Guard , FirstAddress );
|
|
|
|
DIAG_FILTER ( OSA , MemCheck , PoolCheck , DIAG_ERROR)
|
|
diagPrintf ( " PoolCheck: Illegal AllocCount %ld or ReqSize %ld , Address 0x%lx " , pBufHdr->AllocCount , pBufHdr->ReqSize , FirstAddress );
|
|
|
|
DIAG_FILTER ( OSA , MemCheck , BufHdr , DIAG_ERROR)
|
|
diagPrintf ( " Illegal AllocCount %ld or ReqSize %ld , Address 0x%lx " , pBufHdr->AllocCount , pBufHdr->ReqSize , FirstAddress );
|
|
|
|
DIAG_FILTER ( OSA , MemCheck , PoolID , DIAG_ERROR)
|
|
diagPrintf ( " Illegal PoolID 0x%lx , Address 0x%lx " , ( ( OsaMem_PoolHeader * ) ( pBufHdr->poolRef ) ) ->PoolID , FirstAddress );
|
|
|
|
DIAG_FILTER ( OSA , MemCheck , PoolRef , DIAG_ERROR)
|
|
diagPrintf ( " Illegal poolRef 0x%lx , Address 0x%lx " , pPool , FirstAddress );
|
|
|
|
DIAG_FILTER ( OSA , MemCheck , MemBlk , DIAG_ERROR)
|
|
diagPrintf ( " Illegal pMemBlk 0x%lx , Address 0x%lx " , pMemBlk , FirstAddress );
|
|
|
|
DIAG_FILTER ( OSA , MemCheck , PrevBuf , DIAG_ERROR)
|
|
diagPrintf ( " Illegal pBufHdr 0x%lx or pPrevBuf 0x%lx , Address 0x%lx " , pBufHdr , ( ( OsaMem_BufHdr * ) LastAddress ) ->pPrevBuf , FirstAddress );
|
|
|
|
//ICAT EXPORTED FUNCTION - OSAstats , OsaMem , getOsaMemPoolsUsage
|
|
UINT32 getOsaMemPoolsUsage ( OSPoolRef poolRef , BOOL logEnale )
|
|
{
|
|
OsaMem_PoolHeader
|
|
*pPool ;
|
|
|
|
|
|
pPool = ( OsaMem_PoolHeader * ) ( poolRef ) ;
|
|
|
|
if ( ! pPool || pPool->PoolID != 0x48287997 )
|
|
{
|
|
return 0 ;
|
|
}
|
|
|
|
if ( logEnale == 1 )
|
|
{
|
|
DIAG_FILTER ( OSA , OsaMem , PoolName , DIAG_INFORMATION)
|
|
diagPrintf ( " Pool <%s> @ 0x%lX " , pPool->poolName , ( UINT32 ) pPool );
|
|
|
|
|
|
|
|
DIAG_FILTER ( OSA , OsaMem , KBytes , DIAG_INFORMATION)
|
|
diagPrintf ( " Size=0x%lx , InUsed-Peak=0x%lx , InUse=0x%lx , Allocated-Peak=0x%lx , Allocatd=0x%lx " ,
|
|
pPool->poolSize , pPool->MaxBytesInUse , pPool->BytesInUse , pPool->MaxBytesAllocated , pPool->BytesAllocated );
|
|
|
|
|
|
}
|
|
return pPool->BytesInUse ;
|
|
|
|
}
|
|
|
|
//ICAT EXPORTED FUNCTION - OSAstats , OsaMem , CheckPool
|
|
void OsaMemCheckPool ( void *p , UINT32 len )
|
|
{
|
|
OsaMem_PoolHeader
|
|
*pPool ;
|
|
|
|
OsaRefT
|
|
Handle ;
|
|
|
|
UINT32
|
|
BrokenAddress ;
|
|
|
|
BOOL
|
|
LoopOnPools = 1 ;
|
|
|
|
if ( len >= sizeof ( OsaMem_PoolHeader * ) )
|
|
{
|
|
pPool = ( OsaMem_PoolHeader * ) ( * ( UINT32 * ) p ) ;
|
|
|
|
if ( ! pPool || pPool->PoolID != 0x48287997 )
|
|
pPool = OsaMem_FirstPool ;
|
|
else
|
|
LoopOnPools = 0 ; // Work only on the requested pool.
|
|
}
|
|
else
|
|
pPool = OsaMem_FirstPool ;
|
|
|
|
do
|
|
{
|
|
Handle = OsaCriticalSectionEnter ( pPool->CriticalSectionHandle , 0 ) ;
|
|
BrokenAddress = OsaMem_CheckPool ( pPool ) ;
|
|
OsaCriticalSectionExit ( Handle , 0 ) ;
|
|
|
|
if ( BrokenAddress )
|
|
{
|
|
DIAG_FILTER ( OSA , OsaMem , PoolBroken , DIAG_INFORMATION)
|
|
diagPrintf ( " Pool <%s> is broken at address 0x%lX " , pPool->poolName , BrokenAddress );
|
|
|
|
|
|
return ;
|
|
}
|
|
|
|
DIAG_FILTER ( OSA , OsaMem , PoolOK , DIAG_INFORMATION)
|
|
diagPrintf ( " Pool <%s> is OK " , pPool->poolName );
|
|
|
|
|
|
|
|
pPool = pPool->pNextPool ;
|
|
}
|
|
while ( pPool && LoopOnPools ) ;
|
|
}
|
|
|
|
//ICAT EXPORTED FUNCTION - OSAstats , OsaMem , PoolsStatus
|
|
void OsaMemPoolsStatus ( void *p , UINT32 len )
|
|
{
|
|
OsaMem_PoolHeader
|
|
*pPool ;
|
|
|
|
OsaMem_FreeList
|
|
*pList ;
|
|
|
|
OsaMem_MemBlkHdr
|
|
*pMemBlk ;
|
|
|
|
UINT32
|
|
i ;
|
|
|
|
BOOL
|
|
LoopOnPools = 1 ;
|
|
|
|
if ( len >= sizeof ( OsaMem_PoolHeader * ) )
|
|
{
|
|
pPool = ( OsaMem_PoolHeader * ) ( * ( UINT32 * ) p ) ;
|
|
|
|
if ( ! pPool || pPool->PoolID != 0x48287997 )
|
|
pPool = OsaMem_FirstPool ;
|
|
else
|
|
LoopOnPools = 0 ; // Work only on the requested pool.
|
|
}
|
|
else
|
|
pPool = OsaMem_FirstPool ;
|
|
|
|
do
|
|
{
|
|
DIAG_FILTER ( OSA , OsaMem , PoolName , DIAG_INFORMATION)
|
|
diagPrintf ( " Pool <%s> @ 0x%lX " , pPool->poolName , ( UINT32 ) pPool );
|
|
|
|
|
|
|
|
DIAG_FILTER ( OSA , OsaMem , KBytes , DIAG_INFORMATION)
|
|
diagPrintf ( " Size=%ld , InUsed-Peak=%ld , InUse=%ld , Allocated-Peak=%ld , Allocatd=%ld " ,
|
|
( ( ( ( pPool->poolSize ) >> 9 ) + 1 ) >> 1 ) , ( ( ( ( pPool->MaxBytesInUse ) >> 9 ) + 1 ) >> 1 ) , ( ( ( ( pPool->BytesInUse ) >> 9 ) + 1 ) >> 1 ) , ( ( ( ( pPool->MaxBytesAllocated ) >> 9 ) + 1 ) >> 1 ) , ( ( ( ( pPool->BytesAllocated ) >> 9 ) + 1 ) >> 1 ) );
|
|
|
|
|
|
|
|
for ( i=0 , pMemBlk=pPool->pFirstMemBlk ; pMemBlk ; pMemBlk=pMemBlk->pNextMemBlk )
|
|
{
|
|
DIAG_FILTER ( OSA , OsaMem , MemBlk , DIAG_INFORMATION)
|
|
diagPrintf ( " %ld: From 0x%lX To 0x%lX " , ++i , pMemBlk->FirstAddress , pMemBlk->LastAddress );
|
|
|
|
|
|
}
|
|
|
|
for ( pList=pPool->FreeList ; pList< ( &pPool->FreeList [ ( 1 + ( ( ( 32 * 1 ) * 64 ) / ( 32 * 1 ) ) ) - 1 ] ) ; pList++ )
|
|
if ( pList->maxFreeBuf || pList->TotalAllocReq )
|
|
{
|
|
i = ( ( UINT32 ) pList - ( UINT32 ) pPool->FreeList ) / sizeof ( OsaMem_FreeList ) ;
|
|
DIAG_FILTER ( OSA , OsaMem , FreeList , DIAG_INFORMATION)
|
|
diagPrintf ( " %ld: Size=%ld , AllocReq=%ld , FreeReq=%ld , MaxAlloc=%ld , maxFree=%ld , nFree=%ld " ,
|
|
i , ( i+1 ) * ( 32 * 1 ) , pList->TotalAllocReq , pList->TotalFreeReq ,
|
|
pList->MaxAllocBuf , pList->maxFreeBuf , pList->nFreeBuf );
|
|
|
|
|
|
}
|
|
|
|
pPool = pPool->pNextPool ;
|
|
}
|
|
while ( pPool && LoopOnPools ) ;
|
|
}
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OSAListAllCreatedBytesPoolStatus_Name , DIAG_INFORMATION)
|
|
diagPrintf ( " Pool <%s> @ 0x%lX " , pPool->poolName , ( UINT32 ) pPool );
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OSAListAllCreatedBytesPoolStatus_Usage , DIAG_INFORMATION)
|
|
diagPrintf ( " Size=0x%lx , InUsed-Peak=0x%lx , InUse=0x%lx , Allocated-Peak=0x%lx , Allocatd=0x%lx " ,
|
|
pPool->poolSize , pPool->MaxBytesInUse , pPool->BytesInUse , pPool->MaxBytesAllocated , pPool->BytesAllocated );
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OSAListAllCreatedBytesPoolStatus_Mem , DIAG_INFORMATION)
|
|
diagPrintf ( " %ld: From 0x%lX To 0x%lX " , i , pMemBlk->FirstAddress , pMemBlk->LastAddress );
|
|
|
|
//PPC Version : V2.1.9.30
|
|
//PPL Source File Name : \tavor\Arbel\obj_PMD2NONE_1602\prepass_results\osa_tx_utils.ppp
|
|
//PPL Source File Name : \\os\\osa\\src\\osa_tx_utils.c
|
|
typedef unsigned int size_t ;
|
|
typedef unsigned char BOOL ;
|
|
typedef unsigned char UINT8 ;
|
|
typedef unsigned short UINT16 ;
|
|
typedef unsigned long UINT32 ;
|
|
typedef char CHAR ;
|
|
typedef signed char INT8 ;
|
|
typedef signed short INT16 ;
|
|
typedef signed long INT32 ;
|
|
typedef unsigned char Bool ;
|
|
typedef UINT8 BYTE ;
|
|
typedef UINT8 UBYTE ;
|
|
typedef UINT16 UWORD ;
|
|
typedef UINT16 WORD ;
|
|
typedef INT16 SWORD ;
|
|
typedef UINT32 DWORD ;
|
|
typedef unsigned long long UINT64 ;
|
|
typedef void* VOID_PTR ;
|
|
typedef unsigned long UNSIGNED ;
|
|
typedef long SIGNED ;
|
|
typedef unsigned char DATA_ELEMENT ;
|
|
typedef DATA_ELEMENT OPTION ;
|
|
typedef DATA_ELEMENT BOOLEAN ;
|
|
typedef int STATUS ;
|
|
typedef unsigned char UNSIGNED_CHAR ;
|
|
typedef unsigned int UNSIGNED_INT ;
|
|
typedef int INT ;
|
|
typedef unsigned long * UNSIGNED_PTR ;
|
|
typedef unsigned char * BYTE_PTR ;
|
|
typedef char CHAR ;
|
|
typedef unsigned char UCHAR ;
|
|
typedef int INT ;
|
|
typedef unsigned int UINT ;
|
|
typedef long LONG ;
|
|
typedef unsigned long ULONG ;
|
|
typedef short SHORT ;
|
|
typedef unsigned short USHORT ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
OSA_TASK_READY ,
|
|
OSA_TASK_COMPLETED ,
|
|
OSA_TASK_TERMINATED ,
|
|
OSA_TASK_SUSPENDED ,
|
|
OSA_TASK_SLEEP ,
|
|
OSA_TASK_QUEUE_SUSP ,
|
|
OSA_TASK_SEMAPHORE_SUSP ,
|
|
OSA_TASK_EVENT_FLAG ,
|
|
OSA_TASK_BLOCK_MEMORY ,
|
|
OSA_TASK_MUTEX_SUSP ,
|
|
OSA_TASK_STATE_UNKNOWN ,
|
|
} OSA_TASK_STATE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct OSA_TASK_STRUCT
|
|
{
|
|
char *task_name ; /* Pointer to thread ' s name */
|
|
unsigned int task_priority ; /* Priority of thread ( 0 -255 ) */
|
|
unsigned long task_stack_def_val ; /* default vaule of thread */
|
|
OSA_TASK_STATE task_state ; /* Thread ' s execution state */
|
|
unsigned long task_stack_ptr ; /* Thread ' s stack pointer */
|
|
unsigned long task_stack_start ; /* Stack starting address */
|
|
unsigned long task_stack_end ; /* Stack ending address */
|
|
unsigned long task_stack_size ; /* Stack size */
|
|
unsigned long task_run_count ; /* Thread ' s run counter */
|
|
|
|
} OSA_TASK;
|
|
|
|
typedef void *OsaRefT ;
|
|
typedef UINT8 OSA_STATUS ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef void* OS_HISR ;
|
|
typedef void* OSATaskRef ;
|
|
typedef void* OSAHISRRef ;
|
|
typedef void* OSASemaRef ;
|
|
typedef void* OSAMutexRef ;
|
|
typedef void* OSAMsgQRef ;
|
|
typedef void* OSAMailboxQRef ;
|
|
typedef void* OSAPoolRef ;
|
|
typedef void* OSATimerRef ;
|
|
typedef void* OSAFlagRef ;
|
|
typedef void* OSAPartitionPoolRef ;
|
|
typedef void* OSTaskRef ;
|
|
typedef void* OSSemaRef ;
|
|
typedef void* OSMutexRef ;
|
|
typedef void* OSMsgQRef ;
|
|
typedef void* OSMailboxQRef ;
|
|
typedef void* OSPoolRef ;
|
|
typedef void* OSTimerRef ;
|
|
typedef void* OSFlagRef ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef OsaTimerStatusParamsT OSATimerStatus ;
|
|
typedef void* OSATaskRef ;
|
|
typedef void* OSAHISRRef ;
|
|
typedef void* OSAMsgQRef ;
|
|
typedef void* OSAMailboxQRef ;
|
|
typedef void* OSAPartitionPoolRef ;
|
|
typedef UINT8 OS_STATUS ;
|
|
typedef volatile UINT8 *V_UINT8_PTR ;
|
|
typedef volatile UINT16 *V_UINT16_PTR ;
|
|
typedef volatile UINT32 *V_UINT32_PTR ;
|
|
typedef unsigned int U32Bits ;
|
|
typedef BOOL BOOLEAN ;
|
|
typedef const char * SwVersion ;
|
|
typedef unsigned int size_t ;
|
|
typedef va_list __gnuc_va_list ;
|
|
typedef void ( *CommandAddress ) ( void ) ;
|
|
typedef char* CommandProto ;
|
|
typedef const char * DiagDBVersion ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
PROTOCOL_TYPE_0 = 0 ,
|
|
MAX_PROTOCOL_TYPES
|
|
} ProtocolType;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
BOOL bEnabled ; // enable / disable the trace logging feature
|
|
ProtocolType eProtocolType ; // protocol type for communication with ICAT , currently only protocol type 0 is supported
|
|
UINT16 nMaxDataPerTrace ; // for each trace , what is the maximum data length to accompany the trace , in protocol type 0 , this is relevant only to DSP messages
|
|
} DiagLoggerDefs;
|
|
|
|
typedef void ( *TIMER_CALLBACK_FUNCTION ) ( UINT8 ) ;
|
|
typedef void ( *ACC_TIMER_CALLBACK ) ( UINT32 ) ;
|
|
typedef int TIMER_STATUS ;
|
|
typedef int TIMER_ID ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
PM_RC_OK = 0 ,
|
|
PM_RC_FAIL , // General Failure
|
|
PM_RC_ALREADY_EXISTS // Exit function since required target alrteady exists
|
|
} PM_ReturnCodeE;
|
|
|
|
typedef void ( *PM_CallbackFuncDDRstateT ) ( BOOL b_DDR_ready ) ;
|
|
typedef unsigned long long UINT64 ;
|
|
typedef unsigned long TimeIn32KhzUnit ;
|
|
typedef void ( *TickCallbackPtr ) ( UINT32 ) ;
|
|
typedef TimeIn32KhzUnit ( *SuspendCallbackPtr ) ( void ) ;
|
|
typedef void ( *PrepareTimeCallbackPtr ) ( void ) ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_PIN_NOT_ASSIGNED = -1 ,
|
|
|
|
GPIO_PIN_0=0 , GPIO_PIN_1 , GPIO_PIN_2 , GPIO_PIN_3 , GPIO_PIN_4 , GPIO_PIN_5 , GPIO_PIN_6 , GPIO_PIN_7 ,
|
|
GPIO_PIN_8 , GPIO_PIN_9 , GPIO_PIN_10 , GPIO_PIN_11 , GPIO_PIN_12 , GPIO_PIN_13 , GPIO_PIN_14 , GPIO_PIN_15 ,
|
|
GPIO_PIN_16 , GPIO_PIN_17 , GPIO_PIN_18 , GPIO_PIN_19 , GPIO_PIN_20 , GPIO_PIN_21 , GPIO_PIN_22 , GPIO_PIN_23 ,
|
|
GPIO_PIN_24 , GPIO_PIN_25 , GPIO_PIN_26 , GPIO_PIN_27 , GPIO_PIN_28 , GPIO_PIN_29 , GPIO_PIN_30 , GPIO_PIN_31 ,
|
|
GPIO_PIN_32 , GPIO_PIN_33 , GPIO_PIN_34 , GPIO_PIN_35 , GPIO_PIN_36 , GPIO_PIN_37 , GPIO_PIN_38 , GPIO_PIN_39 ,
|
|
|
|
GPIO_PIN_40 , GPIO_PIN_41 , GPIO_PIN_42 , GPIO_PIN_43 , GPIO_PIN_44 , GPIO_PIN_45 , GPIO_PIN_46 , GPIO_PIN_47 ,
|
|
GPIO_PIN_48 , GPIO_PIN_49 , GPIO_PIN_50 , GPIO_PIN_51 , GPIO_PIN_52 , GPIO_PIN_53 , GPIO_PIN_54 , GPIO_PIN_55 ,
|
|
GPIO_PIN_56 , GPIO_PIN_57 , GPIO_PIN_58 , GPIO_PIN_59 , GPIO_PIN_60 , GPIO_PIN_61 , GPIO_PIN_62 , GPIO_PIN_63 ,
|
|
// #endif // _TAVOR_HARBELL_
|
|
|
|
// #if defined ( GPIO_128_ENTRIES )
|
|
GPIO_PIN_64 , GPIO_PIN_65 , GPIO_PIN_66 , GPIO_PIN_67 , GPIO_PIN_68 , GPIO_PIN_69 , GPIO_PIN_70 , GPIO_PIN_71 ,
|
|
GPIO_PIN_72 , GPIO_PIN_73 , GPIO_PIN_74 , GPIO_PIN_75 , GPIO_PIN_76 , GPIO_PIN_77 , GPIO_PIN_78 , GPIO_PIN_79 ,
|
|
GPIO_PIN_80 , GPIO_PIN_81 , GPIO_PIN_82 , GPIO_PIN_83 , GPIO_PIN_84 , GPIO_PIN_85 , GPIO_PIN_86 , GPIO_PIN_87 ,
|
|
GPIO_PIN_88 , GPIO_PIN_89 , GPIO_PIN_90 , GPIO_PIN_91 , GPIO_PIN_92 , GPIO_PIN_93 , GPIO_PIN_94 , GPIO_PIN_95 ,
|
|
GPIO_PIN_96 , GPIO_PIN_97 , GPIO_PIN_98 , GPIO_PIN_99 , GPIO_PIN_100 , GPIO_PIN_101 , GPIO_PIN_102 , GPIO_PIN_103 ,
|
|
GPIO_PIN_104 , GPIO_PIN_105 , GPIO_PIN_106 , GPIO_PIN_107 , GPIO_PIN_108 , GPIO_PIN_109 , GPIO_PIN_110 , GPIO_PIN_111 ,
|
|
GPIO_PIN_112 , GPIO_PIN_113 , GPIO_PIN_114 , GPIO_PIN_115 , GPIO_PIN_116 , GPIO_PIN_117 , GPIO_PIN_118 , GPIO_PIN_119 ,
|
|
GPIO_PIN_120 , GPIO_PIN_121 , GPIO_PIN_122 , GPIO_PIN_123 , GPIO_PIN_124 , GPIO_PIN_125 , GPIO_PIN_126 , GPIO_PIN_127 ,
|
|
|
|
GPIO_MAX_AMOUNT_OF_PINS
|
|
} GPIO_PinNumbers;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_RC_OK = 1 ,
|
|
|
|
GPIO_RC_INVALID_PORT_HANDLE = -100 ,
|
|
GPIO_RC_NOT_OUTPUT_PORT ,
|
|
GPIO_RC_NO_TIMER ,
|
|
GPIO_RC_NO_FREE_HANDLE ,
|
|
GPIO_RC_AMOUNT_OUT_OF_RANGE ,
|
|
GPIO_RC_INCORRECT_PORT_SIZE ,
|
|
GPIO_RC_PORT_NOT_ON_ONE_REG ,
|
|
GPIO_RC_INVALID_PIN_NUM ,
|
|
GPIO_RC_PIN_USED_IN_PORT ,
|
|
GPIO_RC_PIN_NOT_FREE ,
|
|
GPIO_RC_PIN_NOT_LOCKED ,
|
|
GPIO_RC_NULL_POINTER ,
|
|
GPIO_RC_PULLED_AND_OUTPUT ,
|
|
GPIO_RC_INCORRECT_PORT_TYPE ,
|
|
GPIO_RC_INCORRECT_TRANSITION_TYPE ,
|
|
GPIO_RC_INCORRECT_DEBOUNCE ,
|
|
GPIO_RC_INCORRECT_DIRECTION ,
|
|
GPIO_RC_INCORRECT_INIT_VALUE
|
|
|
|
, GPIO_RC_INTC_ERROR ,
|
|
GPIO_RC_PRM_ERROR
|
|
|
|
} GPIO_ReturnCode;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_INPUT_PIN = 1 ,
|
|
GPIO_OUTPUT_PIN
|
|
} GPIO_PinDirection;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_PIN_FREE_FOR_USE = 0 ,
|
|
GPIO_PIN_USE_IN_PORT ,
|
|
GPIO_PIN_USE_IN_INTERRUPT ,
|
|
GPIO_PIN_USE_IN_PORT_WITH_INTERRUPT ,
|
|
GPIO_PIN_LOCKED
|
|
} GPIO_PinUsage;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
GPIO_PinUsage pinUsage ;
|
|
GPIO_PinDirection direction ;
|
|
} GPIO_PinStatus;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_INITIAL_VALUE_NO_CHANGE = 0 ,
|
|
GPIO_INITIAL_VALUE_LOW ,
|
|
GPIO_INITIAL_VALUE_HIGH
|
|
} GPIO_BitInitialValue;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
GPIO_PULL_UP_DOWN_DISABLE = 0 ,
|
|
GPIO_PULL_UP_ENABLE ,
|
|
GPIO_PULL_DOWN_ENABLE
|
|
} GPIO_PullUpDown;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
GPIO_PinNumbers pinNumber ;
|
|
GPIO_PinDirection direction ;
|
|
GPIO_TransitionType transitionType ;
|
|
GPIO_Debounce debounce ;
|
|
GPIO_PullUpDown pullUpDown ;
|
|
GPIO_BitInitialValue initialValue ;
|
|
} GPIO_PinConfiguration;
|
|
|
|
typedef UINT8 GPIO_PortHandle ;
|
|
typedef void ( *GPIO_ISR ) ( void ) ;
|
|
typedef UINT32 INTC_InterruptPriorityTable [ MAX_INTERRUPT_CONTROLLER_SOURCES ] ;
|
|
typedef UINT32 INTC_InterruptInfo ;
|
|
typedef void ( *INTC_ISR ) ( INTC_InterruptInfo interruptInfo ) ;
|
|
typedef void ( *PMCNotifyEventFunc ) ( UINT64 eventRegs ) ;
|
|
typedef void ( *PMCGetStatusNotifyFunc ) ( UINT16 status ) ;
|
|
typedef void ( *PMCReadCallback ) ( UINT8 *dataBuffPtr , UINT16 dataSize , UINT16 userId ) ;
|
|
typedef void ( *PMCWriteCallback ) ( UINT16 dataBuffPtr ) ;
|
|
typedef void ( *PMCGetGPADCValueNotifyFunc ) ( PMC_adc_reg_t reg , UINT16 value ) ;
|
|
typedef void ( * ReadingCallback ) ( int ) ;
|
|
typedef void ( * LTETempReadingCallback ) ( unsigned short , unsigned short ) ;
|
|
typedef void ( * ReadingCallbackBoth ) ( BOOL , int , int ) ;
|
|
typedef union
|
|
{
|
|
UINT8 autoControl ;
|
|
UINT8 autoControl2 ;
|
|
UINT8 manControl ;
|
|
} adcModeCntrl_t ;
|
|
typedef union
|
|
{
|
|
UINT64 all ;
|
|
Registers_ts regs ;
|
|
} PMCEvents ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
SHD_POWER_DOWN ,
|
|
SHD_RESET ,
|
|
SHD_GHOST ,
|
|
SHD_SW_ERROR /* EEHandler triggered the reset */
|
|
} ShutDownType_te;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
RR_NORMAL_POWER_ON = 0x00 , // default , not combined with others
|
|
RR_WATCH_DOG_TIMEOUT = 0x01 ,
|
|
RR_SOFTWARE_GENERATED = 0x02 ,
|
|
RR_CHARGING_BATTERY = 0x04 ,
|
|
RR_LOW_BATTERY = 0x08 ,
|
|
RR_ALARM_POWER_ON = 0x10 ,
|
|
RR_EXT_POWER_ON = 0x20
|
|
}
|
|
StartupReason_te;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
RE_RTC_ALARM = 0x01
|
|
} StartupExtInd_te;
|
|
|
|
typedef BOOL ( *DiagPSisRunningFn ) ( void ) ;
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
PMU_POR = 1 ,
|
|
PMU_EMR ,
|
|
PMU_WDTR = ( PMU_EMR+2 )
|
|
} PMU_LastResetStatus;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_INT_IFC ,
|
|
DIAG_EXT_IFC
|
|
} DIAG_IF_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_DEV_USB ,
|
|
DIAG_DEV_SD ,
|
|
DIAG_DEV_FS ,
|
|
DIAG_DEV_UART ,
|
|
DIAG_DEV_SPI ,
|
|
DIAG_DEV_RAM ,
|
|
DIAG_DEV_NONE
|
|
} DIAG_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
SULOG_DEV_USB ,
|
|
SULOG_DEV_SD
|
|
} SULOG_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
EEH_DUMP_DEV_USB_SD ,
|
|
EEH_DUMP_DEV_SPI
|
|
} EEH_DUMP_DEV_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_START_PS_OFF ,
|
|
DIAG_START_PS_ON
|
|
} DIAG_START_PS_TYPE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum {
|
|
DIAG_UART_SPEED_921600 , // for CP UART
|
|
DIAG_UART_SPEED_1842000 ,
|
|
DIAG_UART_SPEED_3000000 ,
|
|
DIAG_UART_DISABLE ,
|
|
DIAG_AP_UART_SPEED_921600 , // for AP UART
|
|
DIAG_AP_UART_SPEED_1842000 ,
|
|
DIAG_AP_UART_SPEED_3000000 ,
|
|
} DIAG_UART_SPEED_TYPE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
DIAG_IF_TYPE useIntIf ; /* use internal interface or external interface */
|
|
DIAG_UART_SPEED_TYPE useHighSpeedUART ; /* high speed UART ( 460800 ) or low speed UART ( 115200 ) */
|
|
// DIAG_MEM_SWITCH diagMemSwitch ;
|
|
BOOL GLFeatureFlag ;
|
|
DIAG_START_PS_TYPE diagStartPS ;
|
|
DIAG_DEV_TYPE diagDevType ;
|
|
SULOG_DEV_TYPE sulogDevType ;
|
|
EEH_DUMP_DEV_TYPE eehDumpDevType ;
|
|
// DIAG_MEM_SWITCH diagMemSwitch ;
|
|
BOOL usbUserMode ;
|
|
} diagCfgDataS;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct
|
|
{
|
|
UINT32 dbID ;
|
|
UINT32 filterBitLength ;
|
|
UINT32 reserved [ 6 ] ;
|
|
} DIAG_Nvm_Filter_File_Header_t;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
LOG_DISABLE = 0x0 ,
|
|
UART_LOG_ENABLE = 0x1 ,
|
|
ACAT_LOG_ENABLE = 0x2
|
|
} Log_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
MSG_DISABLE = 0x0 ,
|
|
ACAT_MSG_ENABLE = 0x1
|
|
} Msg_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
RTI_LOG_DISABLE = 0x0 ,
|
|
RTI_DUMP_ENABLE = 0x1 ,
|
|
RTI_TASK_ENABLE = 0x2 ,
|
|
RTI_MIPS_ENABLE = 0x3
|
|
} RTI_ConfigE;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Log_ConfigE log_cfg ;
|
|
Msg_ConfigE msg_cfg ;
|
|
RTI_ConfigE rti_cfg ;
|
|
} Log_ConfigS;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
YMODEM_DISABLE = 0x0 ,
|
|
YMODEM_ENABLE = 0x1
|
|
} Ymodem_Dump_config;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Ymodem_Dump_config config ;
|
|
} Ymodem_Dump_type;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
/* MIFI driver*/
|
|
USB_GENERIC_MIFI_DRIVER = 0x0 ,
|
|
USB_MARVELL_MIFI_DRIVER = 0x1 ,
|
|
USB_ASR_MIFI_DRIVER = 0x2 ,
|
|
USB_GENERIC_MOD_DRIVER = 0x10 ,
|
|
USB_GENERIC_MOD_ECM_DRIVER = 0x12 ,
|
|
|
|
USB_CDC_ACM_ONLY_DRIVER = 0x13 ,
|
|
|
|
USB_DIAG_UAC_DRIVER = 0x14 ,
|
|
|
|
USB_QUEC_CUST_DRIVER = 0x15 ,
|
|
|
|
|
|
/* MBIM driver*/
|
|
USB_MBIM_ONLY_DRIVER = 0x40 ,
|
|
USB_MBIM_GENERIC_DRIVER = 0x41 ,
|
|
USB_MBIM_MAX_DRIVER = 0x4F ,
|
|
|
|
/* Other driver*/
|
|
USB_CDROM_ONLY_DRIVER = 0x91 ,
|
|
USB_CDROM_DIAG_DRIVER = 0x92 ,
|
|
USB_DIAG_ONLY_DRIVER = 0x93 ,
|
|
USB_MODEM_ONLY_DRIVER = 0x94 ,
|
|
USB_MODEM_DIAG_DRIVER = 0x95 ,
|
|
|
|
USB_MAX_DRIVER = 0xFF
|
|
} Usb_driver_typeE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
MASS_STORAGE_DISABLE = 0x0 ,
|
|
MASS_STORAGE_ENABLE = 0x1
|
|
} MassStorage_ConfigE;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
USB_AUTO_INSTALL_DISABLE = 0x0 ,
|
|
USB_AUTO_INSTALL_ENABLE = 0x1
|
|
} Usb_auto_install_type;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum
|
|
{
|
|
USB_OS_DETECT_DISABLE = 0x0 ,
|
|
USB_OS_DETECT_ENABLE = 0x1
|
|
} Usb_OS_detect_type;
|
|
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct {
|
|
Usb_driver_typeE usb_driver ;
|
|
MassStorage_ConfigE mass_storage ;
|
|
Usb_auto_install_type auto_install ;
|
|
Usb_OS_detect_type os_detect ;
|
|
} Usb_DriverS;
|
|
|
|
typedef UINT8 UART_Activity ;
|
|
//ICAT EXPORTED STRUCT
|
|
typedef struct /* This is structure of the UART Configuration */
|
|
{
|
|
UART_OpMode opMode ; /* fifo mode , non fifo mode or DMA for basic interface*/
|
|
UART_TriggerLevel triggerLevel ; /* the trigger level interrupt on 1 , 8 , 16 , 32 */
|
|
UART_BaudRates baudRate ; /* the rate of the transmit and the receive up to 111520 ( default - 9600 ) .*/
|
|
UART_WordLen numDataBits ; /* 5 , 6 , 7 , or 8 number of data bits in the UART data frame ( default - 8 ) . */
|
|
UART_StopBits stopBits ; /* 1 , 1.500000 or 2 stop bits in the UART data frame ( default - 1 ) . */
|
|
UART_ParityTBits parityBitType ; /* Even , Odd or no-parity bit type in the UART data frame ( default - Non ) . */
|
|
UART_InterfaceType interfaceType ; /* number of interface that the UART driver supplies ( default - UART_IF_TYPE_L2 ) */
|
|
BOOL modemSignal ; /* enable operate modem - TRUE , disable modem - FALSE */
|
|
BOOL flowControl ; /* enable Auto flow Control - TRUE , disable Auto flow Control - FALSE */
|
|
UINT8 sleepMode ; /* enable sleep mode - TRUE , more fine control - see UARTSleepMode enum */
|
|
BOOL auto_baud ; /* enable auto_baud , auto-baud-rate detection within the UART ( default - FALSE ) */
|
|
UART_SIRConfigure sirIrDA ;
|
|
} UARTConfiguration;
|
|
|
|
//ICAT EXPORTED ENUM
|
|
typedef enum // change the order -1 to +
|
|
{
|
|
UART_RC_OK = 1 , /* 1 - no errors */
|
|
|
|
UART_RC_PORT_NUM_ERROR = -100 , /* -100 - Error in the UART port number */
|
|
UART_RC_NO_DATA_TO_READ , /* -99 - Eror no data to read from the FIFO UART */
|
|
UART_RC_ILLEGAL_BAUD_RATE , /* -98 - Error in the UART Bayd Rate */
|
|
UART_RC_UART_PARITY_BITS_ERROR , /* -97 - Error in parity bit */
|
|
UART_RC_UART_ONE_STOP_BIT_ERROR , /* -96 - Error in one stop bit */
|
|
UART_RC_ONE_HALF_OR_TWO_STOP_BIT_ERROR , /* -95 - Error in two stop bit */
|
|
UART_RC_BAD_INTERFACE_TYPE , /* -94 - Error in the Interface Type */
|
|
UART_RC_UART_NOT_AVAILABLE , /* -93 - Error in try to open UART that is open */
|
|
UART_RC_NO_DATA_TO_WRITE , /* -92 - Error No data to writ the len = 0 */
|
|
UART_RC_NOT_ALL_BYTE_WRITTEN , /* -91 - Error Not all the Byte write to the UART FIFO */
|
|
UART_RC_ISR_ALREADY_BIND , /* -90 - Error try to bind ISR for Basic Interface */
|
|
UART_RC_WRONG_ISR_UNBIND , /* -89 - Error in the UnBind ISR for Basic Interface */
|
|
UART_RC_FIFO_NOT_EMPTY , /* -88 - Error , the UART FIFO not empty */
|
|
UART_RC_UART_OPEN , /* -87 - Error try chance the configurr when the UART open */
|
|
UART_RC_GPIO_ERR , /* -86 - Error in the Configure of the GPIO */
|
|
UART_RC_IRDA_CONFIG_ERR , /* -85 - Illegal IrDA configuration */
|
|
UART_RC_TX_DMA_ERR /* -84 - DMA TX Error */
|
|
} UART_ReturnCode;
|
|
|
|
typedef void ( *UARTNotifyInterrupt ) ( UART_Port ) ;
|
|
typedef void ( *UsbLogPrint_t ) ( const char * , ... ) ;
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OsaListAllCreatedTasks_1 , DIAG_DEBUG)
|
|
diagPrintf ( " total task+HISR: %d " , _tx_thread_created_count );
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OsaListAllCreatedTasks_HISR_2 , DIAG_DEBUG)
|
|
diagPrintf ( " HISR name: %s , ref: 0x%lx " , thread_ptr->tx_thread_name , ( UINT32 ) thread_ptr );
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OsaListAllCreatedTasks_TASK_2 , DIAG_DEBUG)
|
|
diagPrintf ( " TASK name: %s , ref: 0x%lx " , thread_ptr->tx_thread_name , ( UINT32 ) thread_ptr );
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OsaListAllCreatedTimers_1 , DIAG_DEBUG)
|
|
diagPrintf ( " total timer: %d " , _tx_timer_created_count );
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OsaListAllCreatedTimers_2 , DIAG_DEBUG)
|
|
diagPrintf ( " timer name: %s , ref: 0x%lx " , timer_ptr->tx_timer_name , ( UINT32 ) timer_ptr );
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OsaListAllCreatedEventFlags_1 , DIAG_DEBUG)
|
|
diagPrintf ( " total event flag: %d " , _tx_event_flags_created_count );
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OsaListAllCreatedEventFlags_2 , DIAG_DEBUG)
|
|
diagPrintf ( " event flag name: %s , ref: 0x%lx " , event_flags_ptr->tx_event_flags_group_name , ( UINT32 ) event_flags_ptr );
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OsaListAllCreatedBlockPools_1 , DIAG_DEBUG)
|
|
diagPrintf ( " total block pool: %d " , _tx_block_pool_created_count );
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OsaListAllCreatedBlockPools_2 , DIAG_DEBUG)
|
|
diagPrintf ( " block pool name: %s , ref: 0x%lx " , block_pool_ptr->tx_block_pool_name , ( UINT32 ) block_pool_ptr );
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OsaListAllCreatedMsgQs_1 , DIAG_DEBUG)
|
|
diagPrintf ( " total message queue: %d " , _tx_queue_created_count );
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OsaListAllCreatedMsgQs_2 , DIAG_DEBUG)
|
|
diagPrintf ( " message queue name: %s , ref: 0x%lx " , queue_ptr->tx_queue_name , ( UINT32 ) queue_ptr );
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OsaListAllCreatedSemaphores_1 , DIAG_DEBUG)
|
|
diagPrintf ( " total semaphore: %d " , _tx_semaphore_created_count );
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OsaListAllCreatedSemaphores_2 , DIAG_DEBUG)
|
|
diagPrintf ( " semaphore name: %s , ref: 0x%lx " , semaphore_ptr->tx_semaphore_name , ( UINT32 ) semaphore_ptr );
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OsaListAllCreatedMutexs_1 , DIAG_DEBUG)
|
|
diagPrintf ( " total mutex: %d " , _tx_mutex_created_count );
|
|
|
|
DIAG_FILTER ( OSA , OSA_DUMP , OsaListAllCreatedMutexs_2 , DIAG_DEBUG)
|
|
diagPrintf ( " mutex name: %s , ref: 0x%lx " , mutex_ptr->tx_mutex_name , ( UINT32 ) mutex_ptr );
|
|
|