TianoCore EDK2 master
|
#include "InternalBm.h"
Go to the source code of this file.
Data Structures | |
struct | BM_SDMMC_MANUFACTURER |
Macros | |
#define | VENDOR_IDENTIFICATION_OFFSET 3 |
#define | VENDOR_IDENTIFICATION_LENGTH 8 |
#define | PRODUCT_IDENTIFICATION_OFFSET 11 |
#define | PRODUCT_IDENTIFICATION_LENGTH 16 |
Variables | |
CONST UINT16 | mBmUsbLangId = 0x0409 |
CHAR16 | mBmUefiPrefix [] = L"UEFI " |
CHAR16 | mBootDescGenericManufacturer [] = L"Generic" |
CHAR16 | mBootDescSd [] = L"SD Device" |
CHAR16 | mBootDescEmmc [] = L"eMMC Device" |
CHAR16 | mBootDescEmmcUserData [] = L"eMMC User Data" |
CHAR16 | mBootDescEmmcBoot1 [] = L"eMMC Boot 1" |
CHAR16 | mBootDescEmmcBoot2 [] = L"eMMC Boot 2" |
CHAR16 | mBootDescEmmcGp1 [] = L"eMMC GP 1" |
CHAR16 | mBootDescEmmcGp2 [] = L"eMMC GP 2" |
CHAR16 | mBootDescEmmcGp3 [] = L"eMMC GP 3" |
CHAR16 | mBootDescEmmcGp4 [] = L"eMMC GP 4" |
BM_SDMMC_MANUFACTURER | mSdManufacturers [] |
BM_SDMMC_MANUFACTURER | mMmcManufacturers [] |
LIST_ENTRY | mPlatformBootDescriptionHandlers = INITIALIZE_LIST_HEAD_VARIABLE (mPlatformBootDescriptionHandlers) |
BM_GET_BOOT_DESCRIPTION | mBmBootDescriptionHandlers [] |
Library functions which relate with boot option description.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.
(C) Copyright 2015 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file BmBootDescription.c.
#define PRODUCT_IDENTIFICATION_LENGTH 16 |
Definition at line 15 of file BmBootDescription.c.
#define PRODUCT_IDENTIFICATION_OFFSET 11 |
Definition at line 14 of file BmBootDescription.c.
#define VENDOR_IDENTIFICATION_LENGTH 8 |
Definition at line 13 of file BmBootDescription.c.
#define VENDOR_IDENTIFICATION_OFFSET 3 |
Definition at line 12 of file BmBootDescription.c.
BM_BOOT_TYPE BmDevicePathType | ( | IN EFI_DEVICE_PATH_PROTOCOL * | DevicePath | ) |
For a bootable Device path, return its boot type.
DevicePath | The bootable device Path to check |
AcpiFloppyBoot | If given device path contains ACPI_DEVICE_PATH type device path node which HID is floppy device. |
MessageAtapiBoot | If given device path contains MESSAGING_DEVICE_PATH type device path node and its last device path node's subtype is MSG_ATAPI_DP. |
MessageSataBoot | If given device path contains MESSAGING_DEVICE_PATH type device path node and its last device path node's subtype is MSG_SATA_DP. |
MessageScsiBoot | If given device path contains MESSAGING_DEVICE_PATH type device path node and its last device path node's subtype is MSG_SCSI_DP. |
MessageUsbBoot | If given device path contains MESSAGING_DEVICE_PATH type device path node and its last device path node's subtype is MSG_USB_DP. |
BmMiscBoot | If tiven device path doesn't match the above condition. |
Definition at line 99 of file BmBootDescription.c.
VOID BmEliminateExtraSpaces | ( | IN CHAR16 * | Str | ) |
Eliminate the extra spaces in the Str to one space.
Str | Input string info. |
Definition at line 172 of file BmBootDescription.c.
CHAR16 * BmGetBootDescription | ( | IN EFI_HANDLE | Handle | ) |
Return the boot description for the controller.
Handle | Controller handle. |
Definition at line 1033 of file BmBootDescription.c.
CHAR16 * BmGetDescriptionFromDiskInfo | ( | IN EFI_HANDLE | Handle | ) |
Try to get the controller's ATA/ATAPI description.
Handle | Controller handle. |
Definition at line 340 of file BmBootDescription.c.
CHAR16 * BmGetEmmcTypeDescription | ( | CONTROLLER_DEVICE_PATH * | DevicePath | ) |
Get the eMMC partition type from a controller path.
DevicePath | Pointer to a CONTROLLER_DEVICE_PATH. |
Definition at line 251 of file BmBootDescription.c.
CHAR16 * BmGetLoadFileDescription | ( | IN EFI_HANDLE | Handle | ) |
Return the boot description for LoadFile
Handle | Controller handle. |
Definition at line 765 of file BmBootDescription.c.
CHAR16 * BmGetMiscDescription | ( | IN EFI_HANDLE | Handle | ) |
Return the boot description for the controller based on the type.
Handle | Controller handle. |
Definition at line 920 of file BmBootDescription.c.
CHAR16 * BmGetNetworkDescription | ( | IN EFI_HANDLE | Handle | ) |
Return the description for network boot device.
Handle | Controller handle. |
Definition at line 608 of file BmBootDescription.c.
CHAR16 * BmGetNvmeDescription | ( | IN EFI_HANDLE | Handle | ) |
Return the boot description for NVME boot device.
Handle | Controller handle. |
Definition at line 812 of file BmBootDescription.c.
CHAR16 * BmGetSdMmcDescription | ( | IN CHAR16 * | ManufacturerName, |
IN UINT8 * | ProductName, | ||
IN UINT8 | ProductNameLength, | ||
IN UINT8 | SerialNumber[4], | ||
IN CHAR16 * | DeviceType | ||
) |
Get an SD/MMC boot description.
ManufacturerName | Manufacturer name string. |
ProductName | Product name from CID. |
ProductNameLength | Length of ProductName. |
SerialNumber | Serial number from CID. |
DeviceType | Device type string (e.g. SD or an eMMC partition). |
Definition at line 289 of file BmBootDescription.c.
Get the SD/MMC manufacturer name from an ID.
Id | Manufacturer ID. |
IsMmc | Boolean indicating whether the ID is for SD or eMMC. |
Definition at line 221 of file BmBootDescription.c.
CHAR16 * BmGetUsbDescription | ( | IN EFI_HANDLE | Handle | ) |
Try to get the controller's USB description.
Handle | Controller handle. |
Definition at line 504 of file BmBootDescription.c.
VOID BmMakeBootOptionDescriptionUnique | ( | EFI_BOOT_MANAGER_LOAD_OPTION * | BootOptions, |
UINTN | BootOptionCount | ||
) |
Enumerate all boot option descriptions and append " 2"/" 3"/... to make unique description.
BootOptions | Array of boot options. |
BootOptionCount | Count of boot options. |
Definition at line 1094 of file BmBootDescription.c.
Swap a byte array.
Source | Input byte array. |
Length | The size of Source in bytes. |
Definition at line 195 of file BmBootDescription.c.
EFI_STATUS EFIAPI EfiBootManagerRegisterBootDescriptionHandler | ( | IN EFI_BOOT_MANAGER_BOOT_DESCRIPTION_HANDLER | Handler | ) |
Register the platform provided boot description handler.
Handler | The platform provided boot description handler |
EFI_SUCCESS | The handler was registered successfully. |
EFI_ALREADY_STARTED | The handler was already registered. |
EFI_OUT_OF_RESOURCES | There is not enough resource to perform the registration. |
Definition at line 987 of file BmBootDescription.c.
BM_GET_BOOT_DESCRIPTION mBmBootDescriptionHandlers[] |
Definition at line 1016 of file BmBootDescription.c.
CHAR16 mBmUefiPrefix[] = L"UEFI " |
Definition at line 18 of file BmBootDescription.c.
CONST UINT16 mBmUsbLangId = 0x0409 |
Definition at line 17 of file BmBootDescription.c.
CHAR16 mBootDescEmmc[] = L"eMMC Device" |
Definition at line 22 of file BmBootDescription.c.
CHAR16 mBootDescEmmcBoot1[] = L"eMMC Boot 1" |
Definition at line 24 of file BmBootDescription.c.
CHAR16 mBootDescEmmcBoot2[] = L"eMMC Boot 2" |
Definition at line 25 of file BmBootDescription.c.
CHAR16 mBootDescEmmcGp1[] = L"eMMC GP 1" |
Definition at line 26 of file BmBootDescription.c.
CHAR16 mBootDescEmmcGp2[] = L"eMMC GP 2" |
Definition at line 27 of file BmBootDescription.c.
CHAR16 mBootDescEmmcGp3[] = L"eMMC GP 3" |
Definition at line 28 of file BmBootDescription.c.
CHAR16 mBootDescEmmcGp4[] = L"eMMC GP 4" |
Definition at line 29 of file BmBootDescription.c.
CHAR16 mBootDescEmmcUserData[] = L"eMMC User Data" |
Definition at line 23 of file BmBootDescription.c.
CHAR16 mBootDescGenericManufacturer[] = L"Generic" |
Definition at line 20 of file BmBootDescription.c.
CHAR16 mBootDescSd[] = L"SD Device" |
Definition at line 21 of file BmBootDescription.c.
BM_SDMMC_MANUFACTURER mMmcManufacturers[] |
Definition at line 60 of file BmBootDescription.c.
LIST_ENTRY mPlatformBootDescriptionHandlers = INITIALIZE_LIST_HEAD_VARIABLE (mPlatformBootDescriptionHandlers) |
Definition at line 78 of file BmBootDescription.c.
BM_SDMMC_MANUFACTURER mSdManufacturers[] |
Definition at line 36 of file BmBootDescription.c.