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

Go to the source code of this file.

Functions

struct nand_flash_controllernand_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

struct nand_flash_controller at91sam9_nand_controller
 Structure representing the AT91SAM9 NAND controller. More...
 
struct nand_flash_controller davinci_nand_controller
 
struct nand_flash_controller imx31_nand_flash_controller
 
struct nand_flash_controller lpc3180_nand_controller
 
struct nand_flash_controller lpc32xx_nand_controller
 
struct nand_flash_controller mxc_nand_flash_controller
 
static struct nand_flash_controllernand_flash_controllers []
 
struct nand_flash_controller nonce_nand_controller
 
struct nand_flash_controller nuc910_nand_controller
 
struct nand_flash_controller orion_nand_controller
 
struct nand_flash_controller s3c2410_nand_controller
 
struct nand_flash_controller s3c2412_nand_controller
 
struct nand_flash_controller s3c2440_nand_controller
 
struct nand_flash_controller s3c2443_nand_controller
 
struct nand_flash_controller s3c6400_nand_controller
 

Function Documentation

◆ nand_driver_find_by_name()

struct nand_flash_controller* nand_driver_find_by_name ( const char *  name)

Find a NAND flash controller by name.

Parameters
nameIdentifies the NAND controller to find.
Returns
The nand_flash_controller named name, or NULL if not found.

Definition at line 54 of file flash/nand/driver.c.

References nand_flash_controller::name, name, nand_flash_controllers, and NULL.

Referenced by COMMAND_HANDLER().

◆ nand_driver_walk()

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.

Parameters
fThe callback function to invoke for each function.
xFor use as private data storage, passed directly to f.
Returns
ERROR_OK if successful, or the non-zero return value of f. This allows a walker to terminate the loop early.

Definition at line 63 of file flash/nand/driver.c.

References ERROR_OK, and nand_flash_controllers.

Referenced by COMMAND_HANDLER().

Variable Documentation

◆ at91sam9_nand_controller

struct nand_flash_controller at91sam9_nand_controller
extern

Structure representing the AT91SAM9 NAND controller.

Definition at line 621 of file at91sam9.c.

◆ davinci_nand_controller

struct nand_flash_controller davinci_nand_controller
extern

Definition at line 661 of file davinci.c.

◆ imx31_nand_flash_controller

struct nand_flash_controller imx31_nand_flash_controller
extern

Definition at line 645 of file mx3.c.

◆ lpc3180_nand_controller

Definition at line 1268 of file lpc3180.c.

◆ lpc32xx_nand_controller

Definition at line 1738 of file lpc32xx.c.

◆ mxc_nand_flash_controller

struct nand_flash_controller mxc_nand_flash_controller
extern

Definition at line 901 of file mxc.c.

◆ nand_flash_controllers

struct nand_flash_controller* nand_flash_controllers[]
static
Initial value:
= {
}
struct nand_flash_controller lpc32xx_nand_controller
Definition: lpc32xx.c:1797
struct nand_flash_controller s3c2412_nand_controller
Definition: s3c2412.c:50
struct nand_flash_controller orion_nand_controller
Definition: orion.c:139
struct nand_flash_controller nuc910_nand_controller
Definition: nuc910.c:204
struct nand_flash_controller at91sam9_nand_controller
Structure representing the AT91SAM9 NAND controller.
Definition: at91sam9.c:696
struct nand_flash_controller nonce_nand_controller
Definition: nonce.c:51
struct nand_flash_controller lpc3180_nand_controller
Definition: lpc3180.c:1335
struct nand_flash_controller s3c2410_nand_controller
Definition: s3c2410.c:93
struct nand_flash_controller s3c2440_nand_controller
Definition: s3c2440.c:141
struct nand_flash_controller mxc_nand_flash_controller
Definition: mxc.c:936
struct nand_flash_controller imx31_nand_flash_controller
Definition: mx3.c:694
struct nand_flash_controller davinci_nand_controller
Definition: davinci.c:765
struct nand_flash_controller s3c6400_nand_controller
Definition: s3c6400.c:47
struct nand_flash_controller s3c2443_nand_controller
Definition: s3c2443.c:50
#define NULL
Definition: usb.h:16

Definition at line 35 of file flash/nand/driver.c.

Referenced by nand_driver_find_by_name(), and nand_driver_walk().

◆ nonce_nand_controller

struct nand_flash_controller nonce_nand_controller
extern

Definition at line 46 of file nonce.c.

◆ nuc910_nand_controller

Definition at line 171 of file nuc910.c.

◆ orion_nand_controller

Definition at line 134 of file orion.c.

◆ s3c2410_nand_controller

struct nand_flash_controller s3c2410_nand_controller
extern

Definition at line 71 of file s3c2410.c.

◆ s3c2412_nand_controller

struct nand_flash_controller s3c2412_nand_controller
extern

Definition at line 34 of file s3c2412.c.

◆ s3c2440_nand_controller

struct nand_flash_controller s3c2440_nand_controller
extern

Definition at line 111 of file s3c2440.c.

◆ s3c2443_nand_controller

struct nand_flash_controller s3c2443_nand_controller
extern

Definition at line 34 of file s3c2443.c.

◆ s3c6400_nand_controller

struct nand_flash_controller s3c6400_nand_controller
extern

Definition at line 31 of file s3c6400.c.