flash/nor/efm32: Use Cortex-M 'core_info' field
[fw/openocd] / src / target / smp.h
index b8f0ea5274ad2330c0a78d01b7f2320a5bba0692..490a4931051af1306e99a86626e05640c2e0c641 100644 (file)
  *   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.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
  ***************************************************************************/
+
+#ifndef OPENOCD_TARGET_SMP_H
+#define OPENOCD_TARGET_SMP_H
+
+#include <helper/list.h>
 #include "server/server.h"
+
+#define foreach_smp_target(pos, head) \
+       list_for_each_entry(pos, head, lh)
+
+#define foreach_smp_target_direction(forward, pos, head) \
+       list_for_each_entry_direction(forward, pos, head, lh)
+
+extern const struct command_registration smp_command_handlers[];
+
 int gdb_read_smp_packet(struct connection *connection,
-               char *packet, int packet_size);
+               char const *packet, int packet_size);
 int gdb_write_smp_packet(struct connection *connection,
-               char *packet, int packet_size);
+               char const *packet, int packet_size);
 
+#endif /* OPENOCD_TARGET_SMP_H */