History

counter: Introduce the Count capture component

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.

William Breathitt Gray committed 4 years ago

Commit 45d29181 parent 98302883 files · +12 −0Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/counter.h+2−0
@@ -63,6 +63,8 @@ enum counter_event_type { · 62 unmodified lines
63 COUNTER_EVENT_INDEX,63 COUNTER_EVENT_INDEX,
64 /* State of counter is changed */64 /* State of counter is changed */
65 COUNTER_EVENT_CHANGE_OF_STATE,65 COUNTER_EVENT_CHANGE_OF_STATE,
66 /* Count value captured */
67 COUNTER_EVENT_CAPTURE,
66};68};
67 69
68/**70/**