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: Header file of msg_alg_rom 15 */ 16 17 #ifndef MSG_ALG_ROM_H 18 #define MSG_ALG_ROM_H 19 20 #include "osal_types.h" 21 #include "alg_common_macros_rom.h" 22 23 /* 算法参数枚举,参数值 */ 24 typedef struct { 25 mac_alg_cfg_enum_uint16 alg_cfg; /* 配置命令枚举 */ 26 #if defined(_PRE_OS_VERSION_LITEOS) && defined(_PRE_OS_VERSION) && (_PRE_OS_VERSION_LITEOS == _PRE_OS_VERSION) 27 osal_u8 is_negtive; /* 配置参数值是否为负 */ 28 osal_u8 resv[1]; /* 字节对齐 */ 29 #else 30 osal_u8 resv[2]; /* 字节对齐 */ 31 #endif 32 osal_u32 value; /* 配置参数值 */ 33 } mac_ioctl_alg_param_stru; 34 35 #ifdef _PRE_WLAN_FEATURE_INTRF_MODE 36 /* 干扰场景优化配置 */ 37 typedef struct { 38 mac_alg_intrf_mode_cfg_enum_uint8 alg_intrf_mode_cfg; /* 配置命令枚举 */ 39 osal_u8 resv; /* 字节对齐 */ 40 osal_u16 value; /* 配置参数值 */ 41 } mac_ioctl_alg_intrf_mode_param_stru; 42 typedef struct { 43 osal_u8 enable; /* 配置命令枚举 */ 44 osal_u8 resv; /* 字节对齐 */ 45 osal_u16 value; /* 配置参数值 */ 46 } mac_ioctl_alg_intrf_mode_todmac_stru; 47 #endif 48 49 #endif