Scrub final vestiges of in_handler from mips target APIs.

git-svn-id: svn://svn.berlios.de/openocd/trunk@1981 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
zwelch 2009-06-01 21:53:19 +00:00
parent 7662bbeaa5
commit 337017d626
3 changed files with 6 additions and 6 deletions

View File

@ -56,7 +56,7 @@ int mips_ejtag_set_instr(mips_ejtag_t *ejtag_info, int new_instr, void *delete_m
return ERROR_OK; 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; 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; 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; scan_field_t field;
@ -258,7 +258,7 @@ int mips_ejtag_init(mips_ejtag_t *ejtag_info)
{ {
u32 ejtag_version; 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); LOG_DEBUG("impcode: 0x%8.8x", ejtag_info->impcode);
/* get ejtag version */ /* get ejtag version */

View 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_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_enter_debug(mips_ejtag_t *ejtag_info);
extern int mips_ejtag_exit_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_impcode(mips_ejtag_t *ejtag_info, u32 *impcode);
extern int mips_ejtag_get_idcode(mips_ejtag_t *ejtag_info, u32 *idcode, in_handler_t handler); 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_drscan_32(mips_ejtag_t *ejtag_info, u32 *data);
extern int mips_ejtag_init(mips_ejtag_t *ejtag_info); extern int mips_ejtag_init(mips_ejtag_t *ejtag_info);

View File

@ -857,7 +857,7 @@ int mips_m4k_examine(struct target_s *target)
if (!target_was_examined(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; ejtag_info->idcode = idcode;
if (((idcode >> 1) & 0x7FF) == 0x29) if (((idcode >> 1) & 0x7FF) == 0x29)