]>
git.ipfire.org Git - people/ms/u-boot.git/blob - tools/gpheader.h
3 * Texas Instruments Incorporated
4 * Refactored common functions in to gpimage-common.c. Include this common
8 * Linaro LTD, www.linaro.org
9 * Author: John Rigby <john.rigby@linaro.org>
10 * Based on TI's signGP.c
13 * Stefano Babic, DENX Software Engineering, sbabic@denx.de.
16 * Marvell Semiconductor <www.marvell.com>
17 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
19 * SPDX-License-Identifier: GPL-2.0+
25 /* common headers for gpimage and omapimage formats */
30 #define GPIMAGE_HDR_SIZE (sizeof(struct gp_header))
32 /* common functions across gpimage and omapimage handlers */
33 int valid_gph_size(uint32_t size
);
34 int valid_gph_load_addr(uint32_t load_addr
);
35 int gph_verify_header(struct gp_header
*gph
, int be
);
36 void gph_print_header(const struct gp_header
*gph
, int be
);
37 void gph_set_header(struct gp_header
*gph
, uint32_t size
, uint32_t load_addr
,
39 int gpimage_check_params(struct image_tool_params
*params
);