2022-06-26 18:24:07 -05:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
|
2011-04-19 01:43:33 -05:00
|
|
|
/***************************************************************************
|
|
|
|
* *
|
|
|
|
* Copyright (C) ST-Ericsson SA 2011 *
|
|
|
|
* Author: Michel Jaouen <michel.jaouen@stericsson.com> for ST-Ericsson. *
|
|
|
|
***************************************************************************/
|
2012-02-05 06:03:04 -06:00
|
|
|
|
2015-09-21 14:07:46 -05:00
|
|
|
#ifndef OPENOCD_TARGET_SMP_H
|
|
|
|
#define OPENOCD_TARGET_SMP_H
|
|
|
|
|
2021-12-15 18:59:14 -06:00
|
|
|
#include <helper/list.h>
|
2011-04-19 01:43:33 -05:00
|
|
|
#include "server/server.h"
|
2012-02-05 06:03:04 -06:00
|
|
|
|
2018-07-19 04:50:56 -05:00
|
|
|
#define foreach_smp_target(pos, head) \
|
2021-12-15 18:59:14 -06:00
|
|
|
list_for_each_entry(pos, head, lh)
|
2018-07-19 04:50:56 -05:00
|
|
|
|
2021-12-16 05:54:35 -06:00
|
|
|
#define foreach_smp_target_direction(forward, pos, head) \
|
|
|
|
list_for_each_entry_direction(forward, pos, head, lh)
|
|
|
|
|
2018-07-19 04:50:56 -05:00
|
|
|
extern const struct command_registration smp_command_handlers[];
|
|
|
|
|
2022-02-28 04:46:46 -06:00
|
|
|
/* DEPRECATED */
|
2011-04-19 01:43:33 -05:00
|
|
|
int gdb_read_smp_packet(struct connection *connection,
|
2014-02-14 14:48:52 -06:00
|
|
|
char const *packet, int packet_size);
|
2022-02-28 04:46:46 -06:00
|
|
|
/* DEPRECATED */
|
2011-04-19 01:43:33 -05:00
|
|
|
int gdb_write_smp_packet(struct connection *connection,
|
2014-02-14 14:48:52 -06:00
|
|
|
char const *packet, int packet_size);
|
2011-04-19 01:43:33 -05:00
|
|
|
|
2015-09-21 14:07:46 -05:00
|
|
|
#endif /* OPENOCD_TARGET_SMP_H */
|