openocd/src
Zachary T Welch 870b8c0455 allow flash/nand banks commands to accept names
Add get_flash_bank_by_name (and get_nand_device_by_name) helpers
to retrieves struct flash_bank * (struct nand_device *) given a
driver name and an (optional) driver-specific bank index.

These are used to extend flash_command_get_bank_by_num (and
nand_command_get_device_by_num) to allow all flash (nand) commands to
reference defined banks by name, not just by number.

To avoid some code duplication, add the flash/common.[ch] files to hold
functionality common to both types driver.  The first two methods are
helpers for the above routines to find a bank specified by a "name" or
"name.index" string.  get_flash_name_index() finds the '.index' portion,
while flash_driver_name_matches() performs the string portion matching.
2009-11-19 13:39:41 -08:00
..
flash allow flash/nand banks commands to accept names 2009-11-19 13:39:41 -08:00
helper remove fast command and jim_global_long 2009-11-18 15:51:07 -08:00
jtag fix zy1000 command handler 2009-11-18 15:51:07 -08:00
pld command_handler: change 'cmd_ctx' to CMD_CTX 2009-11-17 11:40:06 -08:00
server use COMMAND_PARSE_ENABLE macro where appropriate 2009-11-18 15:51:07 -08:00
svf command_handler: change 'cmd_ctx' to CMD_CTX 2009-11-17 11:40:06 -08:00
target ARM: remove per-register malloc 2009-11-19 13:23:49 -08:00
xsvf command_handler: change 'cmd_ctx' to CMD_CTX 2009-11-17 11:40:06 -08:00
ecosboard.c zy1000: revC UART forwarding 2009-11-17 15:04:17 +01:00
hello.c update src/hello.c with parsing examples 2009-11-18 15:51:07 -08:00
main.c add openocd.h for top-level declarations 2009-11-14 07:29:16 -08:00
Makefile.am pass startup_tcl to command_init 2009-11-18 07:22:22 -08:00
openocd.c pass startup_tcl to command_init 2009-11-18 07:22:22 -08:00
openocd.h fix segfault at startup 2009-11-18 11:56:24 -08:00