12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef _RKCOMMON_H
- #define _RKCOMMON_H
- enum {
- RK_BLK_SIZE = 512,
- RK_INIT_OFFSET = 4,
- RK_MAX_BOOT_SIZE = 512 << 10,
- RK_SPL_HDR_START = RK_INIT_OFFSET * RK_BLK_SIZE,
- RK_SPL_HDR_SIZE = 4,
- RK_SPL_START = RK_SPL_HDR_START + RK_SPL_HDR_SIZE,
- RK_IMAGE_HEADER_LEN = RK_SPL_START,
- };
- int rkcommon_check_params(struct image_tool_params *params);
- const char *rkcommon_get_spl_hdr(struct image_tool_params *params);
- int rkcommon_get_spl_size(struct image_tool_params *params);
- int rkcommon_set_header(void *buf, uint file_size,
- struct image_tool_params *params);
- #endif
|