Files
edk2-platforms/Platform/Intel/BoardModulePkg/Include/Library/FirmwareBootMediaInfoLib.h
Michael Kubacki 30960fb56e BoardModulePkg/FirmwareBootMediaInfoLib: Add library
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2229

Introduces a new library class FirmwareBootMediaInfoLib that is
used to report the firmware boot media device. A default library
instance is provided that always returns the firmware boot media
is SPI flash. For platforms with other firmware boot media
options, a board-specific instance of this library should be
used instead to provide the correct firmware boot media device
information.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Michael Kubacki <michael.a.kubacki@intel.com>
Reviewed-by: Eric Dong <eric .dong@intel.com>
2019-10-08 09:20:10 -07:00

27 lines
667 B
C

/** @file
This library identifies the firmware boot media device.
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _FIRMWARE_BOOT_MEDIA_INFO_LIB_H_
#define _FIRMWARE_BOOT_MEDIA_INFO_LIB_H_
#include <Uefi.h>
#include <Library/FirmwareBootMediaLib.h>
/**
Identifies the firmware boot media type for the current boot.
@retval BOOT_MEDIA_TYPE The boot media type. A value of FwBootMediaTypeMax indicates the firmware boot media
information is unavailable.
**/
FW_BOOT_MEDIA_TYPE
IdentifyFirmwareBootMediaType (
VOID
);
#endif