flash/startup.tcl: Tidy flash program preverify documentation
[openocd.git] / src / target / smp.h
blob20835a0522a0d3b7c10ac9771f2ad37a4f502981
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 /***************************************************************************
4 * *
5 * Copyright (C) ST-Ericsson SA 2011 *
6 * Author: Michel Jaouen <michel.jaouen@stericsson.com> for ST-Ericsson. *
7 ***************************************************************************/
9 #ifndef OPENOCD_TARGET_SMP_H
10 #define OPENOCD_TARGET_SMP_H
12 #include <helper/list.h>
13 #include "server/server.h"
15 #define foreach_smp_target(pos, head) \
16 list_for_each_entry(pos, head, lh)
18 #define foreach_smp_target_direction(forward, pos, head) \
19 list_for_each_entry_direction(forward, pos, head, lh)
21 extern const struct command_registration smp_command_handlers[];
23 /* DEPRECATED */
24 int gdb_read_smp_packet(struct connection *connection,
25 char const *packet, int packet_size);
26 /* DEPRECATED */
27 int gdb_write_smp_packet(struct connection *connection,
28 char const *packet, int packet_size);
30 #endif /* OPENOCD_TARGET_SMP_H */