Some devices provide a latch function to save historic Count values. This patch standardizes exposure of such functionality as Count capture components. A COUNTER_COMP_CAPTURE macro is provided for driver authors to define a capture component. A new event COUNTER_EVENT_CAPTURE is introduced to represent Count value capture events.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -63,6 +63,8 @@ enum counter_event_type { · 62 unmodified lines | ||
| 63 | 63 | COUNTER_EVENT_INDEX, |
| 64 | 64 | /* State of counter is changed */ |
| 65 | 65 | COUNTER_EVENT_CHANGE_OF_STATE, |
| 66 | + /* Count value captured */ | |
| 67 | + COUNTER_EVENT_CAPTURE, | |
| 66 | 68 | }; |
| 67 | 69 | |
| 68 | 70 | /** |