summaryrefslogtreecommitdiff
path: root/UnixPkg/Library
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-07 04:45:48 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-07 04:45:48 +0000
commit84478dedd0e120980d03eb11615c3254eea7612e (patch)
treef270ad11d33f77b47d8b72e84e886a1a7b6d3961 /UnixPkg/Library
parent370ec7f1b01f900f5f8322859d0bee1efa962dc1 (diff)
downloadedk2-platforms-84478dedd0e120980d03eb11615c3254eea7612e.tar.xz
Remove EFI_BDS_ARCH_PROTOCOL_INSTANCE from PlatformBdsLib.h and BdsDxe module
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8495 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UnixPkg/Library')
-rw-r--r--UnixPkg/Library/UnixBdsLib/BdsPlatform.c20
-rw-r--r--UnixPkg/Library/UnixBdsLib/BdsPlatform.h29
2 files changed, 10 insertions, 39 deletions
diff --git a/UnixPkg/Library/UnixBdsLib/BdsPlatform.c b/UnixPkg/Library/UnixBdsLib/BdsPlatform.c
index 7b11dd0f7d..cbbfc4e227 100644
--- a/UnixPkg/Library/UnixBdsLib/BdsPlatform.c
+++ b/UnixPkg/Library/UnixBdsLib/BdsPlatform.c
@@ -66,8 +66,9 @@ SetupVariableInit (
// BDS Platform Functions
//
VOID
+EFIAPI
PlatformBdsInit (
- IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData
+ VOID
)
/*++
@@ -78,8 +79,6 @@ Routine Description:
Arguments:
- PrivateData - The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance
-
Returns:
None.
@@ -300,8 +299,8 @@ Returns:
}
VOID
+EFIAPI
PlatformBdsPolicyBehavior (
- IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData,
IN OUT LIST_ENTRY *DriverOptionList,
IN OUT LIST_ENTRY *BootOptionList
)
@@ -315,8 +314,6 @@ Routine Description:
Arguments:
- PrivateData - The EFI_BDS_ARCH_PROTOCOL_INSTANCE instance
-
DriverOptionList - The header of the driver option link list
BootOptionList - The header of the boot option link list
@@ -327,8 +324,9 @@ Returns:
--*/
{
- EFI_STATUS Status;
- UINT16 Timeout;
+ EFI_STATUS Status;
+ UINT16 Timeout;
+ EFI_BOOT_MODE BootMode;
//
// Init the time out value
@@ -343,13 +341,13 @@ Returns:
//
// Get current Boot Mode
//
- Status = BdsLibGetBootMode (&PrivateData->BootMode);
+ Status = BdsLibGetBootMode (&BootMode);
//
// Go the different platform policy with different boot mode
// Notes: this part code can be change with the table policy
//
- switch (PrivateData->BootMode) {
+ switch (BootMode) {
case BOOT_ASSUMING_NO_CONFIGURATION_CHANGES:
case BOOT_WITH_MINIMAL_CONFIGURATION:
@@ -442,6 +440,7 @@ Returns:
}
VOID
+EFIAPI
PlatformBdsBootSuccess (
IN BDS_COMMON_OPTION *Option
)
@@ -478,6 +477,7 @@ Returns:
}
VOID
+EFIAPI
PlatformBdsBootFail (
IN BDS_COMMON_OPTION *Option,
IN EFI_STATUS Status,
diff --git a/UnixPkg/Library/UnixBdsLib/BdsPlatform.h b/UnixPkg/Library/UnixBdsLib/BdsPlatform.h
index 61f7a1f8b1..4fd8bf181b 100644
--- a/UnixPkg/Library/UnixBdsLib/BdsPlatform.h
+++ b/UnixPkg/Library/UnixBdsLib/BdsPlatform.h
@@ -83,20 +83,6 @@ typedef struct {
// Platform BDS Functions
//
VOID
-PlatformBdsInit (
- IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData
- )
-;
-
-VOID
-PlatformBdsPolicyBehavior (
- IN EFI_BDS_ARCH_PROTOCOL_INSTANCE *PrivateData,
- IN LIST_ENTRY *DriverOptionList,
- IN LIST_ENTRY *BootOptionList
- )
-;
-
-VOID
PlatformBdsGetDriverOption (
IN LIST_ENTRY *BdsDriverLists
)
@@ -115,21 +101,6 @@ PlatformBdsConnectSequence (
)
;
-VOID
-PlatformBdsBootFail (
- IN BDS_COMMON_OPTION *Option,
- IN EFI_STATUS Status,
- IN CHAR16 *ExitData,
- IN UINTN ExitDataSize
- )
-;
-
-VOID
-PlatformBdsBootSuccess (
- IN BDS_COMMON_OPTION *Option
- )
-;
-
EFI_STATUS
ProcessCapsules (
EFI_BOOT_MODE BootMode