FreeCalypso > hg > freecalypso-reveng
comparison fluid-mnf/fileio.h @ 311:9cecc930d78f
fluid-mnf: original source from TI,
defenestrated line endings and rearranged directory structure,
but no *.[ch] source file content changes yet
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 29 Feb 2020 05:36:07 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
310:ae39d76d5b7a | 311:9cecc930d78f |
---|---|
1 /****************************************************************************** | |
2 * FLUID (Flash Loader Utility Independent of Device) | |
3 * | |
4 * Copyright Texas Instruments, 2001. | |
5 * Mads Meisner-Jensen, mmj@ti.com. | |
6 * | |
7 * File reading/loading | |
8 * | |
9 * $Id: fileio.h 1.5 Wed, 09 Jan 2002 13:01:15 +0100 mmj $ | |
10 * | |
11 ******************************************************************************/ | |
12 | |
13 | |
14 struct image_part_s { | |
15 uint32 addr; | |
16 uint32 size; | |
17 }; | |
18 | |
19 void buffer_endian_convert(unsigned char *buf, int size, int width); | |
20 | |
21 int file_read_rc(char *filename); | |
22 int file_read_image(char *image, int image_size, | |
23 char *usage_map, int usage_map_chunk_size); | |
24 int file_read_cmd(char *image, int image_size, char *filename); // Secure Calypso Plus | |
25 int file_read_method(char *image, int image_size, struct device_s *device); | |
26 | |
27 int file_write_image(char *image, int image_size, | |
28 struct image_part_s *image_list); | |
29 int file_write_die_id(unsigned char *die_id, char *filename); |