Select one of the symbols to view example projects that use it.
 
Outline
#define OPENOCD_TARGET_ARMV8_DPM_H
#include "arm_dpm.h"
#include "helper/bits.h"
armv8_common
armv8_dpm_setup(struct arm_dpm *);
armv8_dpm_initialize(struct arm_dpm *);
armv8_dpm_read_current_registers(struct arm_dpm *);
armv8_dpm_modeswitch(struct arm_dpm *, enum arm_mode);
armv8_dpm_write_dirty_registers(struct arm_dpm *, bool);
#define DSCR_DEBUG_STATUS_MASK
#define DSCR_ERR
#define DSCR_SYS_ERROR_PEND
#define DSCR_CUR_EL
#define DSCR_EL_STATUS_MASK
#define DSCR_HDE
#define DSCR_SDD
#define DSCR_NON_SECURE
#define DSCR_MA
#define DSCR_TDA
#define DSCR_INTDIS_MASK
#define DSCR_ITE
#define DSCR_PIPE_ADVANCE
#define DSCR_TXU
#define DSCR_RTO
#define DSCR_ITO
#define DSCR_DTR_TX_FULL
#define DSCR_DTR_RX_FULL
#define DSCRV8_ENTRY_NON_DEBUG
#define DSCRV8_ENTRY_RESTARTING
#define DSCRV8_ENTRY_BKPT
#define DSCRV8_ENTRY_EXT_DEBUG
#define DSCRV8_ENTRY_HALT_STEP_NORMAL
#define DSCRV8_ENTRY_HALT_STEP_EXECLU
#define DSCRV8_ENTRY_OS_UNLOCK
#define DSCRV8_ENTRY_RESET_CATCH
#define DSCRV8_ENTRY_WATCHPOINT
#define DSCRV8_ENTRY_HLT
#define DSCRV8_ENTRY_SW_ACCESS_DBG
#define DSCRV8_ENTRY_EXCEPTION_CATCH
#define DSCRV8_ENTRY_HALT_STEP
#define DSCRV8_HALT_MASK
#define DRCR_CSE
#define DRCR_CSPA
#define DRCR_CBRRQ
#define DSCR_EXT_DCC_NON_BLOCKING
#define DSCR_EXT_DCC_STALL_MODE
#define DSCR_EXT_DCC_FAST_MODE
#define DRCR_HALT
#define DRCR_RESTART
#define DRCR_CLEAR_EXCEPTIONS
#define ECR_RCE
#define ESR_RC
#define PRSR_PU
#define PRSR_SPD
#define PRSR_RESET
#define PRSR_SR
#define PRSR_HALT
#define PRSR_OSLK
#define PRSR_DLK
#define PRSR_EDAD
#define PRSR_SDAD
#define PRSR_EPMAD
#define PRSR_SPMAD
#define PRSR_SDR
#define PRCR_CORENPDRQ
#define PRCR_CWRR
#define PRCR_COREPURQ
armv8_dpm_report_dscr(struct arm_dpm *, uint32_t);
armv8_dpm_handle_exception(struct arm_dpm *, bool);
armv8_dpm_get_core_state(struct arm_dpm *);
Files
loading...
SourceVuDevelopment ToolsOpenOCDsrc/target/armv8_dpm.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2009 by David Brownell *//* ... */ #ifndef OPENOCD_TARGET_ARMV8_DPM_H #define OPENOCD_TARGET_ARMV8_DPM_H #include "arm_dpm.h" #include "helper/bits.h" /* forward-declare struct armv8_common */ struct armv8_common; /** * This wraps an implementation of DPM primitives. Each interface * provider supplies a structure like this, which is the glue between * upper level code and the lower level hardware access. * * It is a PRELIMINARY AND INCOMPLETE set of primitives, starting with * support for CPU register access. *//* ... */ int armv8_dpm_setup(struct arm_dpm *dpm); int armv8_dpm_initialize(struct arm_dpm *dpm); int armv8_dpm_read_current_registers(struct arm_dpm *dpm); int armv8_dpm_modeswitch(struct arm_dpm *dpm, enum arm_mode mode); int armv8_dpm_write_dirty_registers(struct arm_dpm *dpm, bool bpwp); /* DSCR bits; see ARMv7a arch spec section C10.3.1. * Not all v7 bits are valid in v6. *//* ... */ #define DSCR_DEBUG_STATUS_MASK (0x1F << 0) #define DSCR_ERR (0x1 << 6) #define DSCR_SYS_ERROR_PEND (0x1 << 7) #define DSCR_CUR_EL (0x3 << 8) #define DSCR_EL_STATUS_MASK (0xF << 10) #define DSCR_HDE (0x1 << 14) #define DSCR_SDD (0x1 << 16) #define DSCR_NON_SECURE (0x1 << 18) #define DSCR_MA (0x1 << 20) #define DSCR_TDA (0x1 << 21) #define DSCR_INTDIS_MASK (0x3 << 22) #define DSCR_ITE (0x1 << 24) #define DSCR_PIPE_ADVANCE (0x1 << 25) #define DSCR_TXU (0x1 << 26) #define DSCR_RTO (0x1 << 27) /* bit 28 is reserved */ #define DSCR_ITO (0x1 << 28) #define DSCR_DTR_TX_FULL (0x1 << 29) #define DSCR_DTR_RX_FULL (0x1 << 30) /* bit 31 is reserved */ /* Methods of entry into debug mode */ #define DSCRV8_ENTRY_NON_DEBUG (0x2) #define DSCRV8_ENTRY_RESTARTING (0x1) #define DSCRV8_ENTRY_BKPT (0x7) #define DSCRV8_ENTRY_EXT_DEBUG (0x13) #define DSCRV8_ENTRY_HALT_STEP_NORMAL (0x1B) #define DSCRV8_ENTRY_HALT_STEP_EXECLU (0x1F) #define DSCRV8_ENTRY_OS_UNLOCK (0x23) #define DSCRV8_ENTRY_RESET_CATCH (0x27) #define DSCRV8_ENTRY_WATCHPOINT (0x2B) #define DSCRV8_ENTRY_HLT (0x2F) #define DSCRV8_ENTRY_SW_ACCESS_DBG (0x33) #define DSCRV8_ENTRY_EXCEPTION_CATCH (0x37) #define DSCRV8_ENTRY_HALT_STEP (0x3B) #define DSCRV8_HALT_MASK (0x3C) /*DRCR registers*/ #define DRCR_CSE (1 << 2) #define DRCR_CSPA (1 << 3) #define DRCR_CBRRQ (1 << 4) /* DTR modes */ #define DSCR_EXT_DCC_NON_BLOCKING (0x0 << 20) #define DSCR_EXT_DCC_STALL_MODE (0x1 << 20) #define DSCR_EXT_DCC_FAST_MODE (0x2 << 20) /* bits 22, 23 are reserved */ /* DRCR (debug run control register) bits */ #define DRCR_HALT (1 << 0) #define DRCR_RESTART (1 << 1) #define DRCR_CLEAR_EXCEPTIONS (1 << 2) /* ECR (Execution Control Register) bits */ #define ECR_RCE BIT(1) /* ESR (Event Status Register) bits */ #define ESR_RC BIT(1) /* PRSR (processor debug status register) bits */ #define PRSR_PU (1 << 0) #define PRSR_SPD (1 << 1) #define PRSR_RESET (1 << 2) #define PRSR_SR (1 << 3) #define PRSR_HALT (1 << 4) #define PRSR_OSLK (1 << 5) #define PRSR_DLK (1 << 6) #define PRSR_EDAD (1 << 7) #define PRSR_SDAD (1 << 8) #define PRSR_EPMAD (1 << 9) #define PRSR_SPMAD (1 << 10) #define PRSR_SDR (1 << 11) /* PRCR (processor debug control register) bits */ #define PRCR_CORENPDRQ (1 << 0) #define PRCR_CWRR (1 << 2) #define PRCR_COREPURQ (1 << 3) 58 defines void armv8_dpm_report_dscr(struct arm_dpm *dpm, uint32_t dcsr); void armv8_dpm_handle_exception(struct arm_dpm *dpm, bool do_restore); enum arm_state armv8_dpm_get_core_state(struct arm_dpm *dpm); /* ... */ #endif /* OPENOCD_TARGET_ARM_DPM_H */
Details
Show:
from
Types: Columns:
Click anywhere in the source to view detailed information here...