summaryrefslogtreecommitdiff
path: root/src/flash
Commit message (Collapse)AuthorAgeFilesLines
* mflash_gpio_drv_t -> struct mflash_gpio_drvZachary T Welch2009-11-132-7/+7
| | | | Remove misleading typedef and redundant suffix from struct mflash_gpio_drv.
* mflash_gpio_num_t -> struct mflash_gpio_numZachary T Welch2009-11-132-13/+13
| | | | Remove misleading typedef and redundant suffix from struct mflash_gpio_num.
* lpc3180_nand_controller_t -> struct lpc3180_nand_controllerZachary T Welch2009-11-132-16/+16
| | | | Remove misleading typedef and redundant suffix from struct lpc3180_nand_controller.
* lpc2900_flash_bank_t -> struct lpc2900_flash_bankZachary T Welch2009-11-131-15/+15
| | | | Remove misleading typedef and redundant suffix from struct lpc2900_flash_bank.
* lpc288x_flash_bank_t -> struct lpc288x_flash_bankZachary T Welch2009-11-132-8/+8
| | | | Remove misleading typedef and redundant suffix from struct lpc288x_flash_bank.
* lpc2000_flash_bank_t -> struct lpc2000_flash_bankZachary T Welch2009-11-132-9/+9
| | | | Remove misleading typedef and redundant suffix from struct lpc2000_flash_bank.
* flash_driver_t -> struct flash_driverZachary T Welch2009-11-1321-42/+42
| | | | Remove misleading typedef and redundant suffix from struct flash_driver.
* flash_sector_t -> struct flash_sectorZachary T Welch2009-11-1318-30/+30
| | | | 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.
* ecosflash_flash_bank_t -> struct ecosflash_flash_bankZachary T Welch2009-11-131-12/+12
| | | | Remove misleading typedef and redundant suffix from struct ecosflash_flash_bank.
* cfi_fixup_t -> struct cfi_fixupZachary T Welch2009-11-132-6/+6
| | | | Remove misleading typedef and redundant suffix from struct cfi_fixup.
* cfi_unlock_addresses_t -> struct cfi_unlock_addressesZachary T Welch2009-11-132-4/+4
| | | | Remove misleading typedef and redundant suffix from struct cfi_unlock_addresses.
* cfi_spansion_pri_ext_t -> struct cfi_spansion_pri_extZachary T Welch2009-11-133-15/+15
| | | | Remove misleading typedef and redundant suffix from struct cfi_spansion_pri_ext.
* cfi_atmel_pri_ext_t -> struct cfi_atmel_pri_extZachary T Welch2009-11-132-3/+3
| | | | Remove misleading typedef and redundant suffix from struct cfi_atmel_pri_ext.
* cfi_intel_pri_ext_t -> struct cfi_intel_pri_extZachary T Welch2009-11-132-6/+6
| | | | Remove misleading typedef and redundant suffix from struct cfi_intel_pri_ext.
* cfi_flash_bank_t -> struct cfi_flash_bankZachary T Welch2009-11-133-40/+40
| | | | Remove misleading typedef and redundant suffix from struct cfi_flash_bank.
* avrf_flash_bank_t -> struct avrf_flash_bankZachary T Welch2009-11-132-6/+6
| | | | Remove misleading typedef and redundant suffix from struct avrf_flash_bank.
* avrf_type_t -> struct avrf_typeZachary T Welch2009-11-132-5/+5
| | | | Remove misleading typedef and redundant suffix from struct avrf_type.
* at91sam7_flash_bank_t -> struct at91sam7_flash_bankZachary T Welch2009-11-132-16/+16
| | | | Remove misleading typedef and redundant suffix from struct at91sam7_flash_bank.
* scan_field_t -> struct scan_fieldZachary T Welch2009-11-131-10/+10
| | | | Remove useless structure typedef.
* jtag_tap_t -> struct jtag_tapZachary T Welch2009-11-133-28/+28
| | | | | Search and destroy the jtag_tap_t typedef. This also cleans up a layering violation, removing the declaration from types.h.
* fileio_t -> struct fileioZachary T Welch2009-11-134-6/+6
| | | | Remove useless structure typedef.
* command_handler_t: make argc unsignedZachary T Welch2009-11-132-8/+3
| | | | | | The number of command arguments will always be 0 or more, so use the right type in handlers. This has a cascading effect up through the layers, but the new COMMAND_HANDLER macros prevented total chaos.
* add CMD_NAME macro for command handlersZachary T Welch2009-11-131-1/+1
| | | | | By introducing the CMD_NAME macro, this parameter may be integrated as args[-1] in command.[ch], without touching any other call sites.
* use CALL_COMMAND_HANDLER instead of direct callsZachary T Welch2009-11-132-2/+4
| | | | | | By using CALL_COMMAND_HANDLER, parameters can be reordered, added, or even removed in inherited signatures, without requiring revisiting all of the various call sites.
* nand: add NAND_DEVICE_COMMAND_HANDLER macroZachary T Welch2009-11-139-23/+14
| | | | | Abstracts the extended NAND command handling to allow the function signature to be controlled by __COMMAND_HANDLER.
* use FLASH_BANK_COMMAND_HANDLER macroZachary T Welch2009-11-1318-26/+18
| | | | Defines all flash_bank_command handlers using the new macro.
* add FLASH_BANK_COMMAND_HANDLER macroZachary T Welch2009-11-131-2/+6
| | | | | | | The FLASH_BANK_COMMAND_HANDLER provides an extended command handler using the __COMMAND_HANDLER macro, whereby changing that macro is sufficient to update flash handlers with the new signature. It also enforces uniform style and scope when implementing this handler.
* s3c24xx: use COMMAND_HANDLER with command helperZachary T Welch2009-11-136-30/+21
| | | | | Add S3C24XX_DEVICE_COMMAND macros to abstract common command handler conventions.
* use COMMAND_HANDLER macro to define all commandsZachary T Welch2009-11-1316-82/+68
|
* nand: rename device to nandZachary T Welch2009-11-1213-440/+440
| | | | | | | To be more informative (and consistent with flash and pld trees), change 'device' parameter name to 'nand' in NAND source files. This change eliminates confusing 'device->device->' instance from the code, and it simplifies the forthcoming command handler patches.
* remove obsolete doxygen commentsZachary T Welch2009-11-112-49/+1
| | | | Documenting command handler parameters is redundant and pointless.
* remove more useless declarationsZachary T Welch2009-11-112-42/+16
| | | | | Removes forward declarations by moving command registration after defintion of the command handlers.
* add const keyword to some APIsZachary T Welch2009-11-115-7/+7
| | | | | | Add 'const' keyword to 'char *' parameters to allow command handlers to pass constant string arguments. These changes allow the 'args' command handler to be changed to 'const' in a subsequent patch.
* change argv to args in command handlersZachary T Welch2009-11-112-23/+23
| | | | | | | | | | | Subsequent patches expect all command handlers to use a uniform parameter naming scheme. In the entire tree, these two files used standard 'argv' instead of our non-standard 'args'. This patch opts to reduces the noise required to unify the command handlers, using dominant 'args' form. A future patch may be used to convert us back to the standard argv, but that requires coordination with all developers to minimize disruptions.
* makefiles: improve build orderZachary T Welch2009-11-111-34/+47
| | | | | | | | | | | Separates various groups of files to be built in logical succession. In each layer, the core module (target.c, nand.c, etc.) is built _after_ their helper modules (e.g. image.c, nand_ecc.c) but _before_ any of their drivers (e.g. arm966e.c, mx3_nand.c). This allows problems introduced at the bottom of the stack to result in build failures as soon as possible, as the helpers and core should wrap portions of them.
* {pic32m,stm32}x.c: remove useless declarationsZachary T Welch2009-11-092-98/+73
| | | | | | | | Remove useless forward declarations. Moves command registrations to end of files. Moves flash structure definitions to end of files. Signed-off-by: Zachary T Welch <zw@superlucidity.net>
* str{7,9}x*.c: remove useless forward declarationsZachary T Welch2009-11-093-141/+108
| | | | | | | | Remove useless forward declarations. Moves command registrations to end of files. Moves flash structure definitions to end of files. Signed-off-by: Zachary T Welch <zw@superlucidity.net>
* flash/<various>.c: remove useless declarationsZachary T Welch2009-11-093-75/+42
| | | | | | | Remove useless forward declarations. Moves flash structure definitions to end of files. Signed-off-by: Zachary T Welch <zw@superlucidity.net>
* flash/<assorted>.c: remove useless declarationsZachary T Welch2009-11-095-170/+103
| | | | | | | | Remove useless forward declarations. Moves command registrations to end of files. Moves flash structure definitions to end of files. Signed-off-by: Zachary T Welch <zw@superlucidity.net>
* flash/at91sam[37].c: remove useless declarationsZachary T Welch2009-11-092-53/+44
| | | | | | | | | | Remove useless forward declarations. Moves command registration to end of file. Moves flash structure definitions to end of files. Changes a few references to global flash structure to local refs. Signed-off-by: Zachary T Welch <zw@superlucidity.net>
* flash/lpc2???.c: remove useless declarationsZachary T Welch2009-11-093-72/+43
| | | | | | | | Remove useless forward declarations. Moves command registrations to end of files. Moves flash structure definitions to end of files. Signed-off-by: Zachary T Welch <zw@superlucidity.net>
* flash/*nand*.c: remove useless declarationsZachary T Welch2009-11-096-167/+132
| | | | | | | | Remove useless forward declarations. Moves command registration to end of files. Moves flash structure definition to end of files. Signed-off-by: Zachary T Welch <zw@superlucidity.net>
* flash/flash.c: remove forward declarationsZachary T Welch2009-11-091-57/+62
| | | | | | | | Remove useless forward declarations. Moves command registration to end of file. Moves flash structure definition to end of file. Signed-off-by: Zachary T Welch <zw@superlucidity.net>
* src/flash: remove 'extern' and wrap headersZachary T Welch2009-11-097-45/+69
| | | | | | | Removes 'extern' keywords from function prototypes in the flash headers. Wraps long lines to fit into 80 columns. Adds multiple inclusion protection for s3c2xx_nand.h.
* Overhaul time support APIZachary T Welch2009-11-093-135/+88
| | | | | | | | | | | | | | | | | | | This patch changes the duration_* API in several ways. First, it updates the API to use better names. Second, string formatting has been removed from the API (with its associated malloc). Finally, a new function added to convert the time into seconds, which can be used (or formatted) by the caller. This eliminates hidden calls to malloc that require associated calls to free(). This patch also removes the useless extern keyword from prototypes, and it eliminates the duration_t typedef (use 'struct duration'). These API also allows proper error checking, as it is possible for gettimeofday to fail in certain circumstances. The consumers have all been chased to use this new API as well, as there were relatively few cases doing this type of measurement. In most cases, the code performs additional checks for errors, but the calling code looks much cleaner in every case.
* Simplify nand indentation.Zachary T Welch2009-11-061-314/+287
| | | | | Removes check covered by new nand_command_get_device_by_num helper. Reverses logic of probe check to further reduce indentation.
* Improve flash indentation.Zachary T Welch2009-11-061-221/+210
| | | | | Removes redundant tests and reverses backwards logic to reduce the indentation level in flash.c.
* Improve str9xpec command argument parsing.Zachary T Welch2009-11-051-80/+44
|
* Improve str9x config command argument parsing.Zachary T Welch2009-11-051-11/+14
|