OpenOCD
|
Go to the source code of this file.
Functions | |
static int | read_section (FILE *input_file, int length_size, char section, uint32_t *buffer_length, uint8_t **buffer) |
void | xilinx_free_bit_file (struct xilinx_bit_file *bit_file) |
int | xilinx_read_bit_file (struct xilinx_bit_file *bit_file, const char *filename) |
|
static |
Definition at line 19 of file xilinx_bit.c.
References be_to_h_u16(), be_to_h_u32(), buffer, ERROR_OK, ERROR_PLD_FILE_LOAD_FAILED, length, and LOG_ERROR.
Referenced by xilinx_read_bit_file().
void xilinx_free_bit_file | ( | struct xilinx_bit_file * | bit_file | ) |
Definition at line 141 of file xilinx_bit.c.
References xilinx_bit_file::data, xilinx_bit_file::date, xilinx_bit_file::part_name, xilinx_bit_file::source_file, and xilinx_bit_file::time.
Referenced by virtex2_load(), and xilinx_read_bit_file().
int xilinx_read_bit_file | ( | struct xilinx_bit_file * | bit_file, |
const char * | filename | ||
) |
Definition at line 60 of file xilinx_bit.c.
References xilinx_bit_file::data, xilinx_bit_file::date, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, ERROR_PLD_FILE_LOAD_FAILED, xilinx_bit_file::length, LOG_DEBUG, LOG_ERROR, NULL, xilinx_bit_file::part_name, read_section(), xilinx_bit_file::source_file, xilinx_bit_file::time, xilinx_bit_file::unknown_header, and xilinx_free_bit_file().
Referenced by virtex2_load().