view fluid-mnf/fileio.h @ 402:1b83d07576bf

compal/boot/c123-boot.disasm: missed vector branch at 0x1c
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jan 2023 00:06:59 +0000
parents 9cecc930d78f
children
line wrap: on
line source

/******************************************************************************
 * 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);