text: /*
   * Copyright (C) Hisilicon Technologies Co., Ltd. 2012-2018. All rights reserved.
   * Description:
   * Author:
   * Create: 2016-09-19
   */
  
  #ifndef __HI_COMMON_ADAPT_H__
  #define __HI_COMMON_ADAPT_H__
  
  #include "autoconf.h"
  #include "hi_type.h"
  #include "hi_defines.h"
  #include "hi_common.h"
  
  #ifndef __IGNORE_HWSEC__
  
  #ifndef __KERNEL__
  #include "hi_securec.h"
  #endif
  
  #ifdef __LITEOS__
  #include "hi_securec.h"
  #endif
  
  #endif
  
  #ifdef __cplusplus
  #if __cplusplus
  extern "C" {
  #endif
  #endif /* end of #ifdef __cplusplus */
  
  typedef struct {
      hi_char version[VERSION_NAME_MAXLEN];
  } hi_mpp_version;
  
  typedef hi_s32 hi_ai_chn;
  typedef hi_s32 hi_ao_chn;
  typedef hi_s32 hi_aenc_chn;
  typedef hi_s32 hi_adec_chn;
  typedef hi_s32 hi_audio_dev;
  typedef hi_s32 hi_vi_dev;
  typedef hi_s32 hi_vi_pipe;
  typedef hi_s32 hi_vi_chn;
  typedef hi_s32 hi_vi_stitch_grp;
  typedef hi_s32 hi_vo_dev;
  typedef hi_s32 hi_vo_layer;
  typedef hi_s32 hi_vo_chn;
  typedef hi_s32 hi_vo_wbc;
  typedef hi_s32 hi_graphic_layer;
  typedef hi_s32 hi_venc_chn;
  typedef hi_s32 hi_vdec_chn;
  typedef hi_s32 hi_ive_handle;
  typedef hi_s32 hi_cls_handle;
  typedef hi_s32 hi_fd_chn;
  typedef hi_s32 hi_md_chn;
  typedef hi_s32 hi_isp_dev;
  typedef hi_s32 hi_blk_dev;
  typedef hi_s32 hi_sensor_id;
  typedef hi_s32 hi_mipi_dev;
  typedef hi_s32 hi_slave_dev;
  typedef hi_s32 hi_svp_nnie_handle;
  typedef hi_s32 hi_svp_dsp_handle;
  typedef hi_s32 hi_svp_alg_chn;
  typedef hi_s32 hi_vpss_grp;
  typedef hi_s32 hi_vpss_grp_pipe;
  typedef hi_s32 hi_vpss_chn;
  typedef hi_s32 hi_avs_grp;
  typedef hi_s32 hi_avs_pipe;
  typedef hi_s32 hi_avs_chn;
  typedef hi_s32 hi_mcf_grp;
  typedef hi_s32 hi_mcf_pipe;
  typedef hi_s32 hi_mcf_chn;
  
  typedef MOD_ID_E hi_mod_id;
  
  typedef struct {
      hi_mod_id    mod_id;
      hi_s32      dev_id;
      hi_s32      chn_id;
  } hi_mpp_chn;
  
  typedef PAYLOAD_TYPE_E hi_payload_type;
  
  #ifdef __cplusplus
  #if __cplusplus
  }
  #endif
  #endif /* end of #ifdef __cplusplus */
  
  #endif /* __HI_COMMON_ADAPT_H__ */
  
  