David Howells | d2709c7 | 2012-11-19 22:21:03 +0000 | [diff] [blame] | 1 | #ifndef _UAPI_LINUX_HW_BREAKPOINT_H |
| 2 | #define _UAPI_LINUX_HW_BREAKPOINT_H |
| 3 | |
| 4 | enum { |
| 5 | HW_BREAKPOINT_LEN_1 = 1, |
| 6 | HW_BREAKPOINT_LEN_2 = 2, |
Pratyush Anand | 651be3c | 2016-11-14 19:32:42 +0530 | [diff] [blame] | 7 | HW_BREAKPOINT_LEN_3 = 3, |
David Howells | d2709c7 | 2012-11-19 22:21:03 +0000 | [diff] [blame] | 8 | HW_BREAKPOINT_LEN_4 = 4, |
Pratyush Anand | 651be3c | 2016-11-14 19:32:42 +0530 | [diff] [blame] | 9 | HW_BREAKPOINT_LEN_5 = 5, |
| 10 | HW_BREAKPOINT_LEN_6 = 6, |
| 11 | HW_BREAKPOINT_LEN_7 = 7, |
David Howells | d2709c7 | 2012-11-19 22:21:03 +0000 | [diff] [blame] | 12 | HW_BREAKPOINT_LEN_8 = 8, |
| 13 | }; |
| 14 | |
| 15 | enum { |
| 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 | |
| 24 | enum 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 */ |