You've already forked edk2-platforms
mirror of
https://github.com/Dasharo/edk2-platforms.git
synced 2026-03-06 14:51:43 -08:00
The BeepDebugFeaturePkg was malformed and did not build anything and thus wasn't testable in standalone build. Added gBeepDebugFeaturePkgTokenSpaceGuid.PcdBeepDebugFeatureEnable to properly control the advanced feature inclusion. Use the standard MinPlatform includes for core libraries. This increases the build time, but reduces complexity when integrating into a board build. Board build optimization is more valuable than standalone build optimization. Enable standalone build to test the library build and the component builds using edk2 StatusCodeHandler drivers. Add unique file names for the StatusCodeHandler components to avoid collisions with any existing board handlers when incorporated in board DSC and FDF files. Add PreMemory.fdf and PostMemory.fdf content for including in board FDF or AdvancedFeaturePkg in the future. Removed unused sections in DSC and FDF to reduce file clutter. Removed stale file header content from prior proprietary licensing. Moved feature customization and common include into the package DSC file to reduce board complexity when BeepDebugFeature.dsc is included. Removed the FixedAtBuild build control for beep feature as it would be redundant with the FeatureFlag control of the whole feature. Build control is via PcdBeepDebugFeatureEnable and dynamic control is via PcdStatusCodeUseBeep. Improved Readme content, format, and coding style use. Cc: Sai Chaganty <rangasai.v.chaganty@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Eric Dong <eric.dong@intel.com> Cc: Ming Tan <ming.tan@intel.com> Signed-off-by: Isaac Oram <isaac.w.oram@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
34 lines
938 B
C
34 lines
938 B
C
/** @file
|
|
Provides services to send progress/error codes to Beep device.
|
|
|
|
Copyright (c) 2011 - 2020, Intel Corporation. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#ifndef __BEEP_LIB_H__
|
|
#define __BEEP_LIB_H__
|
|
|
|
/**
|
|
Sends a 32-bit value to Beep device.
|
|
|
|
Sends the 32-bit value specified by Value to Beep device, and returns Value.
|
|
Some implementations of this library function may perform I/O operations
|
|
directly to Beep device. Other implementations may send Value to
|
|
ReportStatusCode (), and the status code reporting mechanism will eventually
|
|
display the 32-bit value on the status reporting device.
|
|
|
|
Beep () must actively prevent recursion. If Beep () is called while
|
|
processing another Post Code Library function, then
|
|
Beep () must return Value immediately.
|
|
|
|
@param Value Beep count.
|
|
**/
|
|
VOID
|
|
EFIAPI
|
|
Beep (
|
|
IN UINT32 Value
|
|
);
|
|
|
|
#endif
|