2011-04-19 01:43:33 -05:00
|
|
|
/***************************************************************************
|
|
|
|
* *
|
|
|
|
* Copyright (C) ST-Ericsson SA 2011 *
|
|
|
|
* Author: Michel Jaouen <michel.jaouen@stericsson.com> for ST-Ericsson. *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
2016-05-16 15:41:00 -05:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
2011-04-19 01:43:33 -05:00
|
|
|
***************************************************************************/
|
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
|
|
|
|
|
|
|
extern const struct command_registration smp_command_handlers[];
|
|
|
|
|
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);
|
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 */
|