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,
18
ETB_RAM_READ_POINTER
= 0x05,
19
ETB_RAM_WRITE_POINTER
= 0x06,
20
ETB_TRIGGER_COUNTER
= 0x07,
21
ETB_CTRL
= 0x08,
22
};
23
24
struct
etb
{
25
struct
etm_context
*
etm_ctx
;
26
struct
jtag_tap
*
tap
;
27
uint32_t
cur_scan_chain
;
28
struct
reg_cache
*
reg_cache
;
29
30
/* ETB parameters */
31
uint32_t
ram_depth
;
32
uint32_t
ram_width
;
33
35
unsigned
int
trigger_percent
;
36
};
37
38
struct
etb_reg
{
39
uint32_t
addr
;
40
struct
etb
*
etb
;
41
};
42
43
extern
struct
etm_capture_driver
etb_capture_driver
;
44
45
struct
reg_cache
*
etb_build_reg_cache
(
struct
etb
*
etb
);
46
47
#endif
/* OPENOCD_TARGET_ETB_H */
etb_build_reg_cache
struct reg_cache * etb_build_reg_cache(struct etb *etb)
Definition:
etb.c:113
ETB_TRIGGER_COUNTER
@ ETB_TRIGGER_COUNTER
Definition:
etb.h:20
ETB_RAM_READ_POINTER
@ ETB_RAM_READ_POINTER
Definition:
etb.h:18
ETB_STATUS
@ ETB_STATUS
Definition:
etb.h:16
ETB_RAM_DATA
@ ETB_RAM_DATA
Definition:
etb.h:17
ETB_RAM_WIDTH
@ ETB_RAM_WIDTH
Definition:
etb.h:15
ETB_RAM_WRITE_POINTER
@ ETB_RAM_WRITE_POINTER
Definition:
etb.h:19
ETB_CTRL
@ ETB_CTRL
Definition:
etb.h:21
ETB_RAM_DEPTH
@ ETB_RAM_DEPTH
Definition:
etb.h:14
ETB_ID
@ ETB_ID
Definition:
etb.h:13
etb_capture_driver
struct etm_capture_driver etb_capture_driver
Definition:
etb.c:685
etb_reg
Definition:
etb.h:38
etb_reg::addr
uint32_t addr
Definition:
etb.h:39
etb_reg::etb
struct etb * etb
Definition:
etb.h:40
etb
Definition:
etb.h:24
etb::trigger_percent
unsigned int trigger_percent
how much trace buffer to fill after trigger
Definition:
etb.h:35
etb::reg_cache
struct reg_cache * reg_cache
Definition:
etb.h:28
etb::etm_ctx
struct etm_context * etm_ctx
Definition:
etb.h:25
etb::tap
struct jtag_tap * tap
Definition:
etb.h:26
etb::ram_depth
uint32_t ram_depth
Definition:
etb.h:31
etb::cur_scan_chain
uint32_t cur_scan_chain
Definition:
etb.h:27
etb::ram_width
uint32_t ram_width
Definition:
etb.h:32
etm_capture_driver
Definition:
etm.h:125
etm_context
Definition:
etm.h:151
jtag_tap
Definition:
jtag.h:101
reg_cache
Definition:
register.h:144
src
target
etb.h
Generated by
1.9.1