X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fnand%2Fdriver.h;h=4edce9fab1d3b75c96111acf982b86a57d1e1689;hp=545a731ba25e374ee359d509595a73eb67da9e1b;hb=b0759dfc538b973cce67df93f8a7fe239bfb4c74;hpb=a7fd30c07fb9c2b7662ffaa48287b1997dc60796 diff --git a/src/flash/nand/driver.h b/src/flash/nand/driver.h index 545a731ba2..4edce9fab1 100644 --- a/src/flash/nand/driver.h +++ b/src/flash/nand/driver.h @@ -35,16 +35,13 @@ struct nand_device; struct nand_flash_controller { /** Driver name that is used to select it from configuration files. */ - char *name; + const char *name; const struct command_registration *commands; /** NAND device command called when driver is instantiated during configuration. */ __NAND_DEVICE_COMMAND((*nand_device_command)); - /** Register controller specific commands as a TCL interface to the driver. */ - int (*register_commands)(struct command_context *cmd_ctx); - /** Initialize the NAND device. */ int (*init)(struct nand_device *nand); @@ -75,9 +72,6 @@ struct nand_flash_controller /** Read a page from the NAND device. */ int (*read_page)(struct nand_device *nand, uint32_t page, uint8_t *data, uint32_t data_size, uint8_t *oob, uint32_t oob_size); - /** Check if the controller is ready for more instructions with timeout. */ - int (*controller_ready)(struct nand_device *nand, int timeout); - /** Check if the NAND device is ready for more instructions with timeout. */ int (*nand_ready)(struct nand_device *nand, int timeout); }; @@ -86,7 +80,7 @@ struct nand_flash_controller /** * Find a NAND flash controller by name. - * @param The name of the NAND controller to find. + * @param name Identifies the NAND controller to find. * @returns The nand_flash_controller named @c name, or NULL if not found. */ struct nand_flash_controller *nand_driver_find_by_name(const char *name);