From aa113b17449e67dbd808587b411aeb21ea869974 Mon Sep 17 00:00:00 2001 From: andromeda Date: Mon, 19 Oct 2026 18:54:26 -0400 Subject: minimal running stub --- lib/uefi.c3l/uefi/protocol/services/time.c3i | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 lib/uefi.c3l/uefi/protocol/services/time.c3i (limited to 'lib/uefi.c3l/uefi/protocol/services/time.c3i') diff --git a/lib/uefi.c3l/uefi/protocol/services/time.c3i b/lib/uefi.c3l/uefi/protocol/services/time.c3i new file mode 100644 index 0000000..e7e20bc --- /dev/null +++ b/lib/uefi.c3l/uefi/protocol/services/time.c3i @@ -0,0 +1,31 @@ +module uefi::protocol::time; + +const short UNSPECIFIED_TIMEZONE = 0x07FF; + +struct Time @packed { + ushort year; + char month; + char day; + char hour; + char minute; + char second; + char _pad1; + uint nanosecond; + short timezone; + DaylightFlags daylight; + char _pad2; +} + +bitstruct DaylightFlags : char { + bool adjust : 0; + bool inDaylight : 1; + char reserved : 2..7; +} + +struct TimeCapabilities @packed { + uint resolution; + uint accuracy; + bool setsToZero; +} + +alias GetTimeFn = fn EfiStatus (Time*, TimeCapabilities*); -- cgit v1.3.1