OpenOCD
|
Go to the source code of this file.
Functions | |
FLASH_BANK_COMMAND_HANDLER (virtual_flash_bank_command) | |
static int | virtual_auto_probe (struct flash_bank *bank) |
static int | virtual_blank_check (struct flash_bank *bank) |
static int | virtual_erase (struct flash_bank *bank, unsigned int first, unsigned int last) |
static int | virtual_flash_read (struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count) |
static struct flash_bank * | virtual_get_master_bank (struct flash_bank *bank) |
static int | virtual_info (struct flash_bank *bank, struct command_invocation *cmd) |
static int | virtual_probe (struct flash_bank *bank) |
static int | virtual_protect (struct flash_bank *bank, int set, unsigned int first, unsigned int last) |
static int | virtual_protect_check (struct flash_bank *bank) |
static void | virtual_update_bank_info (struct flash_bank *bank) |
static int | virtual_write (struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) |
Variables | |
const struct flash_driver | virtual_flash |
FLASH_BANK_COMMAND_HANDLER | ( | virtual_flash_bank_command | ) |
Definition at line 47 of file virtual.c.
References bank, CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FLASH_OPERATION_FAILED, ERROR_OK, get_flash_bank_by_name_noprobe(), and LOG_ERROR.
|
static |
Definition at line 145 of file virtual.c.
References flash_driver::auto_probe, bank, flash_bank::driver, ERROR_FLASH_OPERATION_FAILED, ERROR_OK, virtual_get_master_bank(), and virtual_update_bank_info().
|
static |
Definition at line 177 of file virtual.c.
References bank, flash_bank::driver, flash_driver::erase_check, ERROR_FLASH_OPERATION_FAILED, ERROR_OK, and virtual_get_master_bank().
|
static |
Definition at line 92 of file virtual.c.
References bank, flash_bank::driver, flash_driver::erase, ERROR_FLASH_OPERATION_FAILED, ERROR_OK, and virtual_get_master_bank().
|
static |
|
static |
Definition at line 14 of file virtual.c.
References bank, get_flash_bank_by_name_noprobe(), and LOG_ERROR.
Referenced by virtual_auto_probe(), virtual_blank_check(), virtual_erase(), virtual_info(), virtual_probe(), virtual_protect(), virtual_protect_check(), virtual_update_bank_info(), and virtual_write().
|
static |
Definition at line 164 of file virtual.c.
References bank, flash_bank::base, cmd, command_print_sameline(), ERROR_FLASH_OPERATION_FAILED, ERROR_OK, flash_bank::name, TARGET_ADDR_FMT, and virtual_get_master_bank().
|
static |
Definition at line 126 of file virtual.c.
References bank, flash_bank::driver, ERROR_FLASH_OPERATION_FAILED, ERROR_OK, flash_driver::probe, virtual_get_master_bank(), and virtual_update_bank_info().
|
static |
Definition at line 67 of file virtual.c.
References bank, ERROR_FLASH_OPERATION_FAILED, flash_driver_protect(), and virtual_get_master_bank().
|
static |
Definition at line 78 of file virtual.c.
References bank, flash_bank::driver, ERROR_FLASH_OPER_UNSUPPORTED, ERROR_FLASH_OPERATION_FAILED, flash_driver::protect_check, and virtual_get_master_bank().
|
static |
Definition at line 25 of file virtual.c.
References bank, flash_bank::bus_width, flash_bank::chip_width, flash_bank::default_padded_value, flash_bank::erased_value, flash_bank::minimal_write_gap, flash_bank::num_prot_blocks, flash_bank::num_sectors, flash_bank::prot_blocks, flash_bank::sectors, flash_bank::size, virtual_get_master_bank(), flash_bank::write_end_alignment, and flash_bank::write_start_alignment.
Referenced by virtual_auto_probe(), and virtual_probe().
|
static |
Definition at line 109 of file virtual.c.
References bank, buffer, count, flash_bank::driver, ERROR_FLASH_OPERATION_FAILED, ERROR_OK, offset, virtual_get_master_bank(), and flash_driver::write.
const struct flash_driver virtual_flash |