11bd4fe43Sopenharmony_ci/* 21bd4fe43Sopenharmony_ci * Copyright (c) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED. 31bd4fe43Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 41bd4fe43Sopenharmony_ci * you may not use this file except in compliance with the License. 51bd4fe43Sopenharmony_ci * You may obtain a copy of the License at 61bd4fe43Sopenharmony_ci * 71bd4fe43Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 81bd4fe43Sopenharmony_ci * 91bd4fe43Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 101bd4fe43Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 111bd4fe43Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 121bd4fe43Sopenharmony_ci * See the License for the specific language governing permissions and 131bd4fe43Sopenharmony_ci * limitations under the License. 141bd4fe43Sopenharmony_ci */ 151bd4fe43Sopenharmony_ci#ifndef __TDE_ERRCODE_H__ 161bd4fe43Sopenharmony_ci#define __TDE_ERRCODE_H__ 171bd4fe43Sopenharmony_ci 181bd4fe43Sopenharmony_ci#include "hi_type.h" 191bd4fe43Sopenharmony_ci 201bd4fe43Sopenharmony_ci#ifdef __cplusplus 211bd4fe43Sopenharmony_ci#if __cplusplus 221bd4fe43Sopenharmony_ciextern "C" { 231bd4fe43Sopenharmony_ci#endif 241bd4fe43Sopenharmony_ci#endif /* __cplusplus */ 251bd4fe43Sopenharmony_ci 261bd4fe43Sopenharmony_ci#define HI_ERR_TDE_BASE ((HI_S32)(((0x80UL + 0x20UL) << 24) | (100 << 16) | (4 << 13) | 1)) 271bd4fe43Sopenharmony_ci 281bd4fe43Sopenharmony_cienum { 291bd4fe43Sopenharmony_ci HI_ERR_TDE_DEV_NOT_OPEN = HI_ERR_TDE_BASE, /* < tde device not open yet */ 301bd4fe43Sopenharmony_ci HI_ERR_TDE_DEV_OPEN_FAILED, /* < open tde device failed */ 311bd4fe43Sopenharmony_ci HI_ERR_TDE_NULL_PTR, /* < input parameters contain null ptr */ 321bd4fe43Sopenharmony_ci HI_ERR_TDE_NO_MEM, /* < malloc failed */ 331bd4fe43Sopenharmony_ci HI_ERR_TDE_INVALID_HANDLE, /* < invalid job handle */ 341bd4fe43Sopenharmony_ci HI_ERR_TDE_INVALID_PARA, /* < invalid parameter */ 351bd4fe43Sopenharmony_ci HI_ERR_TDE_NOT_ALIGNED, /* < aligned error for position, stride, width */ 361bd4fe43Sopenharmony_ci HI_ERR_TDE_MINIFICATION, /* < invalid minification */ 371bd4fe43Sopenharmony_ci HI_ERR_TDE_CLIP_AREA, /* < clip area and operation area have no intersection */ 381bd4fe43Sopenharmony_ci HI_ERR_TDE_JOB_TIMEOUT, /* < blocked job wait timeout */ 391bd4fe43Sopenharmony_ci HI_ERR_TDE_UNSUPPORTED_OPERATION, /* < unsupported operation */ 401bd4fe43Sopenharmony_ci HI_ERR_TDE_QUERY_TIMEOUT, /* < query time out */ 411bd4fe43Sopenharmony_ci HI_ERR_TDE_INTERRUPT /* blocked job was interrupted */ 421bd4fe43Sopenharmony_ci}; 431bd4fe43Sopenharmony_ci 441bd4fe43Sopenharmony_ci#ifdef __cplusplus 451bd4fe43Sopenharmony_ci#if __cplusplus 461bd4fe43Sopenharmony_ci} 471bd4fe43Sopenharmony_ci#endif 481bd4fe43Sopenharmony_ci#endif /* __cplusplus */ 491bd4fe43Sopenharmony_ci 501bd4fe43Sopenharmony_ci#endif /* __TDE_ERRCODE_H__ */ 51