update files to correct FSF address
[fw/openocd] / src / target / avrt.h
index fccba44c48e22dca3230c0c6f729fb0cbc6f9459..707b481609e3cd14c3f1d87ec2597bd1a1a04bf7 100644 (file)
@@ -1,33 +1,39 @@
-/***************************************************************************\r
- *   Copyright (C) 2009 by Simon Qian                                      *\r
- *   SimonQian@SimonQian.com                                               *\r
- *                                                                         *\r
- *   This program is free software; you can redistribute it and/or modify  *\r
- *   it under the terms of the GNU General Public License as published by  *\r
- *   the Free Software Foundation; either version 2 of the License, or     *\r
- *   (at your option) any later version.                                   *\r
- *                                                                         *\r
- *   This program is distributed in the hope that it will be useful,       *\r
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *\r
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *\r
- *   GNU General Public License for more details.                          *\r
- *                                                                         *\r
- *   You should have received a copy of the GNU General Public License     *\r
- *   along with this program; if not, write to the                         *\r
- *   Free Software Foundation, Inc.,                                       *\r
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *\r
- ***************************************************************************/\r
-#ifndef AVRT_H\r
-#define AVRT_H\r
-\r
-typedef struct mcu_jtag_s\r
-{\r
-       jtag_tap_t *tap;\r
-} mcu_jtag_t;\r
-\r
-typedef struct avr_common_s\r
-{\r
-       mcu_jtag_t jtag_info;\r
-} avr_common_t;\r
-\r
-#endif /* AVRT_H */\r
+/***************************************************************************
+ *   Copyright (C) 2009 by Simon Qian                                      *
+ *   SimonQian@SimonQian.com                                               *
+ *                                                                         *
+ *   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.,                                       *
+ *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.           *
+ ***************************************************************************/
+
+#ifndef AVRT_H
+#define AVRT_H
+
+#include <jtag/jtag.h>
+
+struct mcu_jtag {
+       struct jtag_tap *tap;
+};
+
+struct avr_common {
+       struct mcu_jtag jtag_info;
+};
+
+int mcu_execute_queue(void);
+int avr_jtag_sendinstr(struct jtag_tap *tap, uint8_t *ir_in, uint8_t ir_out);
+int avr_jtag_senddat(struct jtag_tap *tap, uint32_t *dr_in, uint32_t dr_out,
+               int len);
+
+#endif /* AVRT_H */