/****************************************************************************** * Copyright (C) Hisilicon Technologies Co., Ltd. 2005-2019. All rights reserved. * Description: Common data types of the system. * Author: Hisilicon multimedia software group * Create: 2005-4-23 ******************************************************************************/ #ifndef __HI_TYPE_H__ #define __HI_TYPE_H__ #include /*--------------------------------------------------------------------------------------------------------------* * Defintion of basic data types. The data types are applicable to both the application layer and kernel codes. * *--------------------------------------------------------------------------------------------------------------*/ /*************************** Structure Definition ****************************/ typedef unsigned char HI_UCHAR; typedef unsigned char HI_U8; typedef unsigned short HI_U16; typedef unsigned int HI_U32; typedef unsigned long HI_UL; typedef HI_UL HI_ULONG; typedef uintptr_t HI_UINTPTR_T; typedef char HI_CHAR; typedef signed char HI_S8; typedef short HI_S16; typedef int HI_S32; typedef long HI_SL; typedef float HI_FLOAT; typedef double HI_DOUBLE; typedef unsigned long long HI_U64; typedef long long HI_S64; typedef unsigned long HI_SIZE_T; typedef unsigned long HI_LENGTH_T; typedef unsigned long int HI_PHYS_ADDR_T; typedef unsigned int HI_HANDLE; /*----------------------------------------------* * const defination * *----------------------------------------------*/ typedef enum { HI_FALSE = 0, HI_TRUE = 1, } HI_BOOL; #ifndef NULL #define NULL 0L #endif #define HI_NULL 0L #define HI_SUCCESS 0 #define HI_FAILURE (-1) #define HI_VOID void typedef unsigned char hi_uchar; typedef unsigned char hi_u8; typedef unsigned short hi_u16; typedef unsigned int hi_u32; typedef unsigned long hi_ulong; typedef char hi_char; typedef signed char hi_s8; typedef short hi_s16; typedef int hi_s32; typedef long hi_slong; typedef float hi_float; typedef double hi_double; typedef void hi_void; typedef unsigned long long hi_u64; typedef long long hi_s64; typedef unsigned long hi_size_t; typedef unsigned long hi_length_t; typedef hi_u32 hi_handle; typedef HI_BOOL hi_bool; typedef HI_UINTPTR_T hi_uintptr_t; #endif /* __HI_TYPE_H__ */