|
|
|
/*
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2002 ETC s.r.o.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
* 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* Written by Marcel Telka <marcel@telka.sk>, 2002.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2003-05-28 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed version number to 0.4.
* src/cmd/frequency.c (cmd_frequency_run): Added support for printing current TCK frequency.
(cmd_frequency_help): Updated help text.
* po/POTFILES.in: Updated.
* src/detect.c (find_record, detect_parts): Marked messages for translation.
* src/discovery.c (detect_register_size, discovery): Ditto.
* src/flash.c (set_flash_driver, flashcheck, flashmsbin, flashmem): Ditto.
* src/readmem.c (readmem): Ditto.
* src/flash/amd.c (amd_flash_print_info, amd_32_flash_driver): Ditto.
* src/flash/intel.c (_intel_flash_print_info, intel_flash_erase_block, intel_flash_unlock_block)
(intel_flash_program, intel_32_flash_driver, intel_16_flash_driver): Ditto.
* src/tap/cable/arcom.c (arcom_cable_driver): Ditto.
* src/tap/cable/byteblaster.c (byteblaster_cable_driver): Ditto.
* src/tap/cable/dlc5.c (dlc5_cable_driver): Ditto.
* src/tap/cable/ea253.c (ea253_cable_driver): Ditto.
* src/tap/cable/ei012.c (ei012_cable_driver): Ditto.
* src/tap/cable/keithkoep.c (keithkoep_cable_driver): Ditto.
* src/tap/cable/mpcbdm.c (mpcbdm_cable_driver): Ditto.
* src/tap/cable/wiggler.c (wiggler_cable_driver): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@447 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "register.h"
|
|
|
|
#include "tap.h"
|
|
|
|
#include "cable.h"
|
|
|
|
#include "part.h"
|
2003-03-13 Marcel Telka <marcel@telka.sk>
* include/chain.h: New file.
* src/tap/chain.c: Ditto.
* src/tap/Makefile.am (libtap_a_SOURCES): Added chain.c.
* include/Makefile.am (noinst_HEADERS): Added chain.h.
* src/jtag.c: Encapsulated parts, cable and TAP state into one object - chain.
All relevant function parameters changed to `chain'.
* src/tap/state.c: `trst' state moved to cable drivers.
All cable drivers changed.
* include/cable.h (cable_driver_t) <set_trst>: Changed return value from void to int.
All cable drivers changed.
(cable_driver_t) <get_trst>: New function.
Implemented this function to all cable drivers.
* include/part.h (part_shift_instruction, part_shift_data_register)
(parts_shift_instructions, parts_shift_data_registers): Funcions removed.
* src/part/part.c (part_shift_instruction, part_shift_data_register)
(parts_shift_instructions, parts_shift_data_registers): Ditto.
* src/tap/cable/arcom.c: Removed dependency on state.h.
* src/tap/cable/byteblaster.c: Ditto.
* src/tap/cable/dlc5.c: Ditto.
* src/tap/cable/ea253.c: Ditto.
* src/tap/cable/ei012.c: Ditto.
* src/tap/cable/mpcbdm.c: Ditto.
* src/tap/cable/wiggler.c: Ditto.
* include/state.h (bit): Replaced with common.h include.
(Unknown_State, Run_Test_Idle, Select_DR_Scan, Select_IR_Scan): Removed parentheses.
* include/tap.h (write_command): Removed unused declaration.
* src/detect.h: Removed file.
* src/jtag.h: New file with common jtag function declarations.
* src/Makefile.am (jtag_SOURCES): Removed detect.h, added jtag.h.
* src/cfi.c: Added jtag.h include. Moved common function declarations to jtag.h file.
* src/detect.c: Ditto.
* src/discovery.c: Ditto.
* src/flash.c: Ditto.
* src/help.c: Ditto.
* src/jtag.c: Ditto.
* src/readmem.c: Ditto.
* src/jtag.c (jtag_create_jtagdir, jtag_load_history, jtag_save_history, jtag_parse_line)
(jtag_readline_loop, jtag_parse_file, jtag_parse_rc): Changed functions to `static'.
* src/tap/tap.c: Added l10n support.
* po/POTFILES.in: Added src/tap/chain.c and src/tap/tap.c.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@392 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
#include "chain.h"
|
|
|
|
|
2003-03-13 Marcel Telka <marcel@telka.sk>
* include/chain.h: New file.
* src/tap/chain.c: Ditto.
* src/tap/Makefile.am (libtap_a_SOURCES): Added chain.c.
* include/Makefile.am (noinst_HEADERS): Added chain.h.
* src/jtag.c: Encapsulated parts, cable and TAP state into one object - chain.
All relevant function parameters changed to `chain'.
* src/tap/state.c: `trst' state moved to cable drivers.
All cable drivers changed.
* include/cable.h (cable_driver_t) <set_trst>: Changed return value from void to int.
All cable drivers changed.
(cable_driver_t) <get_trst>: New function.
Implemented this function to all cable drivers.
* include/part.h (part_shift_instruction, part_shift_data_register)
(parts_shift_instructions, parts_shift_data_registers): Funcions removed.
* src/part/part.c (part_shift_instruction, part_shift_data_register)
(parts_shift_instructions, parts_shift_data_registers): Ditto.
* src/tap/cable/arcom.c: Removed dependency on state.h.
* src/tap/cable/byteblaster.c: Ditto.
* src/tap/cable/dlc5.c: Ditto.
* src/tap/cable/ea253.c: Ditto.
* src/tap/cable/ei012.c: Ditto.
* src/tap/cable/mpcbdm.c: Ditto.
* src/tap/cable/wiggler.c: Ditto.
* include/state.h (bit): Replaced with common.h include.
(Unknown_State, Run_Test_Idle, Select_DR_Scan, Select_IR_Scan): Removed parentheses.
* include/tap.h (write_command): Removed unused declaration.
* src/detect.h: Removed file.
* src/jtag.h: New file with common jtag function declarations.
* src/Makefile.am (jtag_SOURCES): Removed detect.h, added jtag.h.
* src/cfi.c: Added jtag.h include. Moved common function declarations to jtag.h file.
* src/detect.c: Ditto.
* src/discovery.c: Ditto.
* src/flash.c: Ditto.
* src/help.c: Ditto.
* src/jtag.c: Ditto.
* src/readmem.c: Ditto.
* src/jtag.c (jtag_create_jtagdir, jtag_load_history, jtag_save_history, jtag_parse_line)
(jtag_readline_loop, jtag_parse_file, jtag_parse_rc): Changed functions to `static'.
* src/tap/tap.c: Added l10n support.
* po/POTFILES.in: Added src/tap/chain.c and src/tap/tap.c.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@392 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
#include "jtag.h"
|
|
|
|
|
|
|
|
struct id_record {
|
|
|
|
char name[20];
|
|
|
|
char fullname[100];
|
|
|
|
};
|
|
|
|
|
|
|
|
static int
|
|
|
|
find_record( char *filename, tap_register *key, struct id_record *idr )
|
|
|
|
{
|
|
|
|
FILE *file;
|
|
|
|
tap_register *tr;
|
|
|
|
int r = 0;
|
|
|
|
|
|
|
|
file = fopen( filename, "r" );
|
|
|
|
if (!file) {
|
2003-05-28 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed version number to 0.4.
* src/cmd/frequency.c (cmd_frequency_run): Added support for printing current TCK frequency.
(cmd_frequency_help): Updated help text.
* po/POTFILES.in: Updated.
* src/detect.c (find_record, detect_parts): Marked messages for translation.
* src/discovery.c (detect_register_size, discovery): Ditto.
* src/flash.c (set_flash_driver, flashcheck, flashmsbin, flashmem): Ditto.
* src/readmem.c (readmem): Ditto.
* src/flash/amd.c (amd_flash_print_info, amd_32_flash_driver): Ditto.
* src/flash/intel.c (_intel_flash_print_info, intel_flash_erase_block, intel_flash_unlock_block)
(intel_flash_program, intel_32_flash_driver, intel_16_flash_driver): Ditto.
* src/tap/cable/arcom.c (arcom_cable_driver): Ditto.
* src/tap/cable/byteblaster.c (byteblaster_cable_driver): Ditto.
* src/tap/cable/dlc5.c (dlc5_cable_driver): Ditto.
* src/tap/cable/ea253.c (ea253_cable_driver): Ditto.
* src/tap/cable/ei012.c (ei012_cable_driver): Ditto.
* src/tap/cable/keithkoep.c (keithkoep_cable_driver): Ditto.
* src/tap/cable/mpcbdm.c (mpcbdm_cable_driver): Ditto.
* src/tap/cable/wiggler.c (wiggler_cable_driver): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@447 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
printf( _("Cannot open %s\n"), filename );
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
tr = register_alloc( key->len );
|
|
|
|
|
|
|
|
for (;;) {
|
|
|
|
char *p;
|
|
|
|
char *s;
|
|
|
|
char line[1024];
|
|
|
|
|
|
|
|
if (fgets( line, 1024, file ) == NULL)
|
|
|
|
break;
|
|
|
|
|
|
|
|
/* remove comment and nl from the line */
|
|
|
|
p = strpbrk( line, "#\n" );
|
|
|
|
if (p)
|
|
|
|
*p = '\0';
|
|
|
|
|
|
|
|
p = line;
|
|
|
|
|
|
|
|
/* skip whitespace */
|
|
|
|
while (*p && isspace(*p))
|
|
|
|
p++;
|
|
|
|
|
|
|
|
/* remove ending whitespace */
|
|
|
|
s = strchr( p, '\0' );
|
|
|
|
while (s != p) {
|
|
|
|
if (!isspace(*--s))
|
|
|
|
break;
|
|
|
|
*s = '\0';
|
|
|
|
}
|
|
|
|
|
|
|
|
/* line is empty? */
|
|
|
|
if (!*p)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
/* find end of field */
|
|
|
|
s = p;
|
|
|
|
while (*s && !isspace(*s))
|
|
|
|
s++;
|
|
|
|
if (*s)
|
|
|
|
*s++ = '\0';
|
|
|
|
|
|
|
|
/* test field length */
|
|
|
|
if (strlen( p ) != key->len)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
/* match */
|
|
|
|
register_init( tr, p );
|
|
|
|
if (register_compare( tr, key ))
|
|
|
|
continue;
|
|
|
|
|
|
|
|
/* next field */
|
|
|
|
p = s;
|
|
|
|
|
|
|
|
/* skip whitespace */
|
|
|
|
while (*p && isspace(*p))
|
|
|
|
p++;
|
|
|
|
|
|
|
|
/* line is empty? */
|
|
|
|
if (!*p)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
/* find end of field */
|
|
|
|
s = p;
|
|
|
|
while (*s && !isspace(*s))
|
|
|
|
s++;
|
|
|
|
if (*s)
|
|
|
|
*s++ = '\0';
|
|
|
|
|
|
|
|
/* test field length */
|
|
|
|
if (strlen( p ) >= sizeof idr->name)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
/* copy name */
|
|
|
|
strcpy( idr->name, p );
|
|
|
|
|
|
|
|
/* next field */
|
|
|
|
p = s;
|
|
|
|
|
|
|
|
/* skip whitespace */
|
|
|
|
while (*p && isspace(*p))
|
|
|
|
p++;
|
|
|
|
|
|
|
|
/* line is empty? */
|
|
|
|
if (!*p)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
/* test field length */
|
|
|
|
if (strlen( p ) >= sizeof idr->fullname)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
/* copy fullname */
|
|
|
|
strcpy( idr->fullname, p );
|
|
|
|
|
|
|
|
r = 1;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
fclose( file );
|
|
|
|
|
|
|
|
register_free( tr );
|
|
|
|
|
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
|
|
|
parts_t *
|
2003-03-13 Marcel Telka <marcel@telka.sk>
* include/chain.h: New file.
* src/tap/chain.c: Ditto.
* src/tap/Makefile.am (libtap_a_SOURCES): Added chain.c.
* include/Makefile.am (noinst_HEADERS): Added chain.h.
* src/jtag.c: Encapsulated parts, cable and TAP state into one object - chain.
All relevant function parameters changed to `chain'.
* src/tap/state.c: `trst' state moved to cable drivers.
All cable drivers changed.
* include/cable.h (cable_driver_t) <set_trst>: Changed return value from void to int.
All cable drivers changed.
(cable_driver_t) <get_trst>: New function.
Implemented this function to all cable drivers.
* include/part.h (part_shift_instruction, part_shift_data_register)
(parts_shift_instructions, parts_shift_data_registers): Funcions removed.
* src/part/part.c (part_shift_instruction, part_shift_data_register)
(parts_shift_instructions, parts_shift_data_registers): Ditto.
* src/tap/cable/arcom.c: Removed dependency on state.h.
* src/tap/cable/byteblaster.c: Ditto.
* src/tap/cable/dlc5.c: Ditto.
* src/tap/cable/ea253.c: Ditto.
* src/tap/cable/ei012.c: Ditto.
* src/tap/cable/mpcbdm.c: Ditto.
* src/tap/cable/wiggler.c: Ditto.
* include/state.h (bit): Replaced with common.h include.
(Unknown_State, Run_Test_Idle, Select_DR_Scan, Select_IR_Scan): Removed parentheses.
* include/tap.h (write_command): Removed unused declaration.
* src/detect.h: Removed file.
* src/jtag.h: New file with common jtag function declarations.
* src/Makefile.am (jtag_SOURCES): Removed detect.h, added jtag.h.
* src/cfi.c: Added jtag.h include. Moved common function declarations to jtag.h file.
* src/detect.c: Ditto.
* src/discovery.c: Ditto.
* src/flash.c: Ditto.
* src/help.c: Ditto.
* src/jtag.c: Ditto.
* src/readmem.c: Ditto.
* src/jtag.c (jtag_create_jtagdir, jtag_load_history, jtag_save_history, jtag_parse_line)
(jtag_readline_loop, jtag_parse_file, jtag_parse_rc): Changed functions to `static'.
* src/tap/tap.c: Added l10n support.
* po/POTFILES.in: Added src/tap/chain.c and src/tap/tap.c.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@392 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
detect_parts( chain_t *chain, char *db_path )
|
|
|
|
{
|
|
|
|
char data_path[1024];
|
|
|
|
char manufacturer[MAXLEN_MANUFACTURER + 1];
|
|
|
|
char partname[MAXLEN_PART + 1];
|
|
|
|
char stepping[MAXLEN_STEPPING + 1];
|
|
|
|
|
|
|
|
tap_register *zeros = register_fill( register_alloc( 32 ), 0 );
|
|
|
|
tap_register *ones = register_fill( register_alloc( 32 ), 1 );
|
|
|
|
tap_register *id = register_alloc( 32 );
|
|
|
|
parts_t *ps = parts_alloc();
|
|
|
|
|
|
|
|
if (!zeros || !ones || !id || !ps) {
|
2003-05-28 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed version number to 0.4.
* src/cmd/frequency.c (cmd_frequency_run): Added support for printing current TCK frequency.
(cmd_frequency_help): Updated help text.
* po/POTFILES.in: Updated.
* src/detect.c (find_record, detect_parts): Marked messages for translation.
* src/discovery.c (detect_register_size, discovery): Ditto.
* src/flash.c (set_flash_driver, flashcheck, flashmsbin, flashmem): Ditto.
* src/readmem.c (readmem): Ditto.
* src/flash/amd.c (amd_flash_print_info, amd_32_flash_driver): Ditto.
* src/flash/intel.c (_intel_flash_print_info, intel_flash_erase_block, intel_flash_unlock_block)
(intel_flash_program, intel_32_flash_driver, intel_16_flash_driver): Ditto.
* src/tap/cable/arcom.c (arcom_cable_driver): Ditto.
* src/tap/cable/byteblaster.c (byteblaster_cable_driver): Ditto.
* src/tap/cable/dlc5.c (dlc5_cable_driver): Ditto.
* src/tap/cable/ea253.c (ea253_cable_driver): Ditto.
* src/tap/cable/ei012.c (ei012_cable_driver): Ditto.
* src/tap/cable/keithkoep.c (keithkoep_cable_driver): Ditto.
* src/tap/cable/mpcbdm.c (mpcbdm_cable_driver): Ditto.
* src/tap/cable/wiggler.c (wiggler_cable_driver): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@447 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
printf( _("%s: out of memory\n"), __FUNCTION__ );
|
|
|
|
|
|
|
|
register_free( zeros );
|
|
|
|
register_free( ones );
|
|
|
|
register_free( id );
|
|
|
|
parts_free( ps );
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2003-03-13 Marcel Telka <marcel@telka.sk>
* include/chain.h: New file.
* src/tap/chain.c: Ditto.
* src/tap/Makefile.am (libtap_a_SOURCES): Added chain.c.
* include/Makefile.am (noinst_HEADERS): Added chain.h.
* src/jtag.c: Encapsulated parts, cable and TAP state into one object - chain.
All relevant function parameters changed to `chain'.
* src/tap/state.c: `trst' state moved to cable drivers.
All cable drivers changed.
* include/cable.h (cable_driver_t) <set_trst>: Changed return value from void to int.
All cable drivers changed.
(cable_driver_t) <get_trst>: New function.
Implemented this function to all cable drivers.
* include/part.h (part_shift_instruction, part_shift_data_register)
(parts_shift_instructions, parts_shift_data_registers): Funcions removed.
* src/part/part.c (part_shift_instruction, part_shift_data_register)
(parts_shift_instructions, parts_shift_data_registers): Ditto.
* src/tap/cable/arcom.c: Removed dependency on state.h.
* src/tap/cable/byteblaster.c: Ditto.
* src/tap/cable/dlc5.c: Ditto.
* src/tap/cable/ea253.c: Ditto.
* src/tap/cable/ei012.c: Ditto.
* src/tap/cable/mpcbdm.c: Ditto.
* src/tap/cable/wiggler.c: Ditto.
* include/state.h (bit): Replaced with common.h include.
(Unknown_State, Run_Test_Idle, Select_DR_Scan, Select_IR_Scan): Removed parentheses.
* include/tap.h (write_command): Removed unused declaration.
* src/detect.h: Removed file.
* src/jtag.h: New file with common jtag function declarations.
* src/Makefile.am (jtag_SOURCES): Removed detect.h, added jtag.h.
* src/cfi.c: Added jtag.h include. Moved common function declarations to jtag.h file.
* src/detect.c: Ditto.
* src/discovery.c: Ditto.
* src/flash.c: Ditto.
* src/help.c: Ditto.
* src/jtag.c: Ditto.
* src/readmem.c: Ditto.
* src/jtag.c (jtag_create_jtagdir, jtag_load_history, jtag_save_history, jtag_parse_line)
(jtag_readline_loop, jtag_parse_file, jtag_parse_rc): Changed functions to `static'.
* src/tap/tap.c: Added l10n support.
* po/POTFILES.in: Added src/tap/chain.c and src/tap/tap.c.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@392 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
tap_reset( chain );
|
|
|
|
|
2003-03-13 Marcel Telka <marcel@telka.sk>
* include/chain.h: New file.
* src/tap/chain.c: Ditto.
* src/tap/Makefile.am (libtap_a_SOURCES): Added chain.c.
* include/Makefile.am (noinst_HEADERS): Added chain.h.
* src/jtag.c: Encapsulated parts, cable and TAP state into one object - chain.
All relevant function parameters changed to `chain'.
* src/tap/state.c: `trst' state moved to cable drivers.
All cable drivers changed.
* include/cable.h (cable_driver_t) <set_trst>: Changed return value from void to int.
All cable drivers changed.
(cable_driver_t) <get_trst>: New function.
Implemented this function to all cable drivers.
* include/part.h (part_shift_instruction, part_shift_data_register)
(parts_shift_instructions, parts_shift_data_registers): Funcions removed.
* src/part/part.c (part_shift_instruction, part_shift_data_register)
(parts_shift_instructions, parts_shift_data_registers): Ditto.
* src/tap/cable/arcom.c: Removed dependency on state.h.
* src/tap/cable/byteblaster.c: Ditto.
* src/tap/cable/dlc5.c: Ditto.
* src/tap/cable/ea253.c: Ditto.
* src/tap/cable/ei012.c: Ditto.
* src/tap/cable/mpcbdm.c: Ditto.
* src/tap/cable/wiggler.c: Ditto.
* include/state.h (bit): Replaced with common.h include.
(Unknown_State, Run_Test_Idle, Select_DR_Scan, Select_IR_Scan): Removed parentheses.
* include/tap.h (write_command): Removed unused declaration.
* src/detect.h: Removed file.
* src/jtag.h: New file with common jtag function declarations.
* src/Makefile.am (jtag_SOURCES): Removed detect.h, added jtag.h.
* src/cfi.c: Added jtag.h include. Moved common function declarations to jtag.h file.
* src/detect.c: Ditto.
* src/discovery.c: Ditto.
* src/flash.c: Ditto.
* src/help.c: Ditto.
* src/jtag.c: Ditto.
* src/readmem.c: Ditto.
* src/jtag.c (jtag_create_jtagdir, jtag_load_history, jtag_save_history, jtag_parse_line)
(jtag_readline_loop, jtag_parse_file, jtag_parse_rc): Changed functions to `static'.
* src/tap/tap.c: Added l10n support.
* po/POTFILES.in: Added src/tap/chain.c and src/tap/tap.c.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@392 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
tap_capture_dr( chain );
|
|
|
|
for (;;) {
|
|
|
|
tap_register *key;
|
|
|
|
struct id_record idr;
|
|
|
|
char *p;
|
|
|
|
FILE *f;
|
|
|
|
part_t *part;
|
|
|
|
|
2003-03-13 Marcel Telka <marcel@telka.sk>
* include/chain.h: New file.
* src/tap/chain.c: Ditto.
* src/tap/Makefile.am (libtap_a_SOURCES): Added chain.c.
* include/Makefile.am (noinst_HEADERS): Added chain.h.
* src/jtag.c: Encapsulated parts, cable and TAP state into one object - chain.
All relevant function parameters changed to `chain'.
* src/tap/state.c: `trst' state moved to cable drivers.
All cable drivers changed.
* include/cable.h (cable_driver_t) <set_trst>: Changed return value from void to int.
All cable drivers changed.
(cable_driver_t) <get_trst>: New function.
Implemented this function to all cable drivers.
* include/part.h (part_shift_instruction, part_shift_data_register)
(parts_shift_instructions, parts_shift_data_registers): Funcions removed.
* src/part/part.c (part_shift_instruction, part_shift_data_register)
(parts_shift_instructions, parts_shift_data_registers): Ditto.
* src/tap/cable/arcom.c: Removed dependency on state.h.
* src/tap/cable/byteblaster.c: Ditto.
* src/tap/cable/dlc5.c: Ditto.
* src/tap/cable/ea253.c: Ditto.
* src/tap/cable/ei012.c: Ditto.
* src/tap/cable/mpcbdm.c: Ditto.
* src/tap/cable/wiggler.c: Ditto.
* include/state.h (bit): Replaced with common.h include.
(Unknown_State, Run_Test_Idle, Select_DR_Scan, Select_IR_Scan): Removed parentheses.
* include/tap.h (write_command): Removed unused declaration.
* src/detect.h: Removed file.
* src/jtag.h: New file with common jtag function declarations.
* src/Makefile.am (jtag_SOURCES): Removed detect.h, added jtag.h.
* src/cfi.c: Added jtag.h include. Moved common function declarations to jtag.h file.
* src/detect.c: Ditto.
* src/discovery.c: Ditto.
* src/flash.c: Ditto.
* src/help.c: Ditto.
* src/jtag.c: Ditto.
* src/readmem.c: Ditto.
* src/jtag.c (jtag_create_jtagdir, jtag_load_history, jtag_save_history, jtag_parse_line)
(jtag_readline_loop, jtag_parse_file, jtag_parse_rc): Changed functions to `static'.
* src/tap/tap.c: Added l10n support.
* po/POTFILES.in: Added src/tap/chain.c and src/tap/tap.c.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@392 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
tap_shift_register( chain, zeros, id, 0 );
|
|
|
|
if (!register_compare( id, zeros ))
|
|
|
|
break; /* end of chain */
|
|
|
|
|
|
|
|
if (!register_compare( ones, id )) {
|
2003-05-28 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed version number to 0.4.
* src/cmd/frequency.c (cmd_frequency_run): Added support for printing current TCK frequency.
(cmd_frequency_help): Updated help text.
* po/POTFILES.in: Updated.
* src/detect.c (find_record, detect_parts): Marked messages for translation.
* src/discovery.c (detect_register_size, discovery): Ditto.
* src/flash.c (set_flash_driver, flashcheck, flashmsbin, flashmem): Ditto.
* src/readmem.c (readmem): Ditto.
* src/flash/amd.c (amd_flash_print_info, amd_32_flash_driver): Ditto.
* src/flash/intel.c (_intel_flash_print_info, intel_flash_erase_block, intel_flash_unlock_block)
(intel_flash_program, intel_32_flash_driver, intel_16_flash_driver): Ditto.
* src/tap/cable/arcom.c (arcom_cable_driver): Ditto.
* src/tap/cable/byteblaster.c (byteblaster_cable_driver): Ditto.
* src/tap/cable/dlc5.c (dlc5_cable_driver): Ditto.
* src/tap/cable/ea253.c (ea253_cable_driver): Ditto.
* src/tap/cable/ei012.c (ei012_cable_driver): Ditto.
* src/tap/cable/keithkoep.c (keithkoep_cable_driver): Ditto.
* src/tap/cable/mpcbdm.c (mpcbdm_cable_driver): Ditto.
* src/tap/cable/wiggler.c (wiggler_cable_driver): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@447 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
printf( _("%s: bad JTAG connection (TDO is 1)\n"), __FUNCTION__ );
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2003-05-28 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed version number to 0.4.
* src/cmd/frequency.c (cmd_frequency_run): Added support for printing current TCK frequency.
(cmd_frequency_help): Updated help text.
* po/POTFILES.in: Updated.
* src/detect.c (find_record, detect_parts): Marked messages for translation.
* src/discovery.c (detect_register_size, discovery): Ditto.
* src/flash.c (set_flash_driver, flashcheck, flashmsbin, flashmem): Ditto.
* src/readmem.c (readmem): Ditto.
* src/flash/amd.c (amd_flash_print_info, amd_32_flash_driver): Ditto.
* src/flash/intel.c (_intel_flash_print_info, intel_flash_erase_block, intel_flash_unlock_block)
(intel_flash_program, intel_32_flash_driver, intel_16_flash_driver): Ditto.
* src/tap/cable/arcom.c (arcom_cable_driver): Ditto.
* src/tap/cable/byteblaster.c (byteblaster_cable_driver): Ditto.
* src/tap/cable/dlc5.c (dlc5_cable_driver): Ditto.
* src/tap/cable/ea253.c (ea253_cable_driver): Ditto.
* src/tap/cable/ei012.c (ei012_cable_driver): Ditto.
* src/tap/cable/keithkoep.c (keithkoep_cable_driver): Ditto.
* src/tap/cable/mpcbdm.c (mpcbdm_cable_driver): Ditto.
* src/tap/cable/wiggler.c (wiggler_cable_driver): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@447 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
printf( _("Device Id: %s\n"), register_get_string( id ) );
|
|
|
|
|
|
|
|
strcpy( data_path, db_path ); /* FIXME: Buffer overrun */
|
|
|
|
|
|
|
|
/* manufacturers */
|
|
|
|
strcat( data_path, "/MANUFACTURERS" );
|
|
|
|
|
|
|
|
key = register_alloc( 11 );
|
|
|
|
memcpy( key->data, &id->data[1], key->len );
|
|
|
|
if (!find_record( data_path, key, &idr )) {
|
2003-05-28 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed version number to 0.4.
* src/cmd/frequency.c (cmd_frequency_run): Added support for printing current TCK frequency.
(cmd_frequency_help): Updated help text.
* po/POTFILES.in: Updated.
* src/detect.c (find_record, detect_parts): Marked messages for translation.
* src/discovery.c (detect_register_size, discovery): Ditto.
* src/flash.c (set_flash_driver, flashcheck, flashmsbin, flashmem): Ditto.
* src/readmem.c (readmem): Ditto.
* src/flash/amd.c (amd_flash_print_info, amd_32_flash_driver): Ditto.
* src/flash/intel.c (_intel_flash_print_info, intel_flash_erase_block, intel_flash_unlock_block)
(intel_flash_program, intel_32_flash_driver, intel_16_flash_driver): Ditto.
* src/tap/cable/arcom.c (arcom_cable_driver): Ditto.
* src/tap/cable/byteblaster.c (byteblaster_cable_driver): Ditto.
* src/tap/cable/dlc5.c (dlc5_cable_driver): Ditto.
* src/tap/cable/ea253.c (ea253_cable_driver): Ditto.
* src/tap/cable/ei012.c (ei012_cable_driver): Ditto.
* src/tap/cable/keithkoep.c (keithkoep_cable_driver): Ditto.
* src/tap/cable/mpcbdm.c (mpcbdm_cable_driver): Ditto.
* src/tap/cable/wiggler.c (wiggler_cable_driver): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@447 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
printf( _(" Unknown manufacturer!\n") );
|
|
|
|
register_free( key );
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
register_free( key );
|
|
|
|
|
2003-05-28 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed version number to 0.4.
* src/cmd/frequency.c (cmd_frequency_run): Added support for printing current TCK frequency.
(cmd_frequency_help): Updated help text.
* po/POTFILES.in: Updated.
* src/detect.c (find_record, detect_parts): Marked messages for translation.
* src/discovery.c (detect_register_size, discovery): Ditto.
* src/flash.c (set_flash_driver, flashcheck, flashmsbin, flashmem): Ditto.
* src/readmem.c (readmem): Ditto.
* src/flash/amd.c (amd_flash_print_info, amd_32_flash_driver): Ditto.
* src/flash/intel.c (_intel_flash_print_info, intel_flash_erase_block, intel_flash_unlock_block)
(intel_flash_program, intel_32_flash_driver, intel_16_flash_driver): Ditto.
* src/tap/cable/arcom.c (arcom_cable_driver): Ditto.
* src/tap/cable/byteblaster.c (byteblaster_cable_driver): Ditto.
* src/tap/cable/dlc5.c (dlc5_cable_driver): Ditto.
* src/tap/cable/ea253.c (ea253_cable_driver): Ditto.
* src/tap/cable/ei012.c (ei012_cable_driver): Ditto.
* src/tap/cable/keithkoep.c (keithkoep_cable_driver): Ditto.
* src/tap/cable/mpcbdm.c (mpcbdm_cable_driver): Ditto.
* src/tap/cable/wiggler.c (wiggler_cable_driver): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@447 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
printf( _(" Manufacturer: %s\n"), idr.fullname );
|
|
|
|
if (strlen( idr.fullname ) > MAXLEN_MANUFACTURER)
|
2003-05-28 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed version number to 0.4.
* src/cmd/frequency.c (cmd_frequency_run): Added support for printing current TCK frequency.
(cmd_frequency_help): Updated help text.
* po/POTFILES.in: Updated.
* src/detect.c (find_record, detect_parts): Marked messages for translation.
* src/discovery.c (detect_register_size, discovery): Ditto.
* src/flash.c (set_flash_driver, flashcheck, flashmsbin, flashmem): Ditto.
* src/readmem.c (readmem): Ditto.
* src/flash/amd.c (amd_flash_print_info, amd_32_flash_driver): Ditto.
* src/flash/intel.c (_intel_flash_print_info, intel_flash_erase_block, intel_flash_unlock_block)
(intel_flash_program, intel_32_flash_driver, intel_16_flash_driver): Ditto.
* src/tap/cable/arcom.c (arcom_cable_driver): Ditto.
* src/tap/cable/byteblaster.c (byteblaster_cable_driver): Ditto.
* src/tap/cable/dlc5.c (dlc5_cable_driver): Ditto.
* src/tap/cable/ea253.c (ea253_cable_driver): Ditto.
* src/tap/cable/ei012.c (ei012_cable_driver): Ditto.
* src/tap/cable/keithkoep.c (keithkoep_cable_driver): Ditto.
* src/tap/cable/mpcbdm.c (mpcbdm_cable_driver): Ditto.
* src/tap/cable/wiggler.c (wiggler_cable_driver): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@447 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
printf( _("Warning: Manufacturer too long\n") );
|
|
|
|
strncpy( manufacturer, idr.fullname, MAXLEN_MANUFACTURER );
|
|
|
|
manufacturer[MAXLEN_MANUFACTURER] = '\0';
|
|
|
|
|
|
|
|
/* parts */
|
|
|
|
p = strrchr( data_path, '/' );
|
|
|
|
if (p)
|
|
|
|
p[1] = '\0';
|
|
|
|
else
|
|
|
|
data_path[0] = '\0';
|
|
|
|
strcat( data_path, idr.name );
|
|
|
|
strcat( data_path, "/PARTS" );
|
|
|
|
|
|
|
|
key = register_alloc( 16 );
|
|
|
|
memcpy( key->data, &id->data[12], key->len );
|
|
|
|
if (!find_record( data_path, key, &idr )) {
|
2003-05-28 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed version number to 0.4.
* src/cmd/frequency.c (cmd_frequency_run): Added support for printing current TCK frequency.
(cmd_frequency_help): Updated help text.
* po/POTFILES.in: Updated.
* src/detect.c (find_record, detect_parts): Marked messages for translation.
* src/discovery.c (detect_register_size, discovery): Ditto.
* src/flash.c (set_flash_driver, flashcheck, flashmsbin, flashmem): Ditto.
* src/readmem.c (readmem): Ditto.
* src/flash/amd.c (amd_flash_print_info, amd_32_flash_driver): Ditto.
* src/flash/intel.c (_intel_flash_print_info, intel_flash_erase_block, intel_flash_unlock_block)
(intel_flash_program, intel_32_flash_driver, intel_16_flash_driver): Ditto.
* src/tap/cable/arcom.c (arcom_cable_driver): Ditto.
* src/tap/cable/byteblaster.c (byteblaster_cable_driver): Ditto.
* src/tap/cable/dlc5.c (dlc5_cable_driver): Ditto.
* src/tap/cable/ea253.c (ea253_cable_driver): Ditto.
* src/tap/cable/ei012.c (ei012_cable_driver): Ditto.
* src/tap/cable/keithkoep.c (keithkoep_cable_driver): Ditto.
* src/tap/cable/mpcbdm.c (mpcbdm_cable_driver): Ditto.
* src/tap/cable/wiggler.c (wiggler_cable_driver): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@447 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
printf( _(" Unknown part!\n") );
|
|
|
|
register_free( key );
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
register_free( key );
|
|
|
|
|
|
|
|
printf( " Part: %s\n", idr.fullname );
|
|
|
|
if (strlen( idr.fullname ) > MAXLEN_PART)
|
2003-05-28 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed version number to 0.4.
* src/cmd/frequency.c (cmd_frequency_run): Added support for printing current TCK frequency.
(cmd_frequency_help): Updated help text.
* po/POTFILES.in: Updated.
* src/detect.c (find_record, detect_parts): Marked messages for translation.
* src/discovery.c (detect_register_size, discovery): Ditto.
* src/flash.c (set_flash_driver, flashcheck, flashmsbin, flashmem): Ditto.
* src/readmem.c (readmem): Ditto.
* src/flash/amd.c (amd_flash_print_info, amd_32_flash_driver): Ditto.
* src/flash/intel.c (_intel_flash_print_info, intel_flash_erase_block, intel_flash_unlock_block)
(intel_flash_program, intel_32_flash_driver, intel_16_flash_driver): Ditto.
* src/tap/cable/arcom.c (arcom_cable_driver): Ditto.
* src/tap/cable/byteblaster.c (byteblaster_cable_driver): Ditto.
* src/tap/cable/dlc5.c (dlc5_cable_driver): Ditto.
* src/tap/cable/ea253.c (ea253_cable_driver): Ditto.
* src/tap/cable/ei012.c (ei012_cable_driver): Ditto.
* src/tap/cable/keithkoep.c (keithkoep_cable_driver): Ditto.
* src/tap/cable/mpcbdm.c (mpcbdm_cable_driver): Ditto.
* src/tap/cable/wiggler.c (wiggler_cable_driver): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@447 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
printf( _("Warning: Part too long\n") );
|
|
|
|
strncpy( partname, idr.fullname, MAXLEN_PART );
|
|
|
|
partname[MAXLEN_PART] = '\0';
|
|
|
|
|
|
|
|
/* steppings */
|
|
|
|
p = strrchr( data_path, '/' );
|
|
|
|
if (p)
|
|
|
|
p[1] = '\0';
|
|
|
|
else
|
|
|
|
data_path[0] = '\0';
|
|
|
|
strcat( data_path, idr.name );
|
|
|
|
strcat( data_path, "/STEPPINGS" );
|
|
|
|
|
|
|
|
key = register_alloc( 4 );
|
|
|
|
memcpy( key->data, &id->data[28], key->len );
|
|
|
|
if (!find_record( data_path, key, &idr )) {
|
2003-05-28 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed version number to 0.4.
* src/cmd/frequency.c (cmd_frequency_run): Added support for printing current TCK frequency.
(cmd_frequency_help): Updated help text.
* po/POTFILES.in: Updated.
* src/detect.c (find_record, detect_parts): Marked messages for translation.
* src/discovery.c (detect_register_size, discovery): Ditto.
* src/flash.c (set_flash_driver, flashcheck, flashmsbin, flashmem): Ditto.
* src/readmem.c (readmem): Ditto.
* src/flash/amd.c (amd_flash_print_info, amd_32_flash_driver): Ditto.
* src/flash/intel.c (_intel_flash_print_info, intel_flash_erase_block, intel_flash_unlock_block)
(intel_flash_program, intel_32_flash_driver, intel_16_flash_driver): Ditto.
* src/tap/cable/arcom.c (arcom_cable_driver): Ditto.
* src/tap/cable/byteblaster.c (byteblaster_cable_driver): Ditto.
* src/tap/cable/dlc5.c (dlc5_cable_driver): Ditto.
* src/tap/cable/ea253.c (ea253_cable_driver): Ditto.
* src/tap/cable/ei012.c (ei012_cable_driver): Ditto.
* src/tap/cable/keithkoep.c (keithkoep_cable_driver): Ditto.
* src/tap/cable/mpcbdm.c (mpcbdm_cable_driver): Ditto.
* src/tap/cable/wiggler.c (wiggler_cable_driver): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@447 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
printf( _(" Unknown stepping!\n") );
|
|
|
|
register_free( key );
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
register_free( key );
|
|
|
|
|
2003-05-28 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed version number to 0.4.
* src/cmd/frequency.c (cmd_frequency_run): Added support for printing current TCK frequency.
(cmd_frequency_help): Updated help text.
* po/POTFILES.in: Updated.
* src/detect.c (find_record, detect_parts): Marked messages for translation.
* src/discovery.c (detect_register_size, discovery): Ditto.
* src/flash.c (set_flash_driver, flashcheck, flashmsbin, flashmem): Ditto.
* src/readmem.c (readmem): Ditto.
* src/flash/amd.c (amd_flash_print_info, amd_32_flash_driver): Ditto.
* src/flash/intel.c (_intel_flash_print_info, intel_flash_erase_block, intel_flash_unlock_block)
(intel_flash_program, intel_32_flash_driver, intel_16_flash_driver): Ditto.
* src/tap/cable/arcom.c (arcom_cable_driver): Ditto.
* src/tap/cable/byteblaster.c (byteblaster_cable_driver): Ditto.
* src/tap/cable/dlc5.c (dlc5_cable_driver): Ditto.
* src/tap/cable/ea253.c (ea253_cable_driver): Ditto.
* src/tap/cable/ei012.c (ei012_cable_driver): Ditto.
* src/tap/cable/keithkoep.c (keithkoep_cable_driver): Ditto.
* src/tap/cable/mpcbdm.c (mpcbdm_cable_driver): Ditto.
* src/tap/cable/wiggler.c (wiggler_cable_driver): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@447 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
printf( _(" Stepping: %s\n"), idr.fullname );
|
|
|
|
if (strlen( idr.fullname ) > MAXLEN_STEPPING)
|
2003-05-28 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed version number to 0.4.
* src/cmd/frequency.c (cmd_frequency_run): Added support for printing current TCK frequency.
(cmd_frequency_help): Updated help text.
* po/POTFILES.in: Updated.
* src/detect.c (find_record, detect_parts): Marked messages for translation.
* src/discovery.c (detect_register_size, discovery): Ditto.
* src/flash.c (set_flash_driver, flashcheck, flashmsbin, flashmem): Ditto.
* src/readmem.c (readmem): Ditto.
* src/flash/amd.c (amd_flash_print_info, amd_32_flash_driver): Ditto.
* src/flash/intel.c (_intel_flash_print_info, intel_flash_erase_block, intel_flash_unlock_block)
(intel_flash_program, intel_32_flash_driver, intel_16_flash_driver): Ditto.
* src/tap/cable/arcom.c (arcom_cable_driver): Ditto.
* src/tap/cable/byteblaster.c (byteblaster_cable_driver): Ditto.
* src/tap/cable/dlc5.c (dlc5_cable_driver): Ditto.
* src/tap/cable/ea253.c (ea253_cable_driver): Ditto.
* src/tap/cable/ei012.c (ei012_cable_driver): Ditto.
* src/tap/cable/keithkoep.c (keithkoep_cable_driver): Ditto.
* src/tap/cable/mpcbdm.c (mpcbdm_cable_driver): Ditto.
* src/tap/cable/wiggler.c (wiggler_cable_driver): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@447 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
printf( _("Warning: Stepping too long\n") );
|
|
|
|
strncpy( stepping, idr.fullname, MAXLEN_STEPPING );
|
|
|
|
stepping[MAXLEN_STEPPING] = '\0';
|
|
|
|
|
|
|
|
/* part definition file */
|
|
|
|
p = strrchr( data_path, '/' );
|
|
|
|
if (p)
|
|
|
|
p[1] = '\0';
|
|
|
|
else
|
|
|
|
data_path[0] = '\0';
|
|
|
|
strcat( data_path, idr.name );
|
|
|
|
|
2003-05-28 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed version number to 0.4.
* src/cmd/frequency.c (cmd_frequency_run): Added support for printing current TCK frequency.
(cmd_frequency_help): Updated help text.
* po/POTFILES.in: Updated.
* src/detect.c (find_record, detect_parts): Marked messages for translation.
* src/discovery.c (detect_register_size, discovery): Ditto.
* src/flash.c (set_flash_driver, flashcheck, flashmsbin, flashmem): Ditto.
* src/readmem.c (readmem): Ditto.
* src/flash/amd.c (amd_flash_print_info, amd_32_flash_driver): Ditto.
* src/flash/intel.c (_intel_flash_print_info, intel_flash_erase_block, intel_flash_unlock_block)
(intel_flash_program, intel_32_flash_driver, intel_16_flash_driver): Ditto.
* src/tap/cable/arcom.c (arcom_cable_driver): Ditto.
* src/tap/cable/byteblaster.c (byteblaster_cable_driver): Ditto.
* src/tap/cable/dlc5.c (dlc5_cable_driver): Ditto.
* src/tap/cable/ea253.c (ea253_cable_driver): Ditto.
* src/tap/cable/ei012.c (ei012_cable_driver): Ditto.
* src/tap/cable/keithkoep.c (keithkoep_cable_driver): Ditto.
* src/tap/cable/mpcbdm.c (mpcbdm_cable_driver): Ditto.
* src/tap/cable/wiggler.c (wiggler_cable_driver): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@447 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
printf( _(" Filename: %s\n"), data_path );
|
|
|
|
f = fopen( data_path, "r" );
|
|
|
|
part = read_part( f, id );
|
|
|
|
if (part) {
|
|
|
|
strcpy( part->manufacturer, manufacturer );
|
|
|
|
strcpy( part->part, partname );
|
|
|
|
strcpy( part->stepping, stepping );
|
|
|
|
part->active_instruction = part_find_instruction( part, "IDCODE" );
|
|
|
|
parts_add_part( ps, part );
|
|
|
|
} else {
|
2003-05-28 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_INIT): Changed version number to 0.4.
* src/cmd/frequency.c (cmd_frequency_run): Added support for printing current TCK frequency.
(cmd_frequency_help): Updated help text.
* po/POTFILES.in: Updated.
* src/detect.c (find_record, detect_parts): Marked messages for translation.
* src/discovery.c (detect_register_size, discovery): Ditto.
* src/flash.c (set_flash_driver, flashcheck, flashmsbin, flashmem): Ditto.
* src/readmem.c (readmem): Ditto.
* src/flash/amd.c (amd_flash_print_info, amd_32_flash_driver): Ditto.
* src/flash/intel.c (_intel_flash_print_info, intel_flash_erase_block, intel_flash_unlock_block)
(intel_flash_program, intel_32_flash_driver, intel_16_flash_driver): Ditto.
* src/tap/cable/arcom.c (arcom_cable_driver): Ditto.
* src/tap/cable/byteblaster.c (byteblaster_cable_driver): Ditto.
* src/tap/cable/dlc5.c (dlc5_cable_driver): Ditto.
* src/tap/cable/ea253.c (ea253_cable_driver): Ditto.
* src/tap/cable/ei012.c (ei012_cable_driver): Ditto.
* src/tap/cable/keithkoep.c (keithkoep_cable_driver): Ditto.
* src/tap/cable/mpcbdm.c (mpcbdm_cable_driver): Ditto.
* src/tap/cable/wiggler.c (wiggler_cable_driver): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@447 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
printf( _("%s(%s:%d) Error: part read failed\n"), __FUNCTION__, __FILE__, __LINE__ );
|
|
|
|
exit( 1 );
|
|
|
|
}
|
|
|
|
if (f)
|
|
|
|
fclose( f );
|
|
|
|
}
|
|
|
|
|
2003-03-13 Marcel Telka <marcel@telka.sk>
* include/chain.h: New file.
* src/tap/chain.c: Ditto.
* src/tap/Makefile.am (libtap_a_SOURCES): Added chain.c.
* include/Makefile.am (noinst_HEADERS): Added chain.h.
* src/jtag.c: Encapsulated parts, cable and TAP state into one object - chain.
All relevant function parameters changed to `chain'.
* src/tap/state.c: `trst' state moved to cable drivers.
All cable drivers changed.
* include/cable.h (cable_driver_t) <set_trst>: Changed return value from void to int.
All cable drivers changed.
(cable_driver_t) <get_trst>: New function.
Implemented this function to all cable drivers.
* include/part.h (part_shift_instruction, part_shift_data_register)
(parts_shift_instructions, parts_shift_data_registers): Funcions removed.
* src/part/part.c (part_shift_instruction, part_shift_data_register)
(parts_shift_instructions, parts_shift_data_registers): Ditto.
* src/tap/cable/arcom.c: Removed dependency on state.h.
* src/tap/cable/byteblaster.c: Ditto.
* src/tap/cable/dlc5.c: Ditto.
* src/tap/cable/ea253.c: Ditto.
* src/tap/cable/ei012.c: Ditto.
* src/tap/cable/mpcbdm.c: Ditto.
* src/tap/cable/wiggler.c: Ditto.
* include/state.h (bit): Replaced with common.h include.
(Unknown_State, Run_Test_Idle, Select_DR_Scan, Select_IR_Scan): Removed parentheses.
* include/tap.h (write_command): Removed unused declaration.
* src/detect.h: Removed file.
* src/jtag.h: New file with common jtag function declarations.
* src/Makefile.am (jtag_SOURCES): Removed detect.h, added jtag.h.
* src/cfi.c: Added jtag.h include. Moved common function declarations to jtag.h file.
* src/detect.c: Ditto.
* src/discovery.c: Ditto.
* src/flash.c: Ditto.
* src/help.c: Ditto.
* src/jtag.c: Ditto.
* src/readmem.c: Ditto.
* src/jtag.c (jtag_create_jtagdir, jtag_load_history, jtag_save_history, jtag_parse_line)
(jtag_readline_loop, jtag_parse_file, jtag_parse_rc): Changed functions to `static'.
* src/tap/tap.c: Added l10n support.
* po/POTFILES.in: Added src/tap/chain.c and src/tap/tap.c.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@392 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
|
|
|
chain_clock( chain, 1, 0 ); /* Exit1-DR */
|
|
|
|
chain_clock( chain, 1, 0 ); /* Update-DR */
|
|
|
|
|
|
|
|
register_free( zeros );
|
|
|
|
register_free( ones );
|
|
|
|
register_free( id );
|
|
|
|
|
|
|
|
return ps;
|
|
|
|
}
|