X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnand%2Fdriver.h;h=04ec64fcfbdd2869af213fa31a2e2719fe85b637;hb=ae7ab8b09d1c69559284ad9d9e3c17345d2496dd;hp=deb41b2a96bb0414605ddffff9fcf3b9c49b927a;hpb=4f9a9b8ebae8425eda3a71ccb782789cd3b8f6b7;p=openocd.git diff --git a/src/flash/nand/driver.h b/src/flash/nand/driver.h index deb41b2a96..04ec64fcfb 100644 --- a/src/flash/nand/driver.h +++ b/src/flash/nand/driver.h @@ -37,14 +37,14 @@ struct nand_flash_controller /** Driver name that is used to select it from configuration files. */ const char *name; + /** Usage of flash command registration. */ + const char *usage; + 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 +75,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); };