summaryrefslogtreecommitdiff
path: root/Platform/Intel/BoardModulePkg/Library
AgeCommit message (Collapse)AuthorFilesLines
2025-07-08Platform/Intel: Remove UGA supportGuoMinJ1-1/+0
The Universal Graphics Adapter (UGA) is a graphic abstraction. The UGA I/O and Draw protocols are deprecated since UEFI 2.0 was introduced. Cf. the UEFI spec v2.9: "Appendix L - EFI 1.10 Protocol Changes and Deprecation List" section L.2 "Deprecated Protocols" Remove the UGA support. Signed-off-by: GuoMinJ <newexplorerj@gmail.com> Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
2024-09-16Replace deprecated EFI_D_* with DEBUG_*Rebecca Cran1-1/+1
Replaced the deprecated EFI_D_{INFO,WARN,ERROR,VERBOSE} usage with DEBUG_{INFO,WARN,ERROR,VERBOSE}. Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
2024-01-05BoardModulePkg\Library\BiosIdLib: Support Standalone MMLixia Huang7-201/+242
Add Standalone Mm BiosIdLib and format code with Uncrustify. Cc: Eric Dong <eric.dong@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com> Signed-off-by: Lixia Huang <lisa.huang@intel.com>
2023-05-16Platform/Intel: Fix type mismatches from prototypes in BoardBdsHookLib.cRebecca Cran1-0/+3
Add EFIAPI to the implementations of: BdsBeforeConsoleAfterTrustedConsoleCallback BdsBeforeConsoleBeforeEndOfDxeGuidCallback BdsAfterConsoleReadyBeforeBootOptionCallback This makes them match the prototypes, and avoids an -Wlto-type-mismatch warning. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Isaac Oram <isaac.w.oram@intel.com>
2023-01-19BoardModulePkg: Adds PCD to load UEFI Shell imageAbdul Lateef Attar2-15/+17
defines two PCDs, PcdShellFile and PcdShellFileDesc, which holds the GUID and description of the UEFI shell file to be loaded. A PCDs based solution gives flexibility to the user to load different images, by just overriding the DSC file. The user can load a diagnostic image or test image during PCDBootToShellOnly or later stages. Cc: Isaac Oram <isaac.w.oram@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by: Abdul Lateef Attar <AbdulLateef.Attar@amd.com> Reviewed-by: Isaac Oram <isaac.w.oram@intel.com>
2023-01-19BoardModulePkg: Copy device path before processingAbdul Lateef Attar1-5/+19
GCC compiler puts the DevicePath PCDs to the read-only section. During boot if try to process the device path after PtrGetPtr it throws a page fault exception. Hence making a local copy using DuplicateDevicePath() to avoid the page fault exception. Cc: Isaac Oram <isaac.w.oram@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by: Abdul Lateef Attar <abdattar@amd.com> Reviewed-by: : Isaac Oram <isaac.w.oram@intel.com>
2022-09-16BoardModulePkg/BoardBdsHookLib: Fix F7 overwrites Boot0000James Wang1-9/+12
Check if mBootMenuOptionNumber is valid or not before calling RegisterBootOptionHotkey to avoid overwriting Boot0000 Cc: Eric Dong <eric.dong@intel.com> Cc: Isaac Oram <isaac.w.oram@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by: James Wang <jameswang@ami.com> Reviewed-by: Isaac Oram <isaac.w.oram@intel.com>
2021-08-29BoardModulePkg/BoardBdsHookLib: Fix mSetupOptionNumber checkBenjamin Doron1-1/+1
If CreateFvBootOption() fails, RegisterFvBootOption() will return LoadOptionNumberUnassigned, which is non-zero. Therefore, correct the check when attempting to register hotkeys, to be able to detect if UiApp is not present. Cc: Eric Dong <eric.dong@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
2021-08-27BoardModulePkg/BoardBdsHookLib: Register UiApp as boot optionBenjamin Doron2-22/+11
BootManagerMenuApp is the default PcdBootManagerMenuFile. It allows choosing a boot device, but system configuration is performed in UiApp. Therefore, un-comment and fix UiApp boot option registration. The F2 hotkey can be used to enter UiApp. Cc: Eric Dong <eric.dong@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
2021-03-11Intel/BoardModulePkg: sort load option in the first bootLiu, Zhiguang1-35/+37
Currently, load option is only sorted when setup is the first priority in boot option. However, Below change in UefiBootManagerLib puts setup in the end, which causes the sort function won't be called. MdeModulePkg/UefiBootManagerLib: Put BootMenu at the end of BootOrder SHA-1: 7f34681c488aee2563eaa2afcc6a2c8aa7c5b912 This patch will set a NV variable in the first boot, and sort the boot option in first boot. Reviewed-by: Eric Dong <eric.dong@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Cc: Prince Agyeman <prince.agyeman@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Zhichao Gao <zhichao.gao@intel.com> Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
2020-11-02BoardModulePkg: Early connect PCI Root Bridge in BoardBdsHookLibHeng Luo1-39/+38
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3016 Trigger PCI Bus scanning at BdsBeforeConsoleAfterTrustedConsoleCallback(). Move the call to EnumUsbKeyboard() to after PciEnumComplete. Cc: Eric Dong <eric.dong@intel.com> Cc: Chasel Chiu <chasel.chiu@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Signed-off-by: Heng Luo <heng.luo@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Chasel Chiu <chasel.chiu@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
2020-04-21BoardModulePkg: Add Generic BoardBootManagerLibPrince Agyeman2-0/+142
This library implements a generic PlatformBootManagerWaitCallback and PlatformBootManagerUnableToBoot which will be linked Minplatform's PlatformBootManager library instance. Cc: Michael Kubacki <michael.a.kubacki@intel.com> Cc: Chasel Chiu <chasel.chiu@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Signed-off-by: Prince Agyeman <prince.agyeman@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com> Reviewed-by: Michael Kubacki <michael.a.kubacki@intel.com>
2020-04-21BoardModulePkg: Add BDS Hook LibraryPrince Agyeman5-0/+2377
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2336 Added a generic board BDS hook library that implements BDS hook points as defined in the Minimum platform specification. This library implements callbacks for the three MinPlatformPkg BDS event groups, namely gBdsEventBeforeConsoleAfterTrustedConsoleGuid, gBdsEventBeforeConsoleBeforeEndOfDxeGuid and gBdsEventAfterConsoleReadyBeforeBootOptionGuid. This Library also implements callbacks for pre-existing event groups: gEfiEndOfDxeEventGroupGuid, gEfiPciEnumerationCompleteProtocolGuid, gEfiDxeSmmReadyToLockProtocolGuid. These callbacks can be registered to their respective event groups, through other libraries or DXE drivers Cc: Michael Kubacki <michael.a.kubacki@intel.com> Cc: Chasel Chiu <chasel.chiu@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Co-authored-by: Nate DeSimone <nathaniel.l.desimone@intel.com> Signed-off-by: Prince Agyeman <prince.agyeman@intel.com> Reviewed-by: Michael Kubacki <michael.a.kubacki@intel.com>
2020-01-30BoardModulePkg: Fix ECC Coding Style IssuesPrince Agyeman2-7/+7
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2453 Fixed coding style issues as reported by the ECC tool Cc: Shenglei Zhang <shenglei.zhang@intel.com> Cc: Chasel Chiu <chasel.chiu@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Cc: Michael Kubacki <michael.a.kubacki@intel.com> Signed-off-by: Prince Agyeman <prince.agyeman@intel.com> Reviewed-by: Chasel Chiu <chasel.chiu@intel.com> Reviewed-by: Michael Kubacki <michael.a.kubacki@intel.com>
2019-11-11BoardModulePkg: Remove unused variableAgyeman, Prince1-2/+0
Removed unused variable 'RegEmptied' in BdsPs2KbcLib.c to avoid gcc 5 build error unused-but-set-variable. Cc: Michael Kubacki <michael.a.kubacki@intel.com> Cc: Chasel Chiu <chasel.chiu@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Signed-off-by: Prince Agyeman <prince.agyeman@intel.com> Reviewed-by: Michael Kubacki <michael.a.kubacki@intel.com>
2019-11-07BoardModulePkg: Add Ps2 Keyboard LibraryAgyeman, Prince3-0/+305
Added a generic Ps2 keyboard library that adds ps2 device path to ConIn and ConInDev Uefi variables. Cc: Michael Kubacki <michael.a.kubacki@intel.com> Cc: Chasel Chiu <chasel.chiu@intel.com> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Signed-off-by: Prince Agyeman <prince.agyeman@intel.com> Reviewed-by: Chasel Chiu <chasel.chiu@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com> Reviewed-by: Michael Kubacki <michael.a.kubacki@intel.com>
2019-10-08BoardModulePkg/FirmwareBootMediaInfoLib: Add libraryMichael Kubacki2-0/+59
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-09-24BoardModulePkg/CmosAccessLib: Update the end of last lineShenglei Zhang1-1/+1
The original end of last line is '/r'. Now update it to '/r/n'. Cc: Eric Dong <eric.dong@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com>
2019-05-29Platform/Intel/BoardModulePkg: Add BiosId ModuleEric Dong4-0/+450
https://bugzilla.tianocore.org/show_bug.cgi?id=1851 Add Bios ID library used to read BIOS ID related info. This library exports APIs like below: GetBiosId GetBiosVersionDateTime Cc: Michael Kubacki <michael.a.kubacki@intel.com> Cc: Sai Chaganty <rangasai.v.chaganty@intel.com> Cc: Oram Isaac W <isaac.w.oram@intel.com> Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
2019-05-29Platform/Intel: Add Cmos related modules to BoardModulePkgEric Dong5-0/+611
https://bugzilla.tianocore.org/show_bug.cgi?id=1552 Add Cmos related libraries to BoardModulePkg. Totally two library have been added, one is CmosAccessLib and the other is PlatformCmosAccessLib. PlatformCmosAccessLib will be used by CmosAccessLib. These two libraries provide the generic operations for CMOS access. APIs exports by PlatformCmosAccessLib include: PlatformCmosGetEntry PlatformCmosGetNmiState APIs exports by CmosAccessLib include: CmosRead8 CmosWrite8 CmosRead16 CmosWrite16 CmosRead32 CmosWrite32 CmosInit Cc: Michael Kubacki <michael.a.kubacki@intel.com> Cc: Sai Chaganty <rangasai.v.chaganty@intel.com> Cc: Oram Isaac W <isaac.w.oram@intel.com> Sign-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Signed-off-by: Eric Dong <eric.dong@intel.com>