summaryrefslogtreecommitdiff
path: root/src/flash/faux.c
Commit message (Collapse)AuthorAgeFilesLines
* improve command handling examplesZachary T Welch2009-11-251-0/+12
| | | | | | Removes hello and foo commands from top-level registration. Instead, the dummy interface driver and faux flash driver have been augmented to register these commands as sub-commands.
* remove flash_driver->register_callbacksZachary T Welch2009-11-241-6/+0
| | | | | Replace flash_driver callback with pointer to command_registration. Eliminates all related routines and allows drivers to omit commands.
* command_handler: change 'args' to CMD_ARGVZachary T Welch2009-11-171-2/+2
| | | | | This patch converts all instances of 'args' in COMMAND_HANDLER routines to use CMD_ARGV macro.
* command_handler: change to 'argc' to CMD_ARGCZachary T Welch2009-11-171-1/+1
| | | | | This patch converts all instances of 'argc' in COMMAND_HANDLER routines to use CMD_ARGC.
* command_context_t -> struct command_contextZachary T Welch2009-11-131-1/+1
| | | | Remove misleading typedef and redundant suffix from struct command_context.
* flash_bank_t -> struct flash_bankZachary T Welch2009-11-131-6/+6
| | | | Remove misleading typedef and redundant suffix from struct flash_bank.
* target_t -> struct targetZachary T Welch2009-11-131-1/+1
| | | | Remove misleading typedef and redundant suffix from struct target.
* flash_driver_t -> struct flash_driverZachary T Welch2009-11-131-1/+1
| | | | Remove misleading typedef and redundant suffix from struct flash_driver.
* flash_sector_t -> struct flash_sectorZachary T Welch2009-11-131-1/+1
| | | | Remove misleading typedef and redundant suffix from struct flash_sector.
* faux_flash_bank_t -> struct faux_flash_bankZachary T Welch2009-11-131-6/+6
| | | | Remove misleading typedef and redundant suffix from struct faux_flash_bank.
* use FLASH_BANK_COMMAND_HANDLER macroZachary T Welch2009-11-131-1/+1
| | | | Defines all flash_bank_command handlers using the new macro.
* flash/<various>.c: remove useless declarationsZachary T Welch2009-11-091-24/+14
| | | | | | | Remove useless forward declarations. Moves flash structure definitions to end of files. Signed-off-by: Zachary T Welch <zw@superlucidity.net>
* Added the faux flash driver and target. Used for testing.Øyvind Harboe2009-10-201-0/+153