Commit Graph

  • 6468859389 remove TAP_INVALID as argument to jtag_add_xxx() fn's oharboe 2009-06-04 11:33:36 +00:00
  • bb1a1ddb54 jtag_add_end_state() now returns the value of the global variable and does not modify the global variable if passed TAP_INVALID. This patch has no effect on the current code and is just to prepare upcoming patches. oharboe 2009-06-04 07:05:22 +00:00
  • 9ab49135c6 JTAG_TRST_ASSERTED event cleanup. More clear where and when it is invoked and some duplicate(harmless) invocations avoided. oharboe 2009-06-04 06:56:22 +00:00
  • de7cb1c76b David Brownell <david-b@pacbell.net>: zwelch 2009-06-04 01:22:23 +00:00
  • e7d6306b23 David Brownell <david-b@pacbell.net>: zwelch 2009-06-04 01:17:27 +00:00
  • ec2bc2259c David Brownell <david-b@pacbell.net>: zwelch 2009-06-04 01:16:43 +00:00
  • 4123f08263 David Brownell <david-b@pacbell.net>: zwelch 2009-06-04 00:56:41 +00:00
  • 99fbbdc9c4 David Brownell <david-b@pacbell.net>: zwelch 2009-06-04 00:54:25 +00:00
  • b619b7466f David Brownell <david-b@pacbell.net>: zwelch 2009-06-04 00:51:02 +00:00
  • 976f13d27b use assert() for obscure check on illegal arguments upon trst being asserted while commands are queued oharboe 2009-06-03 16:36:01 +00:00
  • 0c57bc8be2 remove unused code path. oharboe 2009-06-03 12:12:21 +00:00
  • c68684c2e6 catchup with jtag refactoring. oharboe 2009-06-03 07:55:56 +00:00
  • 80d66c9fcb Move JTAG command handling implementation into its own source file. zwelch 2009-06-03 07:06:37 +00:00
  • a3e84343e2 Finish JTAG header file modularization; command factoring follows. zwelch 2009-06-03 06:29:09 +00:00
  • 4a6adee17e added missing extern to jtag_command_queue definition. oharboe 2009-06-03 06:27:57 +00:00
  • 4bc3af0374 Move JTAG command APIs into new jtag/commands.h header file. zwelch 2009-06-03 06:08:07 +00:00
  • 2d0e1dbc02 Improve remaining documentation that was causing Doxygen warnings. zwelch 2009-06-03 04:44:38 +00:00
  • 9a5acdc161 Improve in-source documentation that was causing Doxygen warnings. zwelch 2009-06-03 04:37:51 +00:00
  • 6c39b5dd52 Add architectural introduction to the JTAG module in The Manual. zwelch 2009-06-03 02:57:55 +00:00
  • 58c19285e2 Improve logger script to expose warnings and errors in the output. zwelch 2009-06-03 02:56:20 +00:00
  • b344ea9b97 Improve doxygen markup of PATCHES file, link to new primer. zwelch 2009-06-03 02:17:26 +00:00
  • 003318b911 Add draft of Patching Primer in The Manual; update primer page. zwelch 2009-06-03 02:12:44 +00:00
  • c41db358a0 Update TODO file with more content and better style. zwelch 2009-06-03 02:11:09 +00:00
  • 36432c9ba6 Enable or add doxygen comments to the public JTAG API. zwelch 2009-06-03 01:51:04 +00:00
  • 41018ff44b Update documentationf or jtag_interface structure members. zwelch 2009-06-03 01:39:04 +00:00
  • 0d5da4bccb Remove vestigal tap_transition type from public jtag API. zwelch 2009-06-03 01:29:01 +00:00
  • 67caf323f7 Remove interface.h from public JTAG header, include it where required. zwelch 2009-06-03 01:26:01 +00:00
  • c275cfd3da Expose tap_state_by_name TAP helper available in public API. zwelch 2009-06-03 01:23:48 +00:00
  • 49a22dbf98 David Brownell <david-b@pacbell.net>: zwelch 2009-06-03 00:59:13 +00:00
  • 5ca513a097 David Brownell <david-b@pacbell.net>: zwelch 2009-06-03 00:56:50 +00:00
  • 4ecf2c7dd8 Move the JTAG cable interface API implementation - Cloned the src/jtag/jtag.c file to src/jtag/interface.c. - For each for of those files, deleted the contents of the other. - Add new source file to automake input. zwelch 2009-06-03 00:45:21 +00:00
  • f7d011a955 Add missed accessor for checking the current TMS table. zwelch 2009-06-03 00:33:22 +00:00
  • f0b1b206cd Split and simplify handle_tms_sequence_command for further factoring. zwelch 2009-06-03 00:24:21 +00:00
  • 2c69be13ea Make tap_state_by_name available in new JTAG interface API header. zwelch 2009-06-03 00:17:42 +00:00
  • def4ed3b2a Add private src/jtag/interface.h for use by JTAG interface drivers: - Move the jtag_interface structure definition. - Move the Cable API declarations. - Add new header file to automake input. zwelch 2009-06-02 23:59:13 +00:00
  • 84d88ef9d7 Finish removing '#ifdef HAVE_JTAG_MINIDRIVER_H' from jtag.h: - Wraps JTAG callback API functions: - Outlines jtag_add_callback() and jtag_add_callback4(). - Adds interface_ prefix to existing in-tree driver implementation. - Declare the driver interfaces routines in miniheader.h file. zwelch 2009-06-02 23:21:18 +00:00
  • a546729609 Add header file for JTAG minidriver: - Wraps all minidriver API functions using API front-ends: - Outlines jtag_add_dr_out() and jtag_alloc_in_value32(). - Adds interface_ prefix to existing jtag_alloc_invalue_32 routines. - Re-inline these interface definitions in new header file. - Re-inline parts of the (mini)driver implementations in minidriver.h. - Replace INCLUDE_JTAG_MINIDRIVER_H with #include directives. zwelch 2009-06-02 23:15:12 +00:00
  • 7dc29156fe - change signature for adi_jtag_dp_scan and adi_jtag_dp_scan_u32 to use swjdp_common_t *swjdp instead of arm_jtag_t *jtag_info - change SWJDP_IR/DR_APACC to DAP_IR/DR_APACC to conform with ARM_ADI docs. - add swjdp->memaccess_tck field and code for extra tck clocks before accessing memory bus - Set default memaccess value to 8 for Cortex-M3. - Add dap memaccess command. - document all armv7 dap cmds. - Original patch submitted by Magnus Lundin [lundin@mlu.mine.nu]. ntfreak 2009-06-02 21:06:12 +00:00
  • 88b5c6da2a - hack added to fix a issue with v5/6 jlink v5/6 jlink seems to have an issue if the first tap move is not divisible by 8, so we send a TLR on first power up ntfreak 2009-06-02 16:07:31 +00:00
  • 339dc0bcd0 remove unecessary #ifdef as file is only built when minidriver is enabled. oharboe 2009-06-02 13:37:06 +00:00
  • b7a133bd48 some trivial minidriver fixes oharboe 2009-06-02 10:09:53 +00:00
  • cd5e09303c more missing eCos types oharboe 2009-06-02 10:07:47 +00:00
  • 34b6fc3ce4 Only include jtag_driver.c in the build when minidriver is not in use. zwelch 2009-06-02 08:29:03 +00:00
  • 1d230b88d2 Move interface_jtag_add_scan_check_alloc implementations to their respective implementation files. zwelch 2009-06-02 08:04:21 +00:00
  • 6625e926fd Add high-speed device support in FT2232 driver: - Initial support for FT2232H/FT4232H devices from FTDI. - Add --enable-ftd2xx-highspeed option to configure script. - Original patch submitted by Joern Kaipf <lists@joernline.de>. zwelch 2009-06-02 07:51:16 +00:00
  • 8dab0ecf23 Remove unused code, TAP_INVALID is never passed to drivers. oharboe 2009-06-02 07:21:44 +00:00
  • a372074d21 Continue clean-up of JTAG driver interface: - Move all interface_jtag_* functions to jtag_driver.c. - Extern command queue routines in jtag.h (with INCLUDE_JTAG_INTERFACE_H). - Add new source file to automake inputs. zwelch 2009-06-02 07:05:54 +00:00
  • 4a70eeffb0 More JTAG interface driver cleanup: - Moves references to global jtag interface to default core implementation. - Missed this reference in the earlier "pointless" patch. Mea culpa. zwelch 2009-06-02 06:49:53 +00:00
  • c10d4d9a00 More JTAG interface driver cleanup: - Add jtag_callback_queue_reset() to reset the callback queue. - Make interface_jtag_execute_queue() use new helper function. zwelch 2009-06-02 06:33:19 +00:00
  • e733ac36bf More JTAG interface driver cleanup: - Make interface_jtag_execute_queue call new helper function. - Add default_interface_jtag_execute_queue to wrap jtag interface access. zwelch 2009-06-02 06:21:49 +00:00
  • 6ef5a622af Clean up jtag command queue handling: - Rename last_command_pointer as next_command_pointer, because this variable stores the address where jtag_queue_command() will store a command pointer. - Make that variable static, since it is only used internally in jtag.c. - Remove superfluous accessor for that now-static variable. - Deobfuscate use of variables in jtag_command_queue. - Add jtag_command_queue_reset helper function. - Use it in interface_jtag_execute_queue. zwelch 2009-06-02 05:47:00 +00:00
  • 76bd16e9e3 Encapsulate JTAG command interfaces for moving to jtag_interface.h. zwelch 2009-06-02 04:55:05 +00:00
  • d0a6db31a3 Remove the useless invalidstruct from jtag.h. zwelch 2009-06-02 04:31:49 +00:00
  • deed7fb56c Start clean-up of JTAG driver interface: - Factor jtag_add_scan_check to call new jtag_add_scan_check_alloc helper. - Use conditional logic to define two versions of the helper. - These helpers will be moved to other files in future patches. zwelch 2009-06-02 03:38:50 +00:00
  • a8f3ba8f5f David Brownell <david-b@pacbell.net>: zwelch 2009-06-01 23:30:58 +00:00
  • 5120d1263b David Brownell <david-b@pacbell.net>: zwelch 2009-06-01 23:13:24 +00:00
  • 4caa72b988 David Brownell <david-b@pacbell.net>: zwelch 2009-06-01 23:09:19 +00:00
  • 7da3c2cda2 David Brownell <david-b@pacbell.net>: zwelch 2009-06-01 23:06:17 +00:00
  • a88871bc6a Encapsulate JTAG Cable API and interface structure, plan for new header file. zwelch 2009-06-01 23:01:24 +00:00
  • 35082f788b Encapsulate JTAG minidriver functions, plan for new header file. zwelch 2009-06-01 22:54:42 +00:00
  • 41565073c5 Remove unused in_handler_t type definition from jtag.h zwelch 2009-06-01 21:54:35 +00:00
  • 337017d626 Scrub final vestiges of in_handler from mips target APIs. zwelch 2009-06-01 21:53:19 +00:00
  • 7662bbeaa5 added jtag_add_statemove() helper fn(actual fn written by Dick Hollonbeck, I just moved it). oharboe 2009-06-01 19:58:20 +00:00
  • 414245c9ce fix warning for a variable that GCC thought might be uninitialized(which it can't be). oharboe 2009-06-01 19:06:11 +00:00
  • cf04b59517 simon qian <simonqian.openocd@gmail.com> stop incestious communication with lower jtag.c layers oharboe 2009-06-01 19:00:54 +00:00
  • ddc9fd7274 David Brownell <david-b@pacbell.net>: zwelch 2009-06-01 03:06:46 +00:00
  • 30fca8e531 David Brownell <david-b@pacbell.net>: zwelch 2009-06-01 03:06:25 +00:00
  • a066529fa5 David Brownell <david-b@pacbell.net>: zwelch 2009-06-01 03:06:11 +00:00
  • 878d0cb043 David Brownell <david-b@pacbell.net>: zwelch 2009-06-01 03:05:59 +00:00
  • b3d797699c David Brownell <david-b@pacbell.net>: zwelch 2009-06-01 03:05:42 +00:00
  • 278ca633da David Brownell <david-b@pacbell.net>: zwelch 2009-06-01 03:05:26 +00:00
  • 74df79d4d8 Final step in isolating target_type_s structure: - Move definition of 'struct target_type_s' into new 'target_type.h' file. - Forward delclaration remains in target.h, with comment pointing to new file. - Replaces #define with #include in source files. zwelch 2009-05-31 12:38:28 +00:00
  • e8e0af3956 Whitespace-only updates to automake input files: - use continuations to break long lines of variable assignments - makes these variables more patch-friendly and conform to style guide zwelch 2009-05-31 12:10:57 +00:00
  • 818aa27a9d First step in hiding target_type_s from public interface: - Add DEFINE_TARGET_TYPE_S symbol in files that need it defined. - Forward declare 'struct target_type_s' only, unless that symbol is defined. zwelch 2009-05-31 11:32:28 +00:00
  • 4deb42ed00 Add target_examine_one wrapper: - replaces all calls to target->type->examine. zwelch 2009-05-31 11:32:10 +00:00
  • d00ac17e8e Add target breakpoint and watchpoint wrapper: - replaces all calls to target->type->{add,remove}_{break,watch}point. zwelch 2009-05-31 11:31:52 +00:00
  • 0de78ed02c Add target_get_name wrapper: - replaces all accesses to target->type->name. - add documentation in target_s to warn not to access field directly. zwelch 2009-05-31 11:31:27 +00:00
  • 17fa4de854 Add target_step wrapper: - replaces all calls to target->type->step. zwelch 2009-05-31 11:31:11 +00:00
  • df4cf0615f Add target_get_gdb_reg_list wrapper: - replaces all calls to target->type->get_gdb_reg_list. - add documentation in target_s to warn not to invoke callback directly. zwelch 2009-05-31 11:30:59 +00:00
  • 11edf22776 Add target_bulk_write_memory wrapper: - replaces all calls to target->type->bulk_write_memory. - add documentation in target_s to warn not to invoke callback directly. zwelch 2009-05-31 09:39:04 +00:00
  • 9cb3af610a Add wrappers for target->type->examined: - replace all checks of target->type->examined with target_was_examined(). - replace all setting of target->type->examined with target_set_examined(). - replace clearing of target->type->examined with target_reset_examined(). - add documentation in target_s to warn not to access field directly. zwelch 2009-05-31 09:38:43 +00:00
  • fbe8cf72a5 Add target_run_algorithm wrapper: - replaces all calls to target->type->run_algorithm. - add documentation in target_s to warn not to invoke callback directly. zwelch 2009-05-31 09:38:20 +00:00
  • 95e13054ca Add target_write_memory wrapper: - replaces all calls to target->type->write_memory. - add documentation in target_s to warn not to invoke callback directly. zwelch 2009-05-31 09:37:57 +00:00
  • b6db182c00 Add target_read_memory wrapper: - replaces all calls to target->type->read_memory. - add documentation in target_s to warn not to invoke callback directly. zwelch 2009-05-31 09:37:35 +00:00
  • 6785193118 Simplify the handle_md_command routine in target.c: - fix buffer overrun in mdw; final '\0' would overflow the output buffer. - return ERROR_COMMAND_SYNTAX_ERROR instead of ERROR_OK if: - less than one argument is provided - the command is called with a name other than mdb, mdh, or mdw. - factor all command output into new handle_md_output function zwelch 2009-05-31 06:00:28 +00:00
  • 55f21192b0 Make nvp_target_event static; remove its external declaration. zwelch 2009-05-31 04:58:51 +00:00
  • 12df0f0090 Make target_buffer_get_uXX interfaces work with constant buffers. zwelch 2009-05-31 02:18:26 +00:00
  • 79cec48ba2 Peter Denison <openwrt@marshadder.org>: zwelch 2009-05-31 01:07:43 +00:00
  • cc639cc44c Add new JTAG boundary scan primer, with links to BSDL information. zwelch 2009-05-31 00:49:03 +00:00
  • 58e31916de Eliminate duplicated code in the handle_mw_command memory write loop. - wordsize will always be 1, 2, or 4 due to preceeding switch statement. - move call to keep_alive after successful writes, not upon failures zwelch 2009-05-30 23:57:30 +00:00
  • 335fee3f36 Encapsulate the global "jtag" jtag_interface pointer: - Add jtag_interface_quit, factored from exit_handler() in openocd.c. - Remove its extern declaration. - Add static keyword to its definition. zwelch 2009-05-30 22:23:12 +00:00
  • 77015d5ae3 Remove unused jlink_execute_end_state (unreferenced after r1949). zwelch 2009-05-30 21:53:10 +00:00
  • 9557d8a9b1 remove unused JTAG_END_STATE part 2 oharboe 2009-05-30 11:55:14 +00:00
  • 7992eaf0fc remove unused JTAG_END_STATE oharboe 2009-05-30 11:37:21 +00:00
  • d12a47d558 added some comments on meminfo command oharboe 2009-05-30 07:56:14 +00:00
  • aea132ca48 more reset_config texts oharboe 2009-05-30 07:53:40 +00:00
  • 2327b8603c Remove trailing whitespace from oocd_trace source file. zwelch 2009-05-30 01:44:22 +00:00
  • 91d55c0e50 David Brownell <david-b@pacbell.net>: zwelch 2009-05-30 01:43:21 +00:00
  • d00a5cfe97 David Brownell <david-b@pacbell.net>: zwelch 2009-05-30 01:32:19 +00:00
  • ebcde562d9 Remove error_handler_t type definition; it was unused in the tree. zwelch 2009-05-29 05:50:01 +00:00