• 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: last dump
15  * This file should be changed only infrequently and with great care.
16  */
17 
18 #ifndef LAST_DUMP_ST_H
19 #define LAST_DUMP_ST_H
20 #include <stdint.h>
21 
22 #define LAST_DUMP_NAME_LEN 64
23 
24 typedef struct {
25     uint32_t file_num;
26 } last_dump_start_ind_t;
27 
28 typedef struct {
29     char name[LAST_DUMP_NAME_LEN];
30     uint32_t total_size;
31     uint32_t offset;
32     uint32_t size;
33     uint32_t crc;
34     uint8_t data[0];
35 } last_dump_data_ind_t;
36 
37 typedef struct {
38     char name[LAST_DUMP_NAME_LEN];
39     uint32_t total_size;
40     uint32_t start_address;
41 } last_dump_data_ind_finish_t;
42 
43 #endif