OpenOCD
esp_xtensa_smp.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * ESP Xtensa SMP target for OpenOCD *
5  * Copyright (C) 2020 Espressif Systems Ltd. Co *
6  ***************************************************************************/
7 
8 #ifndef OPENOCD_TARGET_XTENSA_ESP_SMP_H
9 #define OPENOCD_TARGET_XTENSA_ESP_SMP_H
10 
11 #include "esp_xtensa.h"
12 
14  int (*poll)(struct target *target);
15  int (*reset)(struct target *target);
16  int (*on_halt)(struct target *target);
17 };
18 
23  /* number of attempts to examine other SMP cores, attempts are made after reset on target poll */
25 };
26 
27 int esp_xtensa_smp_poll(struct target *target);
29  int current,
30  target_addr_t address,
31  int handle_breakpoints,
32  int debug_execution);
34  int current,
35  target_addr_t address,
36  int handle_breakpoints);
43 int esp_xtensa_smp_target_init(struct command_context *cmd_ctx, struct target *target);
45  struct esp_xtensa_smp_common *esp_xtensa_smp,
46  struct xtensa_debug_module_config *dm_cfg,
47  const struct esp_xtensa_smp_chip_ops *chip_ops,
48  const struct esp_semihost_ops *semihost_ops);
49 
53 
54 #endif /* OPENOCD_TARGET_XTENSA_ESP_SMP_H */
static struct esp_usb_jtag * priv
Definition: esp_usb_jtag.c:219
int esp_xtensa_smp_init_arch_info(struct target *target, struct esp_xtensa_smp_common *esp_xtensa_smp, struct xtensa_debug_module_config *dm_cfg, const struct esp_xtensa_smp_chip_ops *chip_ops, const struct esp_semihost_ops *semihost_ops)
const struct command_registration esp_xtensa_smp_command_handlers[]
int esp_xtensa_smp_handle_target_event(struct target *target, enum target_event event, void *priv)
int esp_xtensa_smp_soft_reset_halt(struct target *target)
int esp_xtensa_smp_deassert_reset(struct target *target)
const struct command_registration esp_xtensa_smp_xtensa_command_handlers[]
int esp_xtensa_smp_step(struct target *target, int current, target_addr_t address, int handle_breakpoints)
int esp_xtensa_smp_watchpoint_remove(struct target *target, struct watchpoint *watchpoint)
int esp_xtensa_smp_target_init(struct command_context *cmd_ctx, struct target *target)
const struct command_registration esp_xtensa_smp_esp_command_handlers[]
int esp_xtensa_smp_watchpoint_add(struct target *target, struct watchpoint *watchpoint)
int esp_xtensa_smp_assert_reset(struct target *target)
int esp_xtensa_smp_poll(struct target *target)
int esp_xtensa_smp_resume(struct target *target, int current, target_addr_t address, int handle_breakpoints, int debug_execution)
struct target * target
Definition: rtt/rtt.c:26
Semihost calls handling operations.
int(* poll)(struct target *target)
int(* on_halt)(struct target *target)
int(* reset)(struct target *target)
struct esp_xtensa_common esp_xtensa
const struct esp_xtensa_smp_chip_ops * chip_ops
Definition: target.h:120
target_event
Definition: target.h:241
uint64_t target_addr_t
Definition: types.h:335