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 #include "esp_algorithm.h"
13 
15  int (*poll)(struct target *target);
16  int (*reset)(struct target *target);
17  int (*on_halt)(struct target *target);
18 };
19 
24  /* number of attempts to examine other SMP cores, attempts are made after reset on target poll */
26 };
27 
28 int esp_xtensa_smp_poll(struct target *target);
30  int current,
31  target_addr_t address,
32  int handle_breakpoints,
33  int debug_execution);
35  int current,
36  target_addr_t address,
37  int handle_breakpoints);
45 int esp_xtensa_smp_target_init(struct command_context *cmd_ctx, struct target *target);
47  struct esp_xtensa_smp_common *esp_xtensa_smp,
48  struct xtensa_debug_module_config *dm_cfg,
49  const struct esp_xtensa_smp_chip_ops *chip_ops,
50  const struct esp_semihost_ops *semihost_ops);
51 int esp_xtensa_smp_run_func_image(struct target *target, struct esp_algorithm_run_data *run, uint32_t num_args, ...);
53  struct esp_algorithm_run_data *run,
54  uint32_t func_addr,
55  uint32_t num_args,
56  ...);
60 
61 #endif /* OPENOCD_TARGET_XTENSA_ESP_SMP_H */
static struct esp_usb_jtag * priv
Definition: esp_usb_jtag.c:219
int esp_xtensa_smp_run_onboard_func(struct target *target, struct esp_algorithm_run_data *run, uint32_t func_addr, uint32_t num_args,...)
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_run_func_image(struct target *target, struct esp_algorithm_run_data *run, uint32_t num_args,...)
int esp_xtensa_smp_target_init(struct command_context *cmd_ctx, struct target *target)
int esp_xtensa_smp_on_halt(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
Algorithm run data.
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:116
target_event
Definition: target.h:240
uint64_t target_addr_t
Definition: types.h:335