• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: get init info function
15  */
16 #ifndef DIAG_CMD_LOGFLASH_TEST_H
17 #define DIAG_CMD_LOGFLASH_TEST_H
18 
19 #include "diag.h"
20 
21 typedef struct {
22     uint8_t multi_num;      // 文件的数量
23     uint32_t file_size;     // 文件的大小
24     uint8_t enable_cache;   // 是否支持缓存
25     uint16_t cache_size;    // 缓存的大小
26 } dfx_test_logfile_cfg_t;
27 
28 typedef struct {
29     uint32_t ctrl_type;
30     uint32_t service_type;
31 } dfx_test_logfile_ctrl_t;
32 
33 typedef struct {
34     uint32_t service_type;
35     uint32_t data_type;
36     uint32_t data_len;
37     uint32_t test_timer;
38 } dfx_test_logfile_write_t;
39 
40 errcode_t diag_logfile_init(void);
41 errcode_t diag_cmd_logflash_test(uint16_t cmd_id, uint8_t *cmd_param, uint16_t cmd_param_size, diag_option_t *option);
42 
43 #endif /* DIAG_CMD_LOGFLASH_TEST_H */