UEFI: Add support for UEFI time and UEFI events; fix STOP \n -> \r\n conversion (#5549)

* add support for UEFI time and UEFI events; fix STOP \n -> \r\n conversion

* apply EFI timezone offset
This commit is contained in:
Matthew Hiles
2026-07-24 13:29:42 -04:00
committed by GitHub
parent 528476f2b3
commit 259842dc2e
5 changed files with 151 additions and 4 deletions
+8 -2
View File
@@ -9,8 +9,10 @@ import (
const deviceName = "UEFI"
type (
EFI_STATUS = deviceuefi.EFI_STATUS
TextOutput = deviceuefi.TextOutput
EFI_STATUS = deviceuefi.EFI_STATUS
EFI_TIME = deviceuefi.EFI_TIME
EFI_TIME_CAPABILITIES = deviceuefi.EFI_TIME_CAPABILITIES
TextOutput = deviceuefi.TextOutput
Error = deviceuefi.Error
)
@@ -88,6 +90,10 @@ var (
ErrHTTPError = deviceuefi.ErrHTTPError
)
func GetTime() (EFI_TIME, EFI_STATUS) {
return deviceuefi.GetTime()
}
func ConsoleOut() *TextOutput {
return deviceuefi.ConsoleOut()
}