OpenOCD
esp_xtensa.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Generic ESP xtensa target implementation for OpenOCD *
5  * Copyright (C) 2019 Espressif Systems Ltd. *
6  ***************************************************************************/
7 
8 #ifndef OPENOCD_TARGET_ESP_XTENSA_H
9 #define OPENOCD_TARGET_ESP_XTENSA_H
10 
11 #include <target/target.h>
12 #include <target/xtensa/xtensa.h>
13 #include "esp_xtensa.h"
14 #include "esp_semihosting.h"
15 
17  struct xtensa xtensa; /* must be the first element */
19 };
20 
21 static inline struct esp_xtensa_common *target_to_esp_xtensa(struct target *target)
22 {
24 }
25 
27  struct esp_xtensa_common *esp_xtensa,
28  struct xtensa_debug_module_config *dm_cfg,
29  const struct esp_semihost_ops *semihost_ops);
30 int esp_xtensa_target_init(struct command_context *cmd_ctx, struct target *target);
37 
38 #endif /* OPENOCD_TARGET_ESP_XTENSA_H */
int esp_xtensa_init_arch_info(struct target *target, struct esp_xtensa_common *esp_xtensa, struct xtensa_debug_module_config *dm_cfg, const struct esp_semihost_ops *semihost_ops)
Definition: esp_xtensa.c:19
int esp_xtensa_poll(struct target *target)
Definition: esp_xtensa.c:49
void esp_xtensa_queue_tdi_idle(struct target *target)
int esp_xtensa_arch_state(struct target *target)
Definition: esp_xtensa.c:44
void esp_xtensa_target_deinit(struct target *target)
Definition: esp_xtensa.c:36
int esp_xtensa_target_init(struct command_context *cmd_ctx, struct target *target)
Definition: esp_xtensa.c:31
int esp_xtensa_breakpoint_remove(struct target *target, struct breakpoint *breakpoint)
Definition: esp_xtensa.c:60
int esp_xtensa_breakpoint_add(struct target *target, struct breakpoint *breakpoint)
Definition: esp_xtensa.c:54
static struct esp_xtensa_common * target_to_esp_xtensa(struct target *target)
Definition: esp_xtensa.h:21
Semihost calls handling operations.
struct esp_semihost_data semihost
Definition: esp_xtensa.h:18
Definition: target.h:120
void * arch_info
Definition: target.h:169
Represents a generic Xtensa core.
Definition: xtensa.h:192
#define container_of(ptr, type, member)
Cast a member of a structure out to the containing structure.
Definition: types.h:68
Holds the interface to Xtensa cores.