OpenOCD
smp.h
Go to the documentation of this file.
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 */
25  char const *packet, int packet_size);
26 /* DEPRECATED */
28  char const *packet, int packet_size);
29 
30 #endif /* OPENOCD_TARGET_SMP_H */
int gdb_read_smp_packet(struct connection *connection, char const *packet, int packet_size)
Definition: smp.c:48
int gdb_write_smp_packet(struct connection *connection, char const *packet, int packet_size)
Definition: smp.c:73
const struct command_registration smp_command_handlers[]
Definition: smp.c:153