OpenOCD
flash/nand/tcl.c File Reference
Include dependency graph for flash/nand/tcl.c:

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 []
 

Function Documentation

◆ COMMAND_HANDLER() [1/12]

COMMAND_HANDLER ( handle_nand_check_bad_blocks_command  )

◆ COMMAND_HANDLER() [2/12]

COMMAND_HANDLER ( handle_nand_device_command  )

◆ COMMAND_HANDLER() [3/12]

◆ COMMAND_HANDLER() [4/12]

◆ COMMAND_HANDLER() [5/12]

◆ COMMAND_HANDLER() [6/12]

COMMAND_HANDLER ( handle_nand_init_command  )

◆ COMMAND_HANDLER() [7/12]

◆ COMMAND_HANDLER() [8/12]

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() [9/12]

◆ COMMAND_HANDLER() [10/12]

COMMAND_HANDLER ( handle_nand_raw_access_command  )

◆ COMMAND_HANDLER() [11/12]

◆ COMMAND_HANDLER() [12/12]

◆ COMMAND_HELPER()

◆ nand_init()

static int nand_init ( struct command_context cmd_ctx)
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().

◆ nand_list_walker()

static int nand_list_walker ( struct nand_flash_controller c,
void *  x 
)
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().

◆ nand_register_commands()

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().

Variable Documentation

◆ nand_command_handlers

const struct command_registration nand_command_handlers[]
static
Initial value:
= {
{
.name = "nand",
.mode = COMMAND_ANY,
.help = "NAND flash command group",
.usage = "",
},
}
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition: command.h:253
@ COMMAND_ANY
Definition: command.h:42
static const struct command_registration nand_config_command_handlers[]

Definition at line 556 of file flash/nand/tcl.c.

Referenced by nand_register_commands().

◆ nand_config_command_handlers

const struct command_registration nand_config_command_handlers[]
static
Initial value:
= {
{
.name = "device",
.handler = &handle_nand_device_command,
.mode = COMMAND_CONFIG,
.help = "defines a new NAND bank",
.usage = "bank_id driver target [driver_options ...]",
},
{
.name = "drivers",
.handler = &handle_nand_list_drivers,
.mode = COMMAND_ANY,
.help = "lists available NAND drivers",
.usage = ""
},
{
.name = "init",
.mode = COMMAND_CONFIG,
.handler = &handle_nand_init_command,
.help = "initialize NAND devices",
.usage = ""
},
}
@ COMMAND_CONFIG
Definition: command.h:41

Definition at line 556 of file flash/nand/tcl.c.

◆ nand_exec_command_handlers

const struct command_registration nand_exec_command_handlers[]
static

Definition at line 370 of file flash/nand/tcl.c.

Referenced by nand_init().