1 /* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 * Description: oal type head file. 15 * Create: 2019-2-21 16 */ 17 18 /***************************************************************************** 19 1 其他头文件包含 20 *****************************************************************************/ 21 22 #ifndef __OAL_TYPES_DEVICE_H__ 23 #define __OAL_TYPES_DEVICE_H__ 24 #include "oal_types_device_rom.h" 25 26 27 #ifdef __cplusplus 28 #if __cplusplus 29 extern "C" { 30 #endif 31 #endif 32 33 #define OAL_EIO 5 /* I/O error */ 34 #define OAL_ENOMEM 12 /* Out of memory */ 35 #define OAL_EFAUL 14 /* Bad address */ 36 #define OAL_EBUSY 16 /* Device or resource busy */ 37 #define OAL_ENODEV 19 /* No such device */ 38 39 /* 三种业务类型 */ 40 typedef enum { 41 OAL_TRAFFIC_NORMAL = 0, /* 一般业务 */ 42 OAL_TRAFFIC_MULTI_USER_MULTI_AC = 1, /* 多用户多优先级业务 */ 43 OAL_TRAFFIC_MULTI_USER_ONLY_BE = 2, /* 32用户单优先级业务 */ 44 OAL_TRAFFIC_BUTT 45 } oal_traffic_type_enum; 46 typedef osal_u8 oal_traffic_type_enum_uint8; 47 48 typedef osal_u32 oal_err_code_enum_uint32; 49 typedef enum { 50 OAL_CB_CONTINUE = 0, 51 OAL_CB_RETURN = 1, 52 OAL_ROM_CB_RSLT_BUTT 53 } oal_rom_cb_result_enum; 54 55 #ifdef __cplusplus 56 #if __cplusplus 57 } 58 #endif 59 #endif 60 61 #endif /* end of oal_types_device.h */ 62