![Intel Extensible Firmware Interface Specification Download Page 105](http://html1.mh-extra.com/html/intel/extensible-firmware-interface/extensible-firmware-interface_specification_2073117105.webp)
Services
Version 1.02
12/12/00
87
//*******************************************************
// EFI_TIME_CAPABILITIES
//*******************************************************
// This provides the capabilities of the
// real time clock device as exposed through the EFI interfaces.
typedef struct {
UINT32
Resolution;
UINT32
Accuracy;
BOOLEAN
SetsToZero;
} EFI_TIME_CAPABILITIES;
Resolution
Provides the reporting resolution of the real-time clock device in counts
per second. For a normal PC-AT CMOS RTC device, this value would
be 1 Hz, or 1, to indicate that the device only reports the time to the
resolution of 1 second.
Accuracy
Provides the timekeeping accuracy of the real-time clock in an error rate
of 1E-6 parts per million. For a clock with an accuracy of 50 parts per
million, the value in this field would be 50,000,000.
SetsToZero
A
TRUE
indicates that a time set operation clears the device’s time below
the
Resolution
reporting level. A
FALSE
indicates that the state
below the
Resolution
level of the device is not cleared when the time
is set. Normal PC-AT CMOS RTC devices set this value to
FALSE
.
Description
The
GetTime()
function returns a time that was valid sometime during the call to the function.
While the returned
EFI_TIME
structure contains
TimeZone
and
Daylight
savings time
information, the actual clock does not maintain these values. The current time zone and daylight
saving time information returned by
GetTime()
are the values that were last set via
SetTime()
.
The
GetTime()
function should take approximately the same amount of time to read the time
each time it is called. All reported device capabilities are to be rounded up.
During runtime, if a PC-AT CMOS device is present in the platform the caller must synchronize
access to the device before calling
GetTime()
.
Status Codes Returned
EFI_SUCCESS
The operation completed successfully.
EFI_INVALID_PARAMETER
One of the parameters has an invalid value.
EFI_DEVICE_ERROR
The time could not be retrieved due to a hardware error.
Summary of Contents for Extensible Firmware Interface
Page 1: ...Extensible Firmware Interface Specification Version 1 02 December 12 2000...
Page 4: ...Extensible Firmware Interface Specification iv 12 12 00 Version 1 02...
Page 42: ...Extensible Firmware Interface Specification 24 12 01 00 Version 1 02...
Page 190: ...Extensible Firmware Interface Specification 172 12 12 00 Version 1 02...
Page 200: ...Extensible Firmware Interface Specification 182 12 12 00 Version 1 02...
Page 226: ...Extensible Firmware Interface Specification 208 12 12 00 Version 1 02...
Page 230: ...Extensible Firmware Interface Specification 212 12 12 00 Version 1 02...
Page 252: ...Extensible Firmware Interface Specification 234 12 12 00 Version 1 02...
Page 294: ...Extensible Firmware Interface Specification 276 12 12 00 Version 1 02...
Page 348: ...Extensible Firmware Interface Specification 330 12 01 00 Version 1 01...
Page 350: ...Extensible Firmware Interface Specification 332 12 12 00 Version 1 02...
Page 354: ...Extensible Firmware Interface Specification 336 12 12 00 Version 1 02...
Page 362: ...Extensible Firmware Interface Specification 344 12 12 00 Version 1 02...
Page 486: ...Extensible Firmware Interface Specification 468 12 12 00 Version 1 02...
Page 494: ...Extensible Firmware Interface Specification 476 12 12 00 Version 1 02...