Select one of the symbols to view example projects that use it.
 
Outline
#define OPENOCD_TARGET_ESIRISC_JTAG_H
#include <helper/types.h>
#include <jtag/jtag.h>
#define INSTR_IDCODE
#define INSTR_DEBUG
#define INSTR_BYPASS
#define INSTR_LENGTH
#define DEBUG_NOP
#define DEBUG_READ_BYTE
#define DEBUG_READ_HWORD
#define DEBUG_READ_WORD
#define DEBUG_WRITE_BYTE
#define DEBUG_WRITE_HWORD
#define DEBUG_WRITE_WORD
#define DEBUG_READ_REG
#define DEBUG_WRITE_REG
#define DEBUG_READ_CSR
#define DEBUG_WRITE_CSR
#define DEBUG_ENABLE_DEBUG
#define DEBUG_DISABLE_DEBUG
#define DEBUG_ASSERT_RESET
#define DEBUG_DEASSERT_RESET
#define DEBUG_BREAK
#define DEBUG_CONTINUE
#define DEBUG_FLUSH_CACHES
#define EID_OVERFLOW
#define EID_CANT_DEBUG
#define EID_NONE
#define STUFF_MARKER
#define PAD_BYTE
esirisc_jtag
esirisc_jtag_is_debug_active(struct esirisc_jtag *);
esirisc_jtag_is_stopped(struct esirisc_jtag *);
esirisc_jtag_get_eid(struct esirisc_jtag *);
esirisc_jtag_read_byte(struct esirisc_jtag *, uint32_t, uint8_t *);
esirisc_jtag_read_hword(struct esirisc_jtag *, uint32_t, uint16_t *);
esirisc_jtag_read_word(struct esirisc_jtag *, uint32_t, uint32_t *);
esirisc_jtag_write_byte(struct esirisc_jtag *, uint32_t, uint8_t);
esirisc_jtag_write_hword(struct esirisc_jtag *, uint32_t, uint16_t);
esirisc_jtag_write_word(struct esirisc_jtag *, uint32_t, uint32_t);
esirisc_jtag_read_reg(struct esirisc_jtag *, uint8_t, uint32_t *);
esirisc_jtag_write_reg(struct esirisc_jtag *, uint8_t, uint32_t);
esirisc_jtag_read_csr(struct esirisc_jtag *, uint8_t, uint8_t, uint32_t *);
esirisc_jtag_write_csr(struct esirisc_jtag *, uint8_t, uint8_t, uint32_t);
esirisc_jtag_enable_debug(struct esirisc_jtag *);
esirisc_jtag_disable_debug(struct esirisc_jtag *);
esirisc_jtag_assert_reset(struct esirisc_jtag *);
esirisc_jtag_deassert_reset(struct esirisc_jtag *);
esirisc_jtag_break(struct esirisc_jtag *);
esirisc_jtag_continue(struct esirisc_jtag *);
esirisc_jtag_flush_caches(struct esirisc_jtag *);
Files
loading...
SourceVuDevelopment ToolsOpenOCDsrc/target/esirisc_jtag.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* SPDX-License-Identifier: GPL-2.0-or-later */ /*************************************************************************** * Copyright (C) 2018 by Square, Inc. * * Steven Stallion <stallion@squareup.com> * * James Zhao <hjz@squareup.com> * ***************************************************************************//* ... */ #ifndef OPENOCD_TARGET_ESIRISC_JTAG_H #define OPENOCD_TARGET_ESIRISC_JTAG_H #include <helper/types.h> #include <jtag/jtag.h> /* TAP Instructions */ #define INSTR_IDCODE 0x8 #define INSTR_DEBUG 0x9 #define INSTR_BYPASS 0xf #define INSTR_LENGTH 4 /* eSi-Debug Commands */ #define DEBUG_NOP 0x00 #define DEBUG_READ_BYTE 0x10 #define DEBUG_READ_HWORD 0x20 #define DEBUG_READ_WORD 0x30 #define DEBUG_WRITE_BYTE 0x60 #define DEBUG_WRITE_HWORD 0x70 #define DEBUG_WRITE_WORD 0x80 #define DEBUG_READ_REG 0xb0 #define DEBUG_WRITE_REG 0xc0 #define DEBUG_READ_CSR 0xd0 #define DEBUG_WRITE_CSR 0xe0 #define DEBUG_ENABLE_DEBUG 0xf0 #define DEBUG_DISABLE_DEBUG 0xf2 #define DEBUG_ASSERT_RESET 0xf4 #define DEBUG_DEASSERT_RESET 0xf6 #define DEBUG_BREAK 0xf8 #define DEBUG_CONTINUE 0xfa #define DEBUG_FLUSH_CACHES 0xfc /* Exception IDs */ #define EID_OVERFLOW 0x3d #define EID_CANT_DEBUG 0x3e #define EID_NONE 0x3f /* Byte Stuffing */ #define STUFF_MARKER 0x55 #define PAD_BYTE 0xaa 27 defines struct esirisc_jtag { struct jtag_tap *tap; uint8_t status; ...}; bool esirisc_jtag_is_debug_active(struct esirisc_jtag *jtag_info); bool esirisc_jtag_is_stopped(struct esirisc_jtag *jtag_info); uint8_t esirisc_jtag_get_eid(struct esirisc_jtag *jtag_info); int esirisc_jtag_read_byte(struct esirisc_jtag *jtag_info, uint32_t address, uint8_t *data); int esirisc_jtag_read_hword(struct esirisc_jtag *jtag_info, uint32_t address, uint16_t *data); int esirisc_jtag_read_word(struct esirisc_jtag *jtag_info, uint32_t address, uint32_t *data); int esirisc_jtag_write_byte(struct esirisc_jtag *jtag_info, uint32_t address, uint8_t data); int esirisc_jtag_write_hword(struct esirisc_jtag *jtag_info, uint32_t address, uint16_t data); int esirisc_jtag_write_word(struct esirisc_jtag *jtag_info, uint32_t address, uint32_t data); int esirisc_jtag_read_reg(struct esirisc_jtag *jtag_info, uint8_t reg, uint32_t *data); int esirisc_jtag_write_reg(struct esirisc_jtag *jtag_info, uint8_t reg, uint32_t data); int esirisc_jtag_read_csr(struct esirisc_jtag *jtag_info, uint8_t bank, uint8_t csr, uint32_t *data); int esirisc_jtag_write_csr(struct esirisc_jtag *jtag_info, uint8_t bank, uint8_t csr, uint32_t data); int esirisc_jtag_enable_debug(struct esirisc_jtag *jtag_info); int esirisc_jtag_disable_debug(struct esirisc_jtag *jtag_info); int esirisc_jtag_assert_reset(struct esirisc_jtag *jtag_info); int esirisc_jtag_deassert_reset(struct esirisc_jtag *jtag_info); int esirisc_jtag_break(struct esirisc_jtag *jtag_info); int esirisc_jtag_continue(struct esirisc_jtag *jtag_info); int esirisc_jtag_flush_caches(struct esirisc_jtag *jtag_info); /* ... */ #endif /* OPENOCD_TARGET_ESIRISC_JTAG_H */
Details
Show:
from
Types: Columns:
Click anywhere in the source to view detailed information here...