diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-06-22 12:32:30 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-06-22 12:32:30 +0000 |
commit | 30a60d29aac19ca429dc75b6295db907618513b4 (patch) | |
tree | 1976e9659d333426b3d9f8101cd44c1bfb105de9 /MdePkg/Include/Common | |
parent | 03b1a72da7fbda3f1e11a08557da9a9e8a6e3b8b (diff) | |
download | edk2-platforms-30a60d29aac19ca429dc75b6295db907618513b4.tar.xz |
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
Diffstat (limited to 'MdePkg/Include/Common')
-rw-r--r-- | MdePkg/Include/Common/UefiBaseTypes.h | 36 |
1 files changed, 36 insertions, 0 deletions
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
|