Debian Codegraph @

util/nvidia/cbootimage/src/set.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 * set.h - Definitions for the cbootimage state setting code.
22 */
23
24 #ifndef INCLUDED_SET_H
25 #define INCLUDED_SET_H
26
27 #include "cbootimage.h"
28 #include "parse.h"
29 #include "string.h"
30 #include "sys/stat.h"
31
32 int
33 set_bootloader(build_image_context *context,
34 char *filename,
35 uint32_t load_addr,
36 uint32_t entry_point);
37
38 int
39 set_mts_image(build_image_context *context,
40 char *filename,
41 uint32_t load_addr,
42 uint32_t entry_point);
43
44 int
45 set_rsa_param(build_image_context *context,
46 parse_token token,
47 char *filename);
48
49 int
50 context_set_value(build_image_context *context,
51 parse_token token,
52 void *value);
53
54 int
55 read_from_image(char *filename,
56 uint32_t offset,
57 uint32_t max_size,
58 uint8_t **Image,
59 uint32_t *actual_size,
60 file_type f_type);
61
62 #endif /* #ifndef INCLUDED_SET_H */