40 Commits (4bf3c9941d19cc76e0601ab40c8e80725cccf00f)

Author SHA1 Message Date
Marcel Telka bb8b9d4cd9 2003-05-22 Marcel Telka <marcel@telka.sk>
* config.h: New file.
	Changed all relevant source files to include this file unconditionaly.
	* Makefile.am (noinst_HEADERS): Added config.h.
	* configure.ac (AM_CONFIG_HEADER): Renamed generated configuration file
		from config.h to acconfig.h.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@440 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka d84a1ec737 2003-05-21 Marcel Telka <marcel@telka.sk>
* Makefile.rules: New file.
	* Makefile.am: Added Makefile.rules include.
	(EXTRA_DIST): Added Makefile.rules.
	* data/Makefile.am: Added Makefile.rules include.
	* doc/Makefile.am: Ditto.
	* include/Makefile.am: Ditto.
	* po/Makevars: Ditto.
	* src/Makefile.am: Ditto.
	* src/bus/Makefile.am: Ditto.
	* src/cmd/Makefile.am: Ditto.
	* src/flash/Makefile.am: Ditto.
	* src/lib/Makefile.am: Ditto.
	* src/part/Makefile.am: Ditto.
	* src/tap/Makefile.am: Ditto.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@438 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 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 bffcf9e111 2003-04-01 Marcel Telka <marcel@telka.sk>
* src/tap/cable/keithkoep.c: New file.
	* src/tap/Makefile.am (libtap_a_SOURCES): Added cable/keithkoep.c.
	* src/tap/cable.c (cable_drivers): Added keithkoep_cable_driver.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@411 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka 75b7508355 2003-03-18 Marcel Telka <marcel@telka.sk>
* src/tap/parport/direct.c (direct_connect): Fixed cable disconnecting loop.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@402 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka 3e1b91019a 2003-03-18 Marcel Telka <marcel@telka.sk>
* po/POTFILES.in: Added src/tap/parport/direct.c and src/tap/parport/ppdev.c.
	* src/help.c (help) <cable>: Added help for `cable ppdev' command.
	* src/tap/parport/ppdev.c (ppdev_open): Removed debug messages.
	* src/jtag.c (jtag_parse_line) <cable>: Added chain_disconnect() call before
		new cable connection.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@400 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka d75952bec4 2003-03-18 Marcel Telka <marcel@telka.sk>
* configure.ac (AC_CHECK_HEADERS): Added test for linux/ppdev.h.
	* src/tap/Makefile.am (libtap_a_SOURCES): Added parport/ppdev.c.
	* src/tap/parport.c (parport_drivers): Added ppdev parport driver.
	* src/tap/parport/ppdev.c: New file.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@399 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 584d2e57f1 2003-03-14 Marcel Telka <marcel@telka.sk>
* configure.ac (CPPFLAGS): Added common include paths.
	* src/Makefile.am (INCLUDES): Removed common include paths.
	* src/bus/Makefile.am (INCLUDES): Ditto.
	* src/part/Makefile.am (INCLUDES): Ditto.
	* src/tap/Makefile.am (INCLUDES): Ditto.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@394 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 b44726feff 2003-02-25 Marcel Telka <marcel@telka.sk>
* src/tap/cable.c: Added config.h include.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@382 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka 7fdbf06e79 2003-02-18 Marcel Telka <marcel@telka.sk>
* src/tap/cable.c: Added <sys/types.h> include for useconds_t on some systems.
	* src/flash-amd.c (amdstatus29): Disabled unused function.
	(amdisprotected): Ditto.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@367 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka cf05f7f094 2003-02-07 Marcel Telka <marcel@telka.sk>
* src/tap/cable/arcom.c: Added support for Arcom JTAG Cable (patch 682310,
		Ian Campbell).
	* src/tap/cable.c: Ditto.
	* src/tap/Makefile.am: Ditto.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@338 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka 04ca1be7c2 2003-02-07 Marcel Telka <marcel@telka.sk>
* src/tap/cable/mpcbdm.c (mpcbdm_clock): Fixed port address for TRST & TRST1.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@337 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka 630a04a509 2003-02-07 Marcel Telka <marcel@telka.sk>
* src/tap/cable/mpcbmd.c: Added support for Mpcbdm JTAG Cable (Christian Pellegrin).
	* src/tap/cable.c: Ditto.
	* src/tap/Makefile.am: Ditto.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@336 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka d32e8ba6c0 2003-02-04 Marcel Telka <marcel@telka.sk>
* src/help.c (help): Added missing short help description for 'set' command.
	* src/jtag.c (main): Added test for uninitialized ps for 'set' command.
	* src/tap/tap.c (tap_shift_register): Changed final state to Run-Test/Idle
		for immediately propagation of the new BSR values.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@335 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka 4c6e2c1af6 2003-01-30 Marcel Telka <marcel@telka.sk>
* src/tap/cable/byteblaster.c (byteblaster_init): Added support for
		parallel ports with I/O addresses above 0x3FF.
	(byteblaster_done): Ditto.
	* src/tap/cable/dlc5.c (dlc5_init): Ditto.
	(dlc5_done): Ditto.
	* src/tap/cable/ea253.c (ea253_init): Ditto.
	(ea253_done): Ditto.
	* src/tap/cable/ei012.c (ei012_init): Ditto.
	(ei012_done): Ditto.
	* src/tap/cable/wiggler.c (wiggler_init): Ditto.
	(wiggler_done): Ditto.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@324 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 4152bbcbf5 2003-01-11 Marcel Telka <marcel@telka.sk>
* src/tap/cable/bytebaster.c: Added support for Altera ByteBlaster family cables.
	* src/tap/cable.c: Ditto.
	* src/tap/Makefile.am: Ditto.
	* src/help.c (help): Increased space for cable short name.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@310 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka cc6e0b2073 2003-01-11 Marcel Telka <marcel@telka.sk>
* src/tap/cable/wiggler.c: Added support for Macraigor Wiggler JTAG Cable (Stas Khirman).
	* src/tap/cable.c: Ditto.
	* src/tap/Makefile.am: Ditto.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@309 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka 30c52b79de 2003-01-10 Marcel Telka <marcel@telka.sk>
* src/tap/cable.c: Added missing stdlib.h include (bug 665923). Thanks to Chris Ellec.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@308 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 9c4919d3e5 Added comment about JTAG cable type.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@295 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 84024cb5bd BUSY is always inverted at input.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@260 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
22 years ago
Marcel Telka fd3977fafa Removed compile warnings.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@229 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 31adab2e0e Fixed jtag include paths.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@189 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
23 years ago
Marcel Telka a359fded6d tap_init(): Added test for return value of the ioperm() call.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@129 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
23 years ago
Marcel Telka 179bf1196d Added missing 'const' qualifiers.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@124 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
23 years ago
Marcel Telka 56f5f7750e Added register_match().
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@110 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
23 years ago
Marcel Telka cd96faedba Added function register_duplicate(). Fixed possible segfault in register_get_string().
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@108 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
23 years ago
Marcel Telka 970d946c57 Added current state checking into tap_shift_register(), tap_capture_dr() and tap_capture_ir() functions.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@76 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
23 years ago
Marcel Telka 5360ba5030 Added missing tap_state_get_trst() function.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@69 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
23 years ago
Marcel Telka 2513cb95e6 Added initial TAP implementation.
git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@66 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
23 years ago