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: diag usr config 15 * This file should be changed only infrequently and with great care. 16 */ 17 18 #ifndef DIAG_CONFIG_H 19 #define DIAG_CONFIG_H 20 21 #include <stdint.h> 22 #include "dfx_resource_id.h" 23 24 #define DFX_MSG_MAX_SIZE 0x20 /* msg element size of msg queue */ 25 #define DFX_MSG_ID_LEN sizeof(uint32_t) 26 #define DFX_QUEUE_MAX_SIZE 64 27 28 #define CONFIG_DIAG_CMD_TBL_NUM 10 /* diag:Maximum number of cmd tbl cnt */ 29 #define CONFIG_DIAG_IND_TBL_NUM 3 /* diag:Maximum number of ind tbl cnt */ 30 #define CONFIG_STAT_CMD_LIST_NUM 10 /* diag:Maximum number of stat tbl cnt */ 31 #define CONFIG_DIAG_RX_BUF_SIZE 0x200 /* diag:rx buf size */ 32 #define CONFIG_DIAG_TRANSMIT_ITEM_CNT 3 /* diag:Maximum transfer item cnt */ 33 #define CONFIG_DIAG_FILTER_GROUP_NUM 10 /* diag: Maximum number of diag file group */ 34 35 #endif /* DIAG_CONFIG_H */ 36