summaryrefslogtreecommitdiff
path: root/extra/usb_updater/dauntless_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'extra/usb_updater/dauntless_event.h')
-rw-r--r--extra/usb_updater/dauntless_event.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/extra/usb_updater/dauntless_event.h b/extra/usb_updater/dauntless_event.h
new file mode 100644
index 0000000000..fc87d4d0bc
--- /dev/null
+++ b/extra/usb_updater/dauntless_event.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2022 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+#ifndef __EXTRA_USB_UPDATER_DAUNTLESS_EVENT_H
+#define __EXTRA_USB_UPDATER_DAUNTLESS_EVENT_H
+
+#include <stdint.h>
+
+typedef struct {
+ uint64_t time;
+ uint32_t size;
+ uint32_t event_type;
+ uint8_t payload[0];
+} dt_event_t;
+
+union dt_entry_u {
+ uint8_t raw[256];
+ dt_event_t evt;
+};
+
+
+#endif // __EXTRA_USB_UPDATER_DAUNTLESS_EVENT_H