flash/nor/at91samd: Use 32-bit register writes for ST-Link compat
[fw/openocd] / src / target / smp.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 /***************************************************************************
4  *                                                                         *
5  * Copyright (C) ST-Ericsson SA 2011                                       *
6  * Author: Michel Jaouen <michel.jaouen@stericsson.com> for ST-Ericsson.   *
7  ***************************************************************************/
8
9 #ifndef OPENOCD_TARGET_SMP_H
10 #define OPENOCD_TARGET_SMP_H
11
12 #include <helper/list.h>
13 #include "server/server.h"
14
15 #define foreach_smp_target(pos, head) \
16         list_for_each_entry(pos, head, lh)
17
18 #define foreach_smp_target_direction(forward, pos, head) \
19         list_for_each_entry_direction(forward, pos, head, lh)
20
21 extern const struct command_registration smp_command_handlers[];
22
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);
29
30 #endif /* OPENOCD_TARGET_SMP_H */