1#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,
7	HW_BREAKPOINT_LEN_4 = 4,
8	HW_BREAKPOINT_LEN_8 = 8,
9};
10
11enum {
12	HW_BREAKPOINT_EMPTY	= 0,
13	HW_BREAKPOINT_R		= 1,
14	HW_BREAKPOINT_W		= 2,
15	HW_BREAKPOINT_RW	= HW_BREAKPOINT_R | HW_BREAKPOINT_W,
16	HW_BREAKPOINT_X		= 4,
17	HW_BREAKPOINT_INVALID   = HW_BREAKPOINT_RW | HW_BREAKPOINT_X,
18};
19
20enum bp_type_idx {
21	TYPE_INST 	= 0,
22#ifdef CONFIG_HAVE_MIXED_BREAKPOINTS_REGS
23	TYPE_DATA	= 0,
24#else
25	TYPE_DATA	= 1,
26#endif
27	TYPE_MAX
28};
29
30#endif /* _UAPI_LINUX_HW_BREAKPOINT_H */
31