OpenOCD
|
Go to the source code of this file.
Functions | |
COMMAND_HANDLER (handle_nand_check_bad_blocks_command) | |
COMMAND_HANDLER (handle_nand_device_command) | |
COMMAND_HANDLER (handle_nand_dump_command) | |
COMMAND_HANDLER (handle_nand_erase_command) | |
COMMAND_HANDLER (handle_nand_info_command) | |
COMMAND_HANDLER (handle_nand_init_command) | |
COMMAND_HANDLER (handle_nand_list_command) | |
COMMAND_HANDLER (handle_nand_list_drivers) | |
COMMAND_HANDLER (handle_nand_probe_command) | |
COMMAND_HANDLER (handle_nand_raw_access_command) | |
COMMAND_HANDLER (handle_nand_verify_command) | |
COMMAND_HANDLER (handle_nand_write_command) | |
static | COMMAND_HELPER (create_nand_device, const char *bank_name, struct nand_flash_controller *controller) |
static int | nand_init (struct command_context *cmd_ctx) |
static int | nand_list_walker (struct nand_flash_controller *c, void *x) |
int | nand_register_commands (struct command_context *cmd_ctx) |
Variables | |
static const struct command_registration | nand_command_handlers [] |
static const struct command_registration | nand_config_command_handlers [] |
static const struct command_registration | nand_exec_command_handlers [] |
COMMAND_HANDLER | ( | handle_nand_check_bad_blocks_command | ) |
Definition at line 187 of file flash/nand/tcl.c.
References CALL_COMMAND_HANDLER, CMD, CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, command_print(), nand_device::erase_size, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, length, nand_build_bbt(), and offset.
COMMAND_HANDLER | ( | handle_nand_device_command | ) |
Definition at line 556 of file flash/nand/tcl.c.
References CALL_COMMAND_HANDLER, CMD_ARGC, CMD_ARGV, ERROR_COMMAND_SYNTAX_ERROR, LOG_ERROR, and nand_driver_find_by_name().
COMMAND_HANDLER | ( | handle_nand_dump_command | ) |
Definition at line 328 of file flash/nand/tcl.c.
References nand_fileio_state::address, nand_fileio_state::bench, CALL_COMMAND_HANDLER, CMD, command_print(), duration_elapsed(), duration_kbps(), ERROR_OK, nand_fileio_state::fileio, fileio_size(), fileio_write(), FILEIO_WRITE, nand_fileio_cleanup(), nand_fileio_finish(), nand_read_page(), NULL, nand_fileio_state::oob, nand_fileio_state::oob_size, nand_fileio_state::page, nand_device::page_size, nand_fileio_state::page_size, and nand_fileio_state::size.
COMMAND_HANDLER | ( | handle_nand_erase_command | ) |
Definition at line 143 of file flash/nand/tcl.c.
References CALL_COMMAND_HANDLER, CMD, CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, command_print(), nand_device::device, nand_device::erase_size, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, length, nand_info::name, nand_erase(), nand_device::num_blocks, offset, and size.
COMMAND_HANDLER | ( | handle_nand_info_command | ) |
Definition at line 45 of file flash/nand/tcl.c.
References nand_device::blocks, nand_device::bus_width, CALL_COMMAND_HANDLER, CMD, CMD_ARGC, CMD_ARGV, COMMAND_PARSE_NUMBER, command_print(), nand_device::device, nand_device::erase_size, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, nand_block::is_bad, nand_block::is_erased, nand_device::manufacturer, nand_manufacturer::name, nand_info::name, nand_device::num_blocks, nand_block::offset, nand_device::page_size, and nand_block::size.
COMMAND_HANDLER | ( | handle_nand_init_command | ) |
Definition at line 472 of file flash/nand/tcl.c.
References CMD_ARGC, CMD_CTX, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, LOG_DEBUG, LOG_INFO, and nand_init().
COMMAND_HANDLER | ( | handle_nand_list_command | ) |
Definition at line 20 of file flash/nand/tcl.c.
References nand_device::bus_width, CMD, command_print(), nand_device::device, nand_device::erase_size, ERROR_OK, nand_device::manufacturer, nand_manufacturer::name, nand_info::name, nand_devices, nand_device::next, nand_device::num_blocks, and nand_device::page_size.
COMMAND_HANDLER | ( | handle_nand_list_drivers | ) |
Definition at line 495 of file flash/nand/tcl.c.
References CMD, command_print(), nand_driver_walk(), and nand_list_walker().
COMMAND_HANDLER | ( | handle_nand_probe_command | ) |
Definition at line 124 of file flash/nand/tcl.c.
References CALL_COMMAND_HANDLER, CMD, CMD_ARGC, command_print(), nand_device::device, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, nand_device::manufacturer, nand_manufacturer::name, nand_info::name, and nand_probe().
COMMAND_HANDLER | ( | handle_nand_raw_access_command | ) |
Definition at line 370 of file flash/nand/tcl.c.
References CALL_COMMAND_HANDLER, CMD, CMD_ARGC, CMD_ARGV, COMMAND_PARSE_ENABLE, command_print(), nand_device::device, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, and nand_device::use_raw.
COMMAND_HANDLER | ( | handle_nand_verify_command | ) |
Definition at line 269 of file flash/nand/tcl.c.
References nand_fileio_state::address, nand_fileio_state::bench, CALL_COMMAND_HANDLER, CMD, CMD_ARGV, command_print(), duration_elapsed(), duration_kbps(), ERROR_FAIL, ERROR_OK, FILEIO_NONE, FILEIO_READ, nand_fileio_cleanup(), nand_fileio_finish(), nand_fileio_init(), nand_fileio_read(), nand_fileio_start(), nand_read_page(), NULL, nand_fileio_state::oob, nand_fileio_state::oob_format, nand_fileio_state::oob_size, nand_fileio_state::page, nand_device::page_size, nand_fileio_state::page_size, and nand_fileio_state::size.
COMMAND_HANDLER | ( | handle_nand_write_command | ) |
Definition at line 229 of file flash/nand/tcl.c.
References nand_fileio_state::address, nand_fileio_state::bench, CALL_COMMAND_HANDLER, CMD, CMD_ARGV, command_print(), duration_elapsed(), duration_kbps(), ERROR_FAIL, ERROR_OK, FILEIO_READ, nand_fileio_cleanup(), nand_fileio_finish(), nand_fileio_read(), nand_write_page(), NULL, nand_fileio_state::oob, nand_fileio_state::oob_size, nand_fileio_state::page, nand_device::page_size, nand_fileio_state::page_size, and nand_fileio_state::size.
|
static |
Definition at line 501 of file flash/nand/tcl.c.
References nand_device::address_cycles, nand_device::bus_width, CALL_COMMAND_HANDLER, CMD_ARGC, CMD_ARGV, CMD_CTX, nand_flash_controller::commands, nand_device::controller, nand_device::controller_priv, nand_device::device, ERROR_COMMAND_ARGUMENT_INVALID, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, get_target(), LOG_DEBUG, LOG_ERROR, nand_device::manufacturer, nand_device::name, nand_flash_controller::name, nand_device_add(), nand_device::next, NULL, nand_device::page_size, register_commands(), nand_device::target, target, nand_flash_controller::usage, and nand_device::use_raw.
|
static |
Definition at line 464 of file flash/nand/tcl.c.
References ERROR_OK, nand_devices, nand_exec_command_handlers, and register_commands().
Referenced by COMMAND_HANDLER().
|
static |
Definition at line 488 of file flash/nand/tcl.c.
References cmd, command_print(), ERROR_OK, and nand_flash_controller::name.
Referenced by COMMAND_HANDLER().
int nand_register_commands | ( | struct command_context * | cmd_ctx | ) |
Definition at line 611 of file flash/nand/tcl.c.
References nand_command_handlers, NULL, and register_commands().
Referenced by setup_command_handler().
|
static |
Definition at line 556 of file flash/nand/tcl.c.
Referenced by nand_register_commands().
|
static |
Definition at line 556 of file flash/nand/tcl.c.
|
static |
Definition at line 370 of file flash/nand/tcl.c.
Referenced by nand_init().