From 0bba832713cca8e5931d5d21f37f526d0a3979cf Mon Sep 17 00:00:00 2001 From: mifi Date: Sat, 18 Apr 2009 10:08:13 +0000 Subject: The following patches was applied: - openocd-flash-static-keyword-v3.patch - openocd-lpc2000-fix-erase-obo.patch - openocd-jlink-fix-sign-ptr-warn.patch - openocd-wextra-etm.patch - openocd-wextra-jtag.patch - openocd-add-new-tap-symbols-v6.patch Many thanks to Zach Welch git-svn-id: svn://svn.berlios.de/openocd/trunk@1462 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/flash/ocl.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'src/flash/ocl.c') diff --git a/src/flash/ocl.c b/src/flash/ocl.c index 825f455f..8f2a5445 100644 --- a/src/flash/ocl.c +++ b/src/flash/ocl.c @@ -37,16 +37,16 @@ #include #include -int ocl_register_commands(struct command_context_s *cmd_ctx); -int ocl_flash_bank_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, struct flash_bank_s *bank); -int ocl_erase(struct flash_bank_s *bank, int first, int last); -int ocl_protect(struct flash_bank_s *bank, int set, int first, int last); -int ocl_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count); -int ocl_probe(struct flash_bank_s *bank); -int ocl_erase_check(struct flash_bank_s *bank); -int ocl_protect_check(struct flash_bank_s *bank); -int ocl_info(struct flash_bank_s *bank, char *buf, int buf_size); -int ocl_auto_probe(struct flash_bank_s *bank); +static int ocl_register_commands(struct command_context_s *cmd_ctx); +static int ocl_flash_bank_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, struct flash_bank_s *bank); +static int ocl_erase(struct flash_bank_s *bank, int first, int last); +static int ocl_protect(struct flash_bank_s *bank, int set, int first, int last); +static int ocl_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count); +static int ocl_probe(struct flash_bank_s *bank); +static int ocl_erase_check(struct flash_bank_s *bank); +static int ocl_protect_check(struct flash_bank_s *bank); +static int ocl_info(struct flash_bank_s *bank, char *buf, int buf_size); +static int ocl_auto_probe(struct flash_bank_s *bank); flash_driver_t ocl_flash = { @@ -70,23 +70,23 @@ typedef struct ocl_priv_s int bufalign; } ocl_priv_t; -int ocl_register_commands(struct command_context_s *cmd_ctx) +static int ocl_register_commands(struct command_context_s *cmd_ctx) { return ERROR_OK; } -int ocl_erase_check(struct flash_bank_s *bank) +static int ocl_erase_check(struct flash_bank_s *bank) { return ERROR_OK; } -int ocl_protect_check(struct flash_bank_s *bank) +static int ocl_protect_check(struct flash_bank_s *bank) { return ERROR_OK; } /* flash_bank ocl 0 0 0 0 */ -int ocl_flash_bank_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, struct flash_bank_s *bank) +static int ocl_flash_bank_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, struct flash_bank_s *bank) { int retval; armv4_5_common_t *armv4_5; @@ -110,7 +110,7 @@ int ocl_flash_bank_command(struct command_context_s *cmd_ctx, char *cmd, char ** return ERROR_OK; } -int ocl_erase(struct flash_bank_s *bank, int first, int last) +static int ocl_erase(struct flash_bank_s *bank, int first, int last) { ocl_priv_t *ocl = bank->driver_priv; int retval; @@ -165,12 +165,12 @@ int ocl_erase(struct flash_bank_s *bank, int first, int last) return ERROR_OK; } -int ocl_protect(struct flash_bank_s *bank, int set, int first, int last) +static int ocl_protect(struct flash_bank_s *bank, int set, int first, int last) { return ERROR_OK; } -int ocl_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count) +static int ocl_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count) { ocl_priv_t *ocl = bank->driver_priv; int retval; @@ -277,7 +277,7 @@ int ocl_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32 count) return ERROR_OK; } -int ocl_probe(struct flash_bank_s *bank) +static int ocl_probe(struct flash_bank_s *bank) { ocl_priv_t *ocl = bank->driver_priv; int retval; @@ -375,12 +375,12 @@ int ocl_probe(struct flash_bank_s *bank) return ERROR_OK; } -int ocl_info(struct flash_bank_s *bank, char *buf, int buf_size) +static int ocl_info(struct flash_bank_s *bank, char *buf, int buf_size) { return ERROR_OK; } -int ocl_auto_probe(struct flash_bank_s *bank) +static int ocl_auto_probe(struct flash_bank_s *bank) { ocl_priv_t *ocl = bank->driver_priv; -- cgit v1.2.3