| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
#ifndef INCLUDED_DATA_LAYOUT_H |
| 25 |
#define INCLUDED_DATA_LAYOUT_H |
| 26 |
|
| 27 |
#include "cbootimage.h" |
| 28 |
|
| 29 |
|
| 30 |
struct build_image_context_rec; |
| 31 |
|
| 32 |
typedef struct blk_data_rec *blk_data_handle; |
| 33 |
|
| 34 |
blk_data_handle new_block_list(void); |
| 35 |
void destroy_block_list(blk_data_handle); |
| 36 |
|
| 37 |
int |
| 38 |
update_bl(struct build_image_context_rec *context); |
| 39 |
|
| 40 |
int |
| 41 |
update_mts_image(build_image_context *context); |
| 42 |
|
| 43 |
void |
| 44 |
update_context(struct build_image_context_rec *context); |
| 45 |
|
| 46 |
int |
| 47 |
read_bct_file(struct build_image_context_rec *context); |
| 48 |
|
| 49 |
int |
| 50 |
init_bct(struct build_image_context_rec *context); |
| 51 |
|
| 52 |
int |
| 53 |
write_block_raw(struct build_image_context_rec *context); |
| 54 |
|
| 55 |
int |
| 56 |
write_data_block(FILE *fp, uint32_t offset, uint32_t size, uint8_t *buffer); |
| 57 |
|
| 58 |
int |
| 59 |
data_is_valid_bct(build_image_context *context); |
| 60 |
|
| 61 |
int |
| 62 |
get_bct_size_from_image(build_image_context *context); |
| 63 |
|
| 64 |
int |
| 65 |
begin_update(build_image_context *context); |
| 66 |
|
| 67 |
int |
| 68 |
resign_bl(build_image_context *context); |
| 69 |
#endif |