diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fluid-mnf/fileio.h	Sat Feb 29 05:36:07 2020 +0000
@@ -0,0 +1,29 @@
+/******************************************************************************
+ * FLUID (Flash Loader Utility Independent of Device)
+ *
+ * Copyright Texas Instruments, 2001.
+ * Mads Meisner-Jensen, mmj@ti.com.
+ *
+ * File reading/loading
+ *
+ * $Id: fileio.h 1.5 Wed, 09 Jan 2002 13:01:15 +0100 mmj $
+ *
+ ******************************************************************************/
+
+
+struct image_part_s {
+    uint32 addr;
+    uint32 size;
+};
+
+void buffer_endian_convert(unsigned char *buf, int size, int width);
+
+int file_read_rc(char *filename);
+int file_read_image(char *image, int image_size,
+                    char *usage_map, int usage_map_chunk_size);
+int file_read_cmd(char *image, int image_size, char *filename);   // Secure Calypso Plus
+int file_read_method(char *image, int image_size, struct device_s *device);
+
+int file_write_image(char *image, int image_size,
+                     struct image_part_s *image_list);
+int file_write_die_id(unsigned char *die_id, char *filename);