X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=tools%2Ffit_common.h;h=9e09624f64eea18989d3cfc0f5d96f985ee70dbd;hb=2950c514e8fc2c9d6a48cd7187521bc648dc679e;hp=b8d8438717fc06992530af7e77c6cae30a12643a;hpb=019b57cc1d280c3768e2e8a7ff22e07a64c2f670;p=oweals%2Fu-boot.git diff --git a/tools/fit_common.h b/tools/fit_common.h index b8d8438717..9e09624f64 100644 --- a/tools/fit_common.h +++ b/tools/fit_common.h @@ -1,7 +1,6 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2014 - * - * SPDX-License-Identifier: GPL-2.0+ */ #ifndef _FIT_COMMON_H_ @@ -11,6 +10,14 @@ #include "mkimage.h" #include +/** + * Verify the format of FIT header pointed to by ptr + * + * @ptr: image header to be verified + * @image_size: size of while image + * @params: mkimage parameters + * @return 0 if OK, -1 on error + */ int fit_verify_header(unsigned char *ptr, int image_size, struct image_tool_params *params);