Debian Codegraph @

util/nvidia/cbootimage/src/data_layout.h

raw symbols SCIP
1 /*
2 * Copyright (c) 2012-2014, NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * See file CREDITS for list of people who contributed to this
17 * project.
18 */
19
20 /*
21 * data_layout.h - Definitions for the cbootimage data layout code.
22 */
23
24 #ifndef INCLUDED_DATA_LAYOUT_H
25 #define INCLUDED_DATA_LAYOUT_H
26
27 #include "cbootimage.h"
28
29 /* Forward declarations */
30 struct build_image_context_rec;
31
32 typedef struct blk_data_rec *blk_data_handle;
33
34 blk_data_handle new_block_list(void);
35 void destroy_block_list(blk_data_handle);
36
37 int
38 update_bl(struct build_image_context_rec *context);
39
40 int
41 update_mts_image(build_image_context *context);
42
43 void
44 update_context(struct build_image_context_rec *context);
45
46 int
47 read_bct_file(struct build_image_context_rec *context);
48
49 int
50 init_bct(struct build_image_context_rec *context);
51
52 int
53 write_block_raw(struct build_image_context_rec *context);
54
55 int
56 write_data_block(FILE *fp, uint32_t offset, uint32_t size, uint8_t *buffer);
57
58 int
59 data_is_valid_bct(build_image_context *context);
60
61 int
62 get_bct_size_from_image(build_image_context *context);
63
64 int
65 begin_update(build_image_context *context);
66
67 int
68 resign_bl(build_image_context *context);
69 #endif /* #ifndef INCLUDED_DATA_LAYOUT_H */