blob: 2b65efd19a46989e14ff89a7f70975ef56cf3f89 [file] [log] [blame]
David Howellsd2709c72012-11-19 22:21:03 +00001#ifndef _UAPI_LINUX_HW_BREAKPOINT_H
2#define _UAPI_LINUX_HW_BREAKPOINT_H
3
4enum {
5 HW_BREAKPOINT_LEN_1 = 1,
6 HW_BREAKPOINT_LEN_2 = 2,
Pratyush Anand651be3c2016-11-14 19:32:42 +05307 HW_BREAKPOINT_LEN_3 = 3,
David Howellsd2709c72012-11-19 22:21:03 +00008 HW_BREAKPOINT_LEN_4 = 4,
Pratyush Anand651be3c2016-11-14 19:32:42 +05309 HW_BREAKPOINT_LEN_5 = 5,
10 HW_BREAKPOINT_LEN_6 = 6,
11 HW_BREAKPOINT_LEN_7 = 7,
David Howellsd2709c72012-11-19 22:21:03 +000012 HW_BREAKPOINT_LEN_8 = 8,
13};
14
15enum {
16 HW_BREAKPOINT_EMPTY = 0,
17 HW_BREAKPOINT_R = 1,
18 HW_BREAKPOINT_W = 2,
19 HW_BREAKPOINT_RW = HW_BREAKPOINT_R | HW_BREAKPOINT_W,
20 HW_BREAKPOINT_X = 4,
21 HW_BREAKPOINT_INVALID = HW_BREAKPOINT_RW | HW_BREAKPOINT_X,
22};
23
24enum bp_type_idx {
25 TYPE_INST = 0,
26#ifdef CONFIG_HAVE_MIXED_BREAKPOINTS_REGS
27 TYPE_DATA = 0,
28#else
29 TYPE_DATA = 1,
30#endif
31 TYPE_MAX
32};
33
34#endif /* _UAPI_LINUX_HW_BREAKPOINT_H */