OpenOCD
|
Go to the source code of this file.
Functions | |
struct nand_flash_controller * | nand_driver_find_by_name (const char *name) |
Find a NAND flash controller by name. More... | |
int | nand_driver_walk (nand_driver_walker_t f, void *x) |
Walk the list of drivers, encapsulating the data structure type. More... | |
Variables | |
static struct nand_flash_controller * | nand_flash_controllers [] |
struct nand_flash_controller* nand_driver_find_by_name | ( | const char * | name | ) |
Find a NAND flash controller by name.
name | Identifies the NAND controller to find. |
name
, or NULL if not found. Definition at line 34 of file flash/nand/driver.c.
References nand_flash_controller::name, name, nand_flash_controllers, and NULL.
Referenced by COMMAND_HANDLER().
int nand_driver_walk | ( | nand_driver_walker_t | f, |
void * | x | ||
) |
Walk the list of drivers, encapsulating the data structure type.
Application state/context can be passed through the x
pointer.
f | The callback function to invoke for each function. |
x | For use as private data storage, passed directly to f . |
f
. This allows a walker to terminate the loop early. Definition at line 43 of file flash/nand/driver.c.
References ERROR_OK, and nand_flash_controllers.
Referenced by COMMAND_HANDLER().
|
static |
Definition at line 16 of file flash/nand/driver.c.
Referenced by nand_driver_find_by_name(), and nand_driver_walk().