aboutsummaryrefslogtreecommitdiff
path: root/src/flash
AgeCommit message (Collapse)Author
2009-11-16Add nand_fileio_* helper APIs.Zachary T Welch
This patch provides helpers APIs that will eliminate duplicated code in the the NAND 'dump' and 'write' commands by factoring their common code into static helper functions. These helpers may be useful for creating new commands, as shown in the final patch to 'verify' flash from a file. Several previously unreported error conditions now generate messages and propogate the return codes, such as when the file fails to open and bad arguments are given. These changes will fix a possible memory leak in nand dump command, in the case that the dump file failed to open. Overall, the changes should be functionally equivalent, but the resulting code will be easier to improve and extend consistently.
2009-11-16#include "target.h" less wildlyDavid Brownell
Don't include "target.h" from more headers than necessary. This avoids needless interdependencies and duplicated include paths. Don't needlessly include it in source files, either. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-16target: less implicit inclusion of "command.h"David Brownell
Lots of files still include it, often through needless duplicate inclusion of "log.h"; sigh. This cleans up the inclusion graph a bunch, so there are fewer inclusion paths, but it doesn't change much otherwise. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-16target: don't implicitly include "algorithm.h"David Brownell
Most files in the tree seem to have ended up including this, and *quite* needlessly ... only code implementing or using downloadable algorithms actually needs these declarations. So take it out of the header files which included it, and put it in files which use it ... reduce needless interdependencies. Also: "algorithm.h" doesn't need to include "types.h" again; it already comes from a different header. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-14lpc2900.h -- remove from Makefile.am tooDavid Brownell
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-14flash: remove needless lpc2900.h headerDavid Brownell
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-13ARM7/9: rm arm7_9_get_arch_pointers()David Brownell
Remove the last external user of arm7_9_get_arch_pointers(), and that annoying downcast utility. Add an is_arm7_9() predicate. Stop returning specious success codes on various failure paths in the ARM7/ARM9 commands which used that downcast utility. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-13command_t -> struct commandZachary T Welch
Remove misleading typedef and redundant suffix from struct command.
2009-11-13command_context_t -> struct command_contextZachary T Welch
Remove misleading typedef and redundant suffix from struct command_context.
2009-11-13flash_bank_t -> struct flash_bankZachary T Welch
Remove misleading typedef and redundant suffix from struct flash_bank.
2009-11-13nand_device_t -> struct nand_deviceZachary T Welch
Remove misleading typedef and redundant suffix from struct nand_device.
2009-11-13target_t -> struct targetZachary T Welch
Remove misleading typedef and redundant suffix from struct target.
2009-11-13image_t -> struct imageZachary T Welch
Remove misleading typedef and redundant suffix from struct image. Also removes the typedef from enum image_type, as it is used in image.h only.
2009-11-13armv4_5_common_t -> struct armZachary T Welch
Remove misleading typedef and just use struct arm.
2009-11-13working_area_t -> struct working_areaZachary T Welch
Remove misleading typedef and redundant suffix from struct working_area.
2009-11-13mips_ejtag_t -> struct mips_ejtagZachary T Welch
Remove misleading typedef and redundant suffix from struct mips_ejtag.
2009-11-13mips32_common_t -> struct mips32_commonZachary T Welch
Remove misleading typedef and redundant suffix from struct mips32_common.
2009-11-13avr_common_t -> struct avr_commonZachary T Welch
Remove misleading typedef and redundant suffix from struct avr_common.
2009-11-13armv7m_algorithm_t -> struct armv7m_algorithmZachary T Welch
Remove misleading typedef and redundant suffix from struct armv7m_algorithm.
2009-11-13armv4_5_algorithm_t -> struct armv4_5_algorithmZachary T Welch
Remove misleading typedef and redundant suffix from struct armv4_5_algorithm.
2009-11-13arm_jtag_t -> struct arm_jtagZachary T Welch
Remove misleading typedef and redundant suffix from struct arm_jtag.
2009-11-13arm7_9_common_t -> struct arm7_9_commonZachary T Welch
Remove misleading typedef and redundant suffix from struct arm7_9_common.
2009-11-13reg_param_t -> struct reg_paramZachary T Welch
Remove misleading typedef and redundant suffix from struct reg_param.
2009-11-13mem_param_t -> struct mem_paramZachary T Welch
Remove misleading typedef and redundant suffix from struct mem_param.
2009-11-13remove unused aduc702x structure.Zachary T Welch
The ADUC702x_FLASH_MMIO structure was completely used, so it must die.
2009-11-13aduc702x_flash_bank_t -> struct aduc702x_flash_bankZachary T Welch
Remove misleading typedef and redundant suffix from struct aduc702x_flash_bank.
2009-11-13tms470_flash_bank_t -> struct tms470_flash_bankZachary T Welch
Remove misleading typedef and redundant suffix from struct tms470_flash_bank.
2009-11-13pic32mx_mem_layout_t -> struct pic32mx_mem_layoutZachary T Welch
Remove misleading typedef and redundant suffix from struct pic32mx_mem_layout.
2009-11-13non_cfi_t -> struct non_cfiZachary T Welch
Remove misleading typedef and redundant suffix from struct non_cfi.
2009-11-13nand_block_t -> struct nand_blockZachary T Welch
Remove misleading typedef and redundant suffix from struct nand_block.
2009-11-13str9xpec_flash_controller_t -> struct str9xpec_flash_controllerZachary T Welch
Remove misleading typedef and redundant suffix from struct str9xpec_flash_controller.
2009-11-13str9x_flash_bank_t -> struct str9x_flash_bankZachary T Welch
Remove misleading typedef and redundant suffix from struct str9x_flash_bank.
2009-11-13str7x_mem_layout_t -> struct str7x_mem_layoutZachary T Welch
Remove misleading typedef and redundant suffix from struct str7x_mem_layout.
2009-11-13str7x_flash_bank_t -> struct str7x_flash_bankZachary T Welch
Remove misleading typedef and redundant suffix from struct str7x_flash_bank.
2009-11-13stm32x_mem_layout_t -> struct stm32x_mem_layoutZachary T Welch
Remove misleading typedef and redundant suffix from struct stm32x_mem_layout.
2009-11-13stm32x_flash_bank_t -> struct stm32x_flash_bankZachary T Welch
Remove misleading typedef and redundant suffix from struct stm32x_flash_bank.
2009-11-13stm32x_options_t -> struct stm32x_optionsZachary T Welch
Remove misleading typedef and redundant suffix from struct stm32x_options.
2009-11-13stellaris_flash_bank_t -> struct stellaris_flash_bankZachary T Welch
Remove misleading typedef and redundant suffix from struct stellaris_flash_bank.
2009-11-13s3c24xx_nand_controller_t -> struct s3c24xx_nand_controllerZachary T Welch
Remove misleading typedef and redundant suffix from struct s3c24xx_nand_controller.
2009-11-13pic32mx_flash_bank_t -> struct pic32mx_flash_bankZachary T Welch
Remove misleading typedef and redundant suffix from struct pic32mx_flash_bank.
2009-11-13orion_nand_controller_t -> struct orion_nand_controllerZachary T Welch
Remove misleading typedef and redundant suffix from struct orion_nand_controller.
2009-11-13ocl_priv_t -> struct ocl_privZachary T Welch
Remove misleading typedef and redundant suffix from struct ocl_priv.
2009-11-13nand_info_t -> struct nand_infoZachary T Welch
Remove misleading typedef and redundant suffix from struct nand_info.
2009-11-13nand_manufacturer_t -> struct nand_manufacturerZachary T Welch
Remove misleading typedef and redundant suffix from struct nand_manufacturer.
2009-11-13nand_ecclayout_t -> struct nand_ecclayoutZachary T Welch
Remove misleading typedef and redundant suffix from struct nand_ecclayout.
2009-11-13nand_flash_controller_t -> struct nand_flash_controllerZachary T Welch
Remove misleading typedef and redundant suffix from struct nand_flash_controller.
2009-11-13mx3_nf_controller_t -> struct mx3_nf_controllerZachary T Welch
Remove misleading typedef and redundant suffix from struct mx3_nf_controller.
2009-11-13mflash_bank_t -> struct mflash_bankZachary T Welch
Remove misleading typedef and redundant suffix from struct mflash_bank.
2009-11-13mg_drv_info_t -> struct mg_drv_infoZachary T Welch
Remove misleading typedef and redundant suffix from struct mg_drv_info.
2009-11-13mflash_gpio_drv_t -> struct mflash_gpio_drvZachary T Welch
Remove misleading typedef and redundant suffix from struct mflash_gpio_drv.