Marcel Telka
bdac1de201
2003-05-20 Marcel Telka <marcel@telka.sk>
...
* configure.ac (AC_CONFIG_FILES): Added src/cmd/Makefile.
* include/Makefile.am (noinst_HEADERS): Added jtag.h.
* include/jtag.h: New file.
* po/POTFILES.in: Updated.
* src/Makefile.am (SUBDIRS): Added cmd.
(jtag_SOURCES): Removed jtag.h and help.c.
(jtag_DEPENDENCIES): Added cmd/libcmd.a.
(jtag_LDADD): Added libcmd.
(INCLUDES): Removed JTAG_DATA_DIR.
* src/help.c: File removed.
* src/jtag.h: Ditto.
* src/jtag.c (jtag_parse_line): Removed command parsing and moved it to cmd directory.
(jtag_parse_file): Function is no longer static.
* src/cmd/Makefile.am: New file.
* src/cmd/cable.c: Ditto.
* src/cmd/cmd.c: Ditto.
* src/cmd/cmd.h: Ditto.
* src/cmd/detect.c: Ditto.
* src/cmd/detectflash.c: Ditto.
* src/cmd/discovery.c: Ditto.
* src/cmd/dr.c: Ditto.
* src/cmd/flashmem.c: Ditto.
* src/cmd/frequency.c: Ditto.
* src/cmd/get.c: Ditto.
* src/cmd/help.c: Ditto.
* src/cmd/instruction.c: Ditto.
* src/cmd/print.c: Ditto.
* src/cmd/quit.c: Ditto.
* src/cmd/readmem.c: Ditto.
* src/cmd/script.c: Ditto.
* src/cmd/set.c: Ditto.
* src/cmd/shift.c: Ditto.
* src/part/part.c (parts_print): Fixed header printing.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@434 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
4caf803f3b
2003-05-19 Marcel Telka <marcel@telka.sk>
...
* src/tap/parport/ppdev.c (ppdev_get_status): Inverted BUSY signal value.
* include/cfi.h (cfi_chip_t, cfi_array_t): New typedefs.
(cfi_array_free): New function prototype.
(detect_cfi): Changed function prototype.
* include/flash.h (set_flash_driver): Removed function prototype.
* src/flash/cfi.c (BW16): Macro removed.
(read2): Function removed.
(cfi_array_free): New function.
(detect_cfi): Added code to detect all CFI chips on the data bus.
* src/flash.c (flashcheck): Removed bus width checking. Updated due changes in src/flash/cfi.c.
(flashmsbin): Updated due changes in src/flash/cfi.c. Removed memory leak.
* src/readmem.c: Added l10n support. Marked messages for translation.
(detectflash): Updated due changes in src/flash/cfi.c. Removed memory leak.
Removed flash driver setup.
* po/POTFILES.in: Added src/readmem.c.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@432 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
d126c4c797
2003-05-16 Marcel Telka <marcel@telka.sk>
...
* include/part.h (part_print): New function declaration.
* src/part/part.c: Marked all user visible messages for translation.
(part_print): New function.
(parts_print): Simplified. Added part_print() call.
* po/POTFILES.in: Added src/part/part.c.
* src/Makefile.am (jtag_DEPENDENCIES): Added flash/libflash.a.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@431 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
fcb6756dc5
2003-05-15 Marcel Telka <marcel@telka.sk>
...
* include/cfi.h (detect_cfi): Added new parameter `adr'.
All relevant functions and callers updated.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@429 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
d5b5b52ff3
2003-05-15 Marcel Telka <marcel@telka.sk>
...
* configure.ac (CPPFLAGS): Added path to the openwince include arm directory.
* include/bus.h (bus_width): Added new `adr' parameter for this macro.
All relevant functions and callers updated.
* src/bus/pxa2x0.c (bus_params_t): Added last_adr and MC_registers structure members.
(LAST_ADR, MC_pointer): New macros.
(pxa250_bus_read_start, pxa250_bus_read_next, pxa250_bus_read_end, pxa250_bus_write): Disabled
external bus cycles for addresses above 0x0400000.
(pxa250_bus_width): Removed some output messages. Implemented BOOT_DEF emulation.
(new_pxa250_bus): Implemented BOOT_DEF emulation.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@428 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
246966636e
2003-05-14 Marcel Telka <marcel@telka.sk>
...
* include/Makefile.am (noinst_HEADERS): Added cfi.h.
* include/cfi.h: New file.
* src/jtag.h (detect_cfi): Removed function declaration.
* src/flash.c: Replaced jtag.h include with cfi.h.
* src/readmem.c: Ditto.
* src/flash/Makefile.am (libflash_a_SOURCES): Added cfi.c.
* src/Makefie.am (jtag_SOURCES): Removed cfi.c.
* src/cfi.c: Moved this file ...
* src/flash/cfi.c: ... here and replaced jtag.h include with cfi.h one.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@427 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
2b5b2725b5
2003-05-14 Marcel Telka <marcel@telka.sk>
...
* include/part.h (part_t, parts_t): Macros removed.
* src/detect.c: Replaced obsolete types `parts' with `parts_t' and `part' with `part_t'.
* src/part/parse.c: Ditto.
* src/part/part.c: Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@426 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
8d184b53c5
2003-05-14 Marcel Telka <marcel@telka.sk>
...
* configure.ac (AC_CONFIG_FILES): Added src/flash/Makefile.
* include/Makefile.am (noinst_HEADERS): Added flash.h.
* src/Makefile.am (SUBDIRS): Added flash.
(jtag_SOURCES): Removed flash.h, flash-intel.c, and flash-amd.c.
(jtag_LDADD): Added libflash.
* src/flash-amd.c: Moved this file ...
* src/flash/amd.c: ... here.
* src/flash-intel.c: Moved this file ...
* src/flash/intel.c: ... here.
* src/flash.h: Moved this file ...
* include/flash.h: ...here.
* src/flash/Makefile.am: New file.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@425 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
60767fa68f
2003-04-29 Marcel Telka <marcel@telka.sk>
...
* data/MANUFACTURERS: Added new manufacturer: DEC.
* src/jtag.c (jtag_create_jtagdir): Changed permissions for jtag directory.
* include/part.h (part_alloc, read_part): Changed return type from `part *' to `part_t *'.
(struct parts): Changed parts member type from `part **' to `part_t **'.
(parts_alloc): Changed return type from `parts *' to `parts_t *'.
* src/bus/ixp425.c (select_flash, unselect_flash, setup_address, set_data_in, setup_data):
Changed first parameter type from `part *' to `part_t *'.
* src/bus/pxa250.c (setup_address, set_data_in, setup_data): Ditto.
* src/bus/sa1110.c (setup_address, set_data_in, setup_data): Ditto.
* include/bus.h: Replaced static bus_driver_t architecture with dynamic bus_t.
Removed direct chain_t dependency. Added `params' and `prepare' members.
All related functions' parameter types changed.
* src/bus/ixp425.c (bus_params_t): New structure typedef.
(CHAIN, PART): New macros.
(ixp425_bus_prepare, ixp425_bus_free, new_ixp425_bus): New functions.
(ixp425_bus_driver, ixp425_bus): Renamed `ixp425_bus_driver' to `ixp425_bus' and updated
for new bus driver architecture.
* src/bus/pxa250.c (bus_params_t): New structure typedef.
(CHAIN, PART): New macros.
(pxa250_bus_prepare, pxa250_bus_free, new_pxa250_bus): New functions.
(pxa250_bus_driver, pxa250_bus): Renamed `pxa250_bus_driver' to `pxa250_bus' and updated
for new bus driver architecture.
* src/bus/sa1110.c (bus_params_t): New structure typedef.
(CHAIN, PART): New macros.
(sa1110_bus_prepare, sa1110_bus_free, new_sa1110_bus): New functions.
(sa1110_bus_driver, sa1110_bus): Renamed `sa1110_bus_driver' to `sa1110_bus' and updated
for new bus driver architecture.
* src/readmem.c (detectflash, readmem): Moved JTAG chain initialization to bus->prepare().
* src/flash.c (flashcheck): Ditto.
(flashmsbin, flashmem): Removed BYPASS instruction setup.
* src/jtag.c (bus_driver, bus): Replaced `bus_driver' with `bus' global variable.
(jtag_parse_line, main): Added `bus' deallocation.
* src/flash.h (flash_driver_t): Changed parameter type for all function members from
`chain_t*' to `bus_t *'.
All function callers changed.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@423 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
882094c9a3
2003-04-02 Marcel Telka <marcel@telka.sk>
...
* include/signal.h: Changed signal typedef to signal_t (thanks to Jachym Holecek).
All `signal' instances renamed to `signal_t'.
* src/tap/parport.c: Ported to NetBSD/i386 (Jachym Holecek).
* src/tap/parport/direct.c (parport_drivers): Conditionally removed direct_parport_driver.
* configure.ac: Added test for i386_set_ioperm() function. Defined HAVE_IOPERM
and HAVE_I386_SET_IOPERM.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@412 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
9406ed47c7
2003-03-18 Marcel Telka <marcel@telka.sk>
...
* include/parport.h: New file. Added parport driver support.
All cable drivers modified.
* src/tap/parport.c: Ditto.
* src/tap/parport/direct.c: Ditto.
* src/jtag.c (jtag_parse_line) <cable>: Added parport driver support.
* include/Makefile.am (noinst_HEADERS): Added parport.h.
* src/tap/cable/generic.c: New file withgGeneric functions for cable drivers.
All cable drivers modified.
* src/tap/cable/generic.h: Ditto.
* src/tap/Makefile.am (libtap_a_SOURCES): Added parport.c, parport/direct.c, cable/generic.h,
and cable/generic.c.
* include/cable.h: Added dynamic cable objects. Added cable interpose functions.
All callers changed.
* src/tap/cable.c: Ditto.
* include/chain.h (chain_connect): Function removed.
(chain_disconnect): New function.
* src/tap/chain.c (chain_free): Modified for chain_disconnect() call.
(chain_connect): Removed.
(chain_disconnect): New function.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@397 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
daa49cf9bc
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
Marcel Telka
1d44678038
2003-03-13 Marcel Telka <marcel@telka.sk>
...
* include/part.h: Renamed types part to part_t, parts to parts_t,
tap_register to tap_register_t.
* include/register.h: Renamed tap_register type to tap_register_t.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@391 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
41afa6bd95
2003-02-18 Marcel Telka <marcel@telka.sk>
...
* include/Makefile.am (noinst_HEADERS): Added gettext.h.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@373 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
5f4dc04142
2003-02-18 Marcel Telka <marcel@telka.sk>
...
* autogen.sh: Added autopoint call. Added '-I m4' parameter for aclocal.
* Makefile.am (SUBDIRS): Added intl, include and po.
(DIST_SUBDIRS): Removed.
(ACLOCAL_AMFLAGS): Added '-I m4'.
* configure.ac (AC_INIT): Changed version number to 0.3.
(AC_CONFIG_FILES): Added intl/Makefile and po/Makefile.in.
(AM_GNU_GETTEXT): Added.
(AM_GNU_GETTEXT_VERSION): Added with version 0.11.5.
* include/gettext.h: Copied new file from gettext share.
* po/LINGUAS: Added new empty file.
* po/Makevars: Added new file.
* po/POTFILES.in: Added new empty file.
* src/Makefile.am (INCLUDES): Removed JTAG_DATA_DIR.
(localedir): Added path to locale directory.
(DEFS): Added JTAG_DATA_DIR and LOCALEDIR.
(LIBS): Added LIBINTL.
* src/help.c: Included gettext.h.
* src/jtag.c: Included gettext.h.
(main): Added l10n support.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@372 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
2b799c36b9
2003-02-18 Marcel Telka <marcel@telka.sk>
...
* configure.ac (AC_CONFIG_FILES): Added src/bus/Makefile.
* src/bus.h: Moved this file...
* include/bus.h: ...here.
* include/Makefile.am (noinst_HEADERS): Added bus.h.
* src/ixp425.c: Moved this file...
* src/bus/ixp425.c: ...here.
* src/pxa250.c: Moved this file...
* src/bus/pxa2x0.c: ...here.
* src/sa1110.c: Moved this file...
* src/bus/sa1110.c: ...here.
* src/bus/Makefile.am: New file.
* src/Makefile.am (SUBDIRS): Added bus.
(jtag_SOURCES): Removed bus.h, ixp425.c, pxa250.c, sa1110.c.
(jtag_DEPENDENCIES): Added libbus.a.
(jtag_LDADD): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@368 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
097a156dd6
2003-02-13 Marcel Telka <marcel@telka.sk>
...
* include/bsbit.h (BSBIT_BIDIR): Added new macro (Christian Pellegrin).
* src/part/bsbit.c (bsbit_alloc): Added support for bidirectional pins (Christian
Pellegrin).
* src/part/parse.ci (read_part): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@343 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
bf49310557
2003-01-18 Marcel Telka <marcel@telka.sk>
...
* src/jtag.c (main): Added new 'frequency' command.
* src/help.c (help): Added help for 'frequency' command.
* include/cable.h (cable_wait): Added new function prototype.
* src/tap/cable.c (cable_wait): Added new function.
* src/tap/cable/byteblaster.c (byteblaster_clock): Added support for TCK
frequency limit.
(byteblaster_get_tdo): Ditto.
* src/tap/cable/dlc5.c (dlc5_clock): Ditto.
(dlc5_get_tdo): Ditto.
* src/tap/cable/ea253.c (ea253_clock): Ditto.
(ea253_get_tdo): Ditto.
* src/tap/cable/ei012.c (ei012_clock): Ditto.
(ei012_get_tdo): Ditto.
* src/tap/cable/wiggler.c (wiggler_clock): Ditto.
(wiggler_get_tdo): Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@320 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
85b397c112
2003-01-13 Marcel Telka <marcel@telka.sk>
...
* include/state.h: Added new function tap_state_reset().
* src/tap/state.c (tap_state_reset): Ditto.
* src/tap/tap.c (tap_reset): Added explicit TAP state reset.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@312 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
c5eb27eb50
2003-01-08 Marcel Telka <marcel@telka.sk>
...
* include/cable.h: Unified and simplified cable driver handling, added driver name
and driver description into driver interface structure.
* src/help.c (help): Ditto.
* src/jtag.c (main): Ditto.
* src/tap/Makefile.am: Ditto.
* src/tap/cable.c: Ditto.
* src/tap/cable/dlc5.c: Ditto.
* src/tap/cable/ea253.c: Ditto.
* src/tap/cable/ei012.c: Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@300 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
9aae0add1e
2003-01-08 Marcel Telka <marcel@telka.sk>
...
* include/cable.h: Added cable driver for ETC EI012 JTAG Cable.
* src/help.c (help): Ditto.
* src/jtag.c (main): Ditto.
* src/tap/Makefile.am: Ditto.
* src/tap/cable/ei012.c: Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@298 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
c268034c3a
2003-01-08 Marcel Telka <marcel@telka.sk>
...
* include/cable.h: Added cable driver for Xilinx DLC5 JTAG Parallel Cable III.
* src/help.c (help): Ditto.
* src/jtag.c (main): Ditto.
* src/tap/Makefile.am: Ditto.
* src/tap/cable/dlc5.c: Ditto.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@296 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
dfd76356a2
2003-01-08 Marcel Telka <marcel@telka.sk>
...
* include/Makefile.am: Removed ctrl.h, added cable.h.
* include/ctrl.h: Removed obsolete file.
* include/cable.h: Added common declarations for JTAG cable drivers.
* src/detect.c: Replaced ctrl.h include with cable.h (JTAG cable driver support).
* src/discovery.c: Ditto.
* src/tap/tap.c: Ditto.
* src/help.c: Added help for new command 'cable'.
* src/jtag.c: Added support for JTAG cable drivers, added new command 'cable'.
* src/tap/Makefile.am: Removed ctrl.c, added cable/ea253.c, updated includes.
* src/tap/ctrl.c: Removed obsolete file.
* src/tap/state.c: Changed default TRST state to 1.
* src/tap/cable/ea253.c: Added driver for EA253 JTAG cable.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@294 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
0ac86537b0
2003-01-05 Marcel Telka <marcel@telka.sk>
...
* include/register.h (register_inc, register_dec, register_shift_rigth,
register_shift_left): Added new functions.
* src/tap/register.c (register_inc, register_dec, register_shift_rigth,
register_shift_left): Ditto.
* src/Makefile.am: Added discovery.c file.
* src/discovery.c: Added new file with discovery() implementation.
* src/help.c (help): Added help for 'discovery' command.
* src/jtag.c (main): Added 'discovery' command.
* src/tap/tap.c (write_command): Removed unused function.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@291 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka
12b2987a29
Added return for for tap_init().
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@197 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
23 years ago
Marcel Telka
1fb131a244
Removed empty SUBDIRS, fixed backslash escape.
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@192 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
23 years ago
Marcel Telka
07c5f9bd4d
Added Makefile and Makefile.in.
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@190 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
23 years ago
Marcel Telka
46a2fb5ee2
Removed common.h dependency.
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@188 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
23 years ago
Marcel Telka
0fb204f3ee
Moved from include module.
...
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@186 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
23 years ago