summaryrefslogtreecommitdiff
path: root/include/mkbp_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mkbp_event.h')
-rw-r--r--include/mkbp_event.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/mkbp_event.h b/include/mkbp_event.h
index cad43444b5..68e29c0cd4 100644
--- a/include/mkbp_event.h
+++ b/include/mkbp_event.h
@@ -9,6 +9,15 @@
#define __CROS_EC_MKBP_EVENT_H
/*
+ * Last time the host received an interrupt.
+ *
+ * Retrieved via __hw_clock_source_read() as close as possible
+ * to the interrupt source. Intended to be virtually the same time the
+ * first line of the AP hard irq for the EC interrupt.
+ */
+extern uint32_t mkbp_last_event_time;
+
+/*
* Sends an event to the AP.
*
* When this is called, the event data must be ready for query. Otherwise,