2008-04-09 07:38:12 +02:00
|
|
|
/** @file
|
|
|
|
declares interface functions
|
2008-01-21 15:39:56 +01:00
|
|
|
|
2008-04-09 07:38:12 +02:00
|
|
|
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
2008-01-21 15:39:56 +01:00
|
|
|
All rights reserved. This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
|
2008-04-09 07:38:12 +02:00
|
|
|
**/
|
2008-01-21 15:39:56 +01:00
|
|
|
|
2008-07-10 12:30:43 +02:00
|
|
|
#ifndef _EFI_BDS_BBS_SUPPORT_H_
|
|
|
|
#define _EFI_BDS_BBS_SUPPORT_H_
|
2008-01-21 15:39:56 +01:00
|
|
|
|
|
|
|
#include "BootMaint.h"
|
2008-07-10 12:30:43 +02:00
|
|
|
|
2008-07-10 11:00:40 +02:00
|
|
|
#define MAX_BBS_ENTRIES 0x100
|
|
|
|
|
2008-07-04 10:04:10 +02:00
|
|
|
/**
|
2008-07-10 12:30:43 +02:00
|
|
|
Build Legacy Device Name String according.
|
2008-07-04 10:04:10 +02:00
|
|
|
|
2008-07-10 12:30:43 +02:00
|
|
|
@param CurBBSEntry BBS Table.
|
|
|
|
@param Index Index.
|
|
|
|
@param BufSize The buffer size.
|
|
|
|
@param BootString The output string.
|
2008-07-04 10:04:10 +02:00
|
|
|
|
2008-07-10 12:30:43 +02:00
|
|
|
@return VOID No output.
|
2008-07-04 10:04:10 +02:00
|
|
|
|
|
|
|
**/
|
2008-01-21 15:39:56 +01:00
|
|
|
VOID
|
|
|
|
BdsBuildLegacyDevNameString (
|
|
|
|
IN BBS_TABLE *CurBBSEntry,
|
|
|
|
IN UINTN Index,
|
|
|
|
IN UINTN BufSize,
|
|
|
|
OUT CHAR16 *BootString
|
|
|
|
);
|
|
|
|
|
2008-07-04 10:04:10 +02:00
|
|
|
/**
|
2008-07-10 12:30:43 +02:00
|
|
|
Delete all the invalid legacy boot options.
|
2008-07-04 10:04:10 +02:00
|
|
|
|
2008-07-10 12:30:43 +02:00
|
|
|
|
2008-07-04 10:04:10 +02:00
|
|
|
|
2008-07-10 12:30:43 +02:00
|
|
|
@retval EFI_SUCCESS All invalide legacy boot options are deleted.
|
|
|
|
@retval EFI_OUT_OF_RESOURCES Fail to allocate necessary memory.
|
|
|
|
@retval EFI_NOT_FOUND Fail to retrive variable of boot order.
|
2008-07-04 10:04:10 +02:00
|
|
|
**/
|
2008-01-21 15:39:56 +01:00
|
|
|
EFI_STATUS
|
|
|
|
BdsDeleteAllInvalidLegacyBootOptions (
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
2008-07-04 10:04:10 +02:00
|
|
|
/**
|
2008-01-21 15:39:56 +01:00
|
|
|
|
|
|
|
Add the legacy boot options from BBS table if they do not exist.
|
|
|
|
|
2008-07-04 10:04:10 +02:00
|
|
|
@retval EFI_SUCCESS The boot options are added successfully or they are already in boot options.
|
|
|
|
@retval others An error occurred when creating legacy boot options.
|
2008-01-21 15:39:56 +01:00
|
|
|
|
2008-07-04 10:04:10 +02:00
|
|
|
**/
|
|
|
|
EFI_STATUS
|
|
|
|
BdsAddNonExistingLegacyBootOptions (
|
|
|
|
VOID
|
2008-09-04 11:37:28 +02:00
|
|
|
);
|
2008-01-21 15:39:56 +01:00
|
|
|
|
2008-07-04 10:04:10 +02:00
|
|
|
/**
|
|
|
|
|
2008-07-10 12:30:43 +02:00
|
|
|
Add the legacy boot devices from BBS table into
|
|
|
|
the legacy device boot order.
|
2008-07-04 10:04:10 +02:00
|
|
|
|
2008-07-10 12:30:43 +02:00
|
|
|
@retval EFI_SUCCESS The boot devices are added successfully.
|
2008-07-04 10:04:10 +02:00
|
|
|
|
|
|
|
**/
|
2008-01-21 15:39:56 +01:00
|
|
|
EFI_STATUS
|
|
|
|
BdsUpdateLegacyDevOrder (
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
2008-07-04 10:04:10 +02:00
|
|
|
/**
|
2008-07-10 12:30:43 +02:00
|
|
|
Set the boot priority for BBS entries based on boot option entry and boot order.
|
2008-07-04 10:04:10 +02:00
|
|
|
|
2008-07-10 12:30:43 +02:00
|
|
|
@param Entry The boot option is to be checked for refresh BBS table.
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS The boot priority for BBS entries is refreshed successfully.
|
2008-07-22 08:46:58 +02:00
|
|
|
@return status of BdsSetBootPriority4SameTypeDev()
|
2008-07-04 10:04:10 +02:00
|
|
|
**/
|
2008-01-21 15:39:56 +01:00
|
|
|
EFI_STATUS
|
|
|
|
BdsRefreshBbsTableForBoot (
|
|
|
|
IN BDS_COMMON_OPTION *Entry
|
|
|
|
);
|
|
|
|
|
|
|
|
#endif
|