openocd/src/flash
Zachary T Welch 51862bb98c fileio: improve API types
Use size_t instead of uint32_t when specifying file sizes.  Update all
consumers up through the layers to use size_t when required.  These
changes should be safe, but the higher-levels will need to be updated
further to receive the intended benefits (i.e. large file support).

Add error checking for fileio_read and file_write.  Previously, all
errors were being silently ignored, so this change might cause some
problems for some people in some cases.  However, it gives us the chance
to handle any errors that do occur at higher-levels, rather than burying
our heads in the sand.
2009-11-16 15:47:09 -08:00
..
ocl/at91sam7x src/flash: remove 'extern' and wrap headers 2009-11-09 09:44:33 -08:00
aduc702x.c target: don't implicitly include "algorithm.h" 2009-11-16 00:35:05 -08:00
arm_nandio.c target: don't implicitly include "algorithm.h" 2009-11-16 00:35:05 -08:00
arm_nandio.h target_t -> struct target 2009-11-13 11:58:14 -08:00
at91sam3.c #include "target.h" less wildly 2009-11-16 00:35:24 -08:00
at91sam3.h flash_driver_t -> struct flash_driver 2009-11-13 11:58:06 -08:00
at91sam7.c rename CEIL as DIV_ROUND_UP 2009-11-16 09:58:11 -08:00
at91sam7.h at91sam7_flash_bank_t -> struct at91sam7_flash_bank 2009-11-13 11:58:05 -08:00
avrf.c flash_command_get_bank_by_num: make COMMAND_HELPER 2009-11-16 08:44:38 -08:00
avrf.h avrf_flash_bank_t -> struct avrf_flash_bank 2009-11-13 11:58:06 -08:00
cfi.c target: don't implicitly include "algorithm.h" 2009-11-16 00:35:05 -08:00
cfi.h flash_bank_t -> struct flash_bank 2009-11-13 11:58:14 -08:00
davinci_nand.c command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
ecos.c fileio: improve API types 2009-11-16 15:47:09 -08:00
faux.c command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
flash.c fileio: improve API types 2009-11-16 15:47:09 -08:00
flash.h flash_command_get_bank_by_num: make COMMAND_HELPER 2009-11-16 08:44:38 -08:00
lpc288x.c flash_bank_t -> struct flash_bank 2009-11-13 11:58:14 -08:00
lpc288x.h lpc288x_flash_bank_t -> struct lpc288x_flash_bank 2009-11-13 11:58:06 -08:00
lpc2000.c rename CEIL as DIV_ROUND_UP 2009-11-16 09:58:11 -08:00
lpc2000.h working_area_t -> struct working_area 2009-11-13 11:58:12 -08:00
lpc2900.c fileio: improve API types 2009-11-16 15:47:09 -08:00
lpc3180_nand_controller.c command_t -> struct command 2009-11-13 13:30:50 -08:00
lpc3180_nand_controller.h #include "target.h" less wildly 2009-11-16 00:35:24 -08:00
Makefile.am lpc2900.h -- remove from Makefile.am too 2009-11-14 14:58:14 -08:00
mflash.c fileio: improve API types 2009-11-16 15:47:09 -08:00
mflash.h #include "target.h" less wildly 2009-11-16 00:35:24 -08:00
mx3_nand.c command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
mx3_nand.h target_t -> struct target 2009-11-13 11:58:14 -08:00
nand_ecc_kw.c nand_device_t -> struct nand_device 2009-11-13 11:58:14 -08:00
nand_ecc.c nand_device_t -> struct nand_device 2009-11-13 11:58:14 -08:00
nand.c fileio: improve API types 2009-11-16 15:47:09 -08:00
nand.h nand_command_get_device_by_num: make COMMAND_HELPER 2009-11-16 08:44:38 -08:00
non_cfi.c flash_bank_t -> struct flash_bank 2009-11-13 11:58:14 -08:00
non_cfi.h flash_bank_t -> struct flash_bank 2009-11-13 11:58:14 -08:00
ocl.c ARM7/9: rm arm7_9_get_arch_pointers() 2009-11-13 13:44:50 -08:00
ocl.h - added svn props for newly added files 2008-04-24 11:09:28 +00:00
orion_nand.c command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
pic32mx.c flash_command_get_bank_by_num: make COMMAND_HELPER 2009-11-16 08:44:38 -08:00
pic32mx.h working_area_t -> struct working_area 2009-11-13 11:58:12 -08:00
s3c24xx_nand.c command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
s3c24xx_nand.h command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
s3c24xx_regs_nand.h - Fixes '<<' whitespace 2009-06-23 22:41:13 +00:00
s3c2410_nand.c nand_device_t -> struct nand_device 2009-11-13 11:58:14 -08:00
s3c2412_nand.c nand_device_t -> struct nand_device 2009-11-13 11:58:14 -08:00
s3c2440_nand.c nand_device_t -> struct nand_device 2009-11-13 11:58:14 -08:00
s3c2443_nand.c nand_device_t -> struct nand_device 2009-11-13 11:58:14 -08:00
stellaris.c flash_command_get_bank_by_num: make COMMAND_HELPER 2009-11-16 08:44:38 -08:00
stellaris.h stellaris_flash_bank_t -> struct stellaris_flash_bank 2009-11-13 11:58:07 -08:00
stm32x.c flash_command_get_bank_by_num: make COMMAND_HELPER 2009-11-16 08:44:38 -08:00
stm32x.h working_area_t -> struct working_area 2009-11-13 11:58:12 -08:00
str7x.c flash_command_get_bank_by_num: make COMMAND_HELPER 2009-11-16 08:44:38 -08:00
str7x.h working_area_t -> struct working_area 2009-11-13 11:58:12 -08:00
str9x.c flash_command_get_bank_by_num: make COMMAND_HELPER 2009-11-16 08:44:38 -08:00
str9x.h working_area_t -> struct working_area 2009-11-13 11:58:12 -08:00
str9xpec.c rename CEIL as DIV_ROUND_UP 2009-11-16 09:58:11 -08:00
str9xpec.h str9xpec_flash_controller_t -> struct str9xpec_flash_controller 2009-11-13 11:58:07 -08:00
tms470.c command_t -> struct command 2009-11-13 13:30:50 -08:00
tms470.h tms470_flash_bank_t -> struct tms470_flash_bank 2009-11-13 11:58:08 -08:00