xref: /rk3399_rockchip-uboot/arch/arm/include/asm/arch-rockchip/resource_img.h (revision 4e8c225a1d386380171f4be14f3bd22ca85bc0bb)
1 /*
2  * (C) Copyright 2017 Rockchip Electronics Co., Ltd
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6 
7 #ifndef __RESC_IMG_H_
8 #define __RESC_IMG_H_
9 
10 /*
11  * read file from resource partition
12  * @buf: destination buf to store file data;
13  * @name: file name
14  * @offset: blocks offset in the file, 1 block = 512 bytes
15  * @len: the size(by bytes) of file to read.
16  */
17 int rockchip_read_resource_file(void *buf, const char *name,
18 				int offset, int len);
19 int rockchip_get_resource_file(void *buf, const char *name);
20 
21 #endif
22