From 30a60d29aac19ca429dc75b6295db907618513b4 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Thu, 22 Jun 2006 12:32:30 +0000 Subject: Fix buger in DxeMain module and modify uefispec.h coding style git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@597 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Common/UefiBaseTypes.h | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'MdePkg/Include/Common') diff --git a/MdePkg/Include/Common/UefiBaseTypes.h b/MdePkg/Include/Common/UefiBaseTypes.h index 4954c10bf2..f88dd4c23d 100644 --- a/MdePkg/Include/Common/UefiBaseTypes.h +++ b/MdePkg/Include/Common/UefiBaseTypes.h @@ -82,4 +82,40 @@ typedef RETURN_STATUS EFI_STATUS; #define EFI_PAGES_TO_SIZE(a) ( (a) << EFI_PAGE_SHIFT) +// +// EFI Time Abstraction: +// Year: 2000 - 20XX +// Month: 1 - 12 +// Day: 1 - 31 +// Hour: 0 - 23 +// Minute: 0 - 59 +// Second: 0 - 59 +// Nanosecond: 0 - 999,999,999 +// TimeZone: -1440 to 1440 or 2047 +// +typedef struct { + UINT16 Year; + UINT8 Month; + UINT8 Day; + UINT8 Hour; + UINT8 Minute; + UINT8 Second; + UINT8 Pad1; + UINT32 Nanosecond; + INT16 TimeZone; + UINT8 Daylight; + UINT8 Pad2; +} EFI_TIME; + +// +// Bit definitions for EFI_TIME.Daylight +// +#define EFI_TIME_ADJUST_DAYLIGHT 0x01 +#define EFI_TIME_IN_DAYLIGHT 0x02 + +// +// Value definition for EFI_TIME.TimeZone +// +#define EFI_UNSPECIFIED_TIMEZONE 0x07FF + #endif -- cgit v1.2.3