tcl/target|board: add config Atheros ar9331
[fw/openocd] / src / jtag / interface.h
index 9c11d9dfb85d17d0c18bd4c4150701cf66d53e16..c7130ccf4ff870d94058330a1d868c6e7f998f52 100644 (file)
@@ -21,7 +21,7 @@
  *   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.             *
+ *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.           *
  ***************************************************************************/
 
 #ifndef OPENOCD_JTAG_INTERFACE_H
@@ -198,7 +198,7 @@ static inline tap_state_t jtag_debug_state_machine(const void *tms_buf,
  */
 struct jtag_interface {
        /** The name of the JTAG interface driver. */
-       char *name;
+       const char * const name;
 
        /**
         * Bit vector listing capabilities exposed by this driver.
@@ -207,7 +207,7 @@ struct jtag_interface {
 #define DEBUG_CAP_TMS_SEQ      (1 << 0)
 
        /** transports supported in C code (NULL terminated vector) */
-       const char **transports;
+       const char * const *transports;
 
        const struct swd_driver *swd;
 
@@ -300,8 +300,9 @@ struct jtag_interface {
        int (*srst_asserted)(int *srst_asserted);
 };
 
-extern const char *jtag_only[];
+extern const char * const jtag_only[];
 
-extern const struct swd_driver *swd;
+void adapter_assert_reset(void);
+void adapter_deassert_reset(void);
 
 #endif /* OPENOCD_JTAG_INTERFACE_H */