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
/*
* Copyright 2016, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the GNU General Public License version 2. Note that NO WARRANTY is provided.
* See "LICENSE_GPLv2.txt" for details.
*
* @TAG(DATA61_GPL)
*/
/* Arch specific setup functions */
BOOT_CODE bool_t ;
void ;
/** Sets up (and overwrites) the current configuration of a hardware breakpoint.
* @param bp_num Hardware breakpoint ID. Usually an integer from 0..N.
* @param vaddr Address that the breakpoint should be triggered by.
* @param type Type of operation that should trigger the breakpoint.
* @param size Operand size that should trigger the breakpoint.
* @param rwx Access type (read/write) that should trigger the breakpoint.
* @param uds If NULL, this function call will write directly to the hardware
* registers.
* If non-NULL, 'uds' is assumed to be a pointer to a debug register
* context-saving memory block, and this function will write to that
* context-saving memory block instead.
*/
void ;
/** Reads and returns the current configuration of a hardware breakpoint.
* @param bp_num Hardware breakpoint ID. Usually an integer from 0..N.
*
* @return Filled out getBreakpoint_t with the following fields:
* @param vaddr[out] Address that the breakpoint is set to trigger on.
* @param type[out] Type of operation that will trigger the breakpoint.
* @param size[out] operand size that will trigger the breakpoint.
* @param rw[out] Access type (read/write) that will trigger thr breakpoint.
* @param uds If NULL, this function call will read directly from the hardware
* registers.
* If non-NULL, 'uds' is assumed to be a pointer to a debug register
* context-saving memory block, and this function will read from that
* context-saving memory block instead.
* @param is_enabled Bool stating whether or not the breakpoint is enabled.
*/
typedef struct getBreakpointRet getBreakpoint_t;
getBreakpoint_t ;
/** Clears a breakpoint's configuration and disables it.
* @param bp_num Hardware breakpoint ID. Usually an integer from 0..N.
* @param uds If NULL, this function call will write directly to the hardware
* registers.
* If non-NULL, 'uds' is assumed to be a pointer to a debug register
* context-saving memory block, and this function will write to that
* context-saving memory block instead.
*/
void ;
bool_t ;
static inline bool_t
/* CONFIG_HARDWARE_DEBUG_API */
/* __MACHINE_DEBUG_H_ */