]> git.sur5r.net Git - openocd/commitdiff
Scrub final vestiges of in_handler from mips target APIs.
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 1 Jun 2009 21:53:19 +0000 (21:53 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 1 Jun 2009 21:53:19 +0000 (21:53 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1981 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/mips_ejtag.c
src/target/mips_ejtag.h
src/target/mips_m4k.c

index 02dc653b86bb2e69d5b7b3c217aa8b63eb2df871..c4b133e0990299991771bcebc7afc2f9f26fe73b 100644 (file)
@@ -56,7 +56,7 @@ int mips_ejtag_set_instr(mips_ejtag_t *ejtag_info, int new_instr, void *delete_m
        return ERROR_OK;
 }
 
-int mips_ejtag_get_idcode(mips_ejtag_t *ejtag_info, u32 *idcode, in_handler_t handler)
+int mips_ejtag_get_idcode(mips_ejtag_t *ejtag_info, u32 *idcode)
 {
        scan_field_t field;
 
@@ -83,7 +83,7 @@ int mips_ejtag_get_idcode(mips_ejtag_t *ejtag_info, u32 *idcode, in_handler_t ha
        return ERROR_OK;
 }
 
-int mips_ejtag_get_impcode(mips_ejtag_t *ejtag_info, u32 *impcode, in_handler_t handler)
+int mips_ejtag_get_impcode(mips_ejtag_t *ejtag_info, u32 *impcode)
 {
        scan_field_t field;
 
@@ -258,7 +258,7 @@ int mips_ejtag_init(mips_ejtag_t *ejtag_info)
 {
        u32 ejtag_version;
 
-       mips_ejtag_get_impcode(ejtag_info, &ejtag_info->impcode, NULL);
+       mips_ejtag_get_impcode(ejtag_info, &ejtag_info->impcode);
        LOG_DEBUG("impcode: 0x%8.8x", ejtag_info->impcode);
 
        /* get ejtag version */
index 5ac994ac29f0aa3c9e2c4b44cd4eaf3da1548d5b..d74d808bb191bd9998daf95d6a9581eaa3252430 100644 (file)
@@ -109,8 +109,8 @@ typedef struct mips_ejtag_s
 extern int mips_ejtag_set_instr(mips_ejtag_t *ejtag_info, int new_instr, void *delete_me_and_submit_patch);
 extern int mips_ejtag_enter_debug(mips_ejtag_t *ejtag_info);
 extern int mips_ejtag_exit_debug(mips_ejtag_t *ejtag_info);
-extern int mips_ejtag_get_impcode(mips_ejtag_t *ejtag_info, u32 *impcode, in_handler_t handler);
-extern int mips_ejtag_get_idcode(mips_ejtag_t *ejtag_info, u32 *idcode, in_handler_t handler);
+extern int mips_ejtag_get_impcode(mips_ejtag_t *ejtag_info, u32 *impcode);
+extern int mips_ejtag_get_idcode(mips_ejtag_t *ejtag_info, u32 *idcode);
 extern int mips_ejtag_drscan_32(mips_ejtag_t *ejtag_info, u32 *data);
 
 extern int mips_ejtag_init(mips_ejtag_t *ejtag_info);
index 7af40c12b132be3697bb81cf30932deb94f79fa8..078e2956d203065f091b04f5f75be979bad90b77 100644 (file)
@@ -857,7 +857,7 @@ int mips_m4k_examine(struct target_s *target)
 
        if (!target_was_examined(target))
        {
-               mips_ejtag_get_idcode(ejtag_info, &idcode, NULL);
+               mips_ejtag_get_idcode(ejtag_info, &idcode);
                ejtag_info->idcode = idcode;
                
                if (((idcode >> 1) & 0x7FF) == 0x29)