OpenOCD
etb.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2007 by Dominic Rath *
5  * Dominic.Rath@gmx.de *
6  ***************************************************************************/
7 
8 #ifndef OPENOCD_TARGET_ETB_H
9 #define OPENOCD_TARGET_ETB_H
10 
11 /* ETB registers */
12 enum {
13  ETB_ID = 0x00,
14  ETB_RAM_DEPTH = 0x01,
15  ETB_RAM_WIDTH = 0x02,
16  ETB_STATUS = 0x03,
17  ETB_RAM_DATA = 0x04,
21  ETB_CTRL = 0x08,
22 };
23 
24 struct etb {
26  struct jtag_tap *tap;
27  uint32_t cur_scan_chain;
29 
30  /* ETB parameters */
31  uint32_t ram_depth;
32  uint32_t ram_width;
33 
35  unsigned trigger_percent;
36 };
37 
38 struct etb_reg {
39  uint32_t addr;
40  struct etb *etb;
41 };
42 
44 
45 struct reg_cache *etb_build_reg_cache(struct etb *etb);
46 
47 #endif /* OPENOCD_TARGET_ETB_H */
struct reg_cache * etb_build_reg_cache(struct etb *etb)
Definition: etb.c:113
@ ETB_TRIGGER_COUNTER
Definition: etb.h:20
@ ETB_RAM_READ_POINTER
Definition: etb.h:18
@ ETB_STATUS
Definition: etb.h:16
@ ETB_RAM_DATA
Definition: etb.h:17
@ ETB_RAM_WIDTH
Definition: etb.h:15
@ ETB_RAM_WRITE_POINTER
Definition: etb.h:19
@ ETB_CTRL
Definition: etb.h:21
@ ETB_RAM_DEPTH
Definition: etb.h:14
@ ETB_ID
Definition: etb.h:13
struct etm_capture_driver etb_capture_driver
Definition: etb.c:685
Definition: etb.h:38
uint32_t addr
Definition: etb.h:39
struct etb * etb
Definition: etb.h:40
Definition: etb.h:24
struct reg_cache * reg_cache
Definition: etb.h:28
unsigned trigger_percent
how much trace buffer to fill after trigger
Definition: etb.h:35
struct etm_context * etm_ctx
Definition: etb.h:25
struct jtag_tap * tap
Definition: etb.h:26
uint32_t ram_depth
Definition: etb.h:31
uint32_t cur_scan_chain
Definition: etb.h:27
uint32_t ram_width
Definition: etb.h:32
Definition: jtag.h:100