mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
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
This commit is contained in:
parent
03b1a72da7
commit
30a60d29aa
@ -411,10 +411,10 @@ Returns:
|
|||||||
// Sort the remaining DriverBinding Protocol based on their Version field from
|
// Sort the remaining DriverBinding Protocol based on their Version field from
|
||||||
// highest to lowest.
|
// highest to lowest.
|
||||||
//
|
//
|
||||||
for ( ; SortIndex < DriverBindingHandleCount; SortIndex++) {
|
for ( ; SortIndex < NumberOfSortedDriverBindingProtocols; SortIndex++) {
|
||||||
HighestVersion = SortedDriverBindingProtocols[SortIndex]->Version;
|
HighestVersion = SortedDriverBindingProtocols[SortIndex]->Version;
|
||||||
HighestIndex = SortIndex;
|
HighestIndex = SortIndex;
|
||||||
for (Index = SortIndex + 1; Index < DriverBindingHandleCount; Index++) {
|
for (Index = SortIndex + 1; Index < NumberOfSortedDriverBindingProtocols; Index++) {
|
||||||
if (SortedDriverBindingProtocols[Index]->Version > HighestVersion) {
|
if (SortedDriverBindingProtocols[Index]->Version > HighestVersion) {
|
||||||
HighestVersion = SortedDriverBindingProtocols[Index]->Version;
|
HighestVersion = SortedDriverBindingProtocols[Index]->Version;
|
||||||
HighestIndex = Index;
|
HighestIndex = Index;
|
||||||
|
@ -82,4 +82,40 @@ typedef RETURN_STATUS EFI_STATUS;
|
|||||||
|
|
||||||
#define EFI_PAGES_TO_SIZE(a) ( (a) << EFI_PAGE_SHIFT)
|
#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
|
#endif
|
||||||
|
@ -23,56 +23,14 @@
|
|||||||
|
|
||||||
#include <Common/MultiPhase.h>
|
#include <Common/MultiPhase.h>
|
||||||
|
|
||||||
//
|
|
||||||
// EFI Data Types based on ANSI C integer types in EfiBind.h
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// EFI Data Types derived from other EFI data types.
|
// EFI Data Types derived from other EFI data types.
|
||||||
//
|
//
|
||||||
|
|
||||||
#define NULL_HANDLE ((VOID *) 0)
|
#define NULL_HANDLE ((VOID *) 0)
|
||||||
|
|
||||||
typedef VOID *EFI_EVENT;
|
typedef VOID *EFI_EVENT;
|
||||||
typedef UINTN EFI_TPL;
|
typedef UINTN EFI_TPL;
|
||||||
|
|
||||||
//
|
|
||||||
// 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
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Networking
|
// Networking
|
||||||
//
|
//
|
||||||
@ -1520,7 +1478,6 @@ EFI_STATUS
|
|||||||
OUT VOID **Interface
|
OUT VOID **Interface
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
UINT64 Length;
|
UINT64 Length;
|
||||||
union {
|
union {
|
||||||
@ -2453,7 +2410,6 @@ typedef enum {
|
|||||||
#include <Protocol/Hash.h>
|
#include <Protocol/Hash.h>
|
||||||
|
|
||||||
#include <Guid/EventGroup.h>
|
#include <Guid/EventGroup.h>
|
||||||
//#include <Guid/WinCertificateUefi.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user