diff options
author | gdong1 <guo.dong@intel.com> | 2016-10-17 14:47:07 -0700 |
---|---|---|
committer | Maurice Ma <maurice.ma@intel.com> | 2016-10-26 15:34:30 -0700 |
commit | 2f20bfd98ee40e241924c31b4e08089b3d688317 (patch) | |
tree | 08f792a50216025a098eb63e52f34337af8916a9 /CorebootModulePkg/Include | |
parent | 3f0edb77f6c6b2ae644fac5526febbf3e2fbef73 (diff) | |
download | edk2-2f20bfd98ee40e241924c31b4e08089b3d688317.tar.gz edk2-2f20bfd98ee40e241924c31b4e08089b3d688317.tar.bz2 edk2-2f20bfd98ee40e241924c31b4e08089b3d688317.zip |
CorebootModulePkg: Add a library to parse platform specific info.
Update CbSupportPei to consume the new library, so platform could provide
platform specific library instance to parse platform specif info.
And add a NULL library instance to pass build.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: gdong1 <guo.dong@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
Diffstat (limited to 'CorebootModulePkg/Include')
-rw-r--r-- | CorebootModulePkg/Include/Library/CbPlatformSupportLib.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/CorebootModulePkg/Include/Library/CbPlatformSupportLib.h b/CorebootModulePkg/Include/Library/CbPlatformSupportLib.h new file mode 100644 index 0000000000..153d3d80ad --- /dev/null +++ b/CorebootModulePkg/Include/Library/CbPlatformSupportLib.h @@ -0,0 +1,34 @@ +/** @file + Coreboot Platform Support library. Platform can provide an implementation of this + library class to provide hooks that may be required for some type of + platform features. + +Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> +This program and the accompanying materials are licensed and made available under +the terms and conditions of the BSD License that 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. + +**/ + +#ifndef __CB_PLATFORM_SUPPORT_LIB__ +#define __CB_PLATFORM_SUPPORT_LIB__ + +/** + Parse platform specific information from coreboot. + + @retval RETURN_SUCCESS The platform specific coreboot support succeeded. + @retval RETURN_DEVICE_ERROR The platform specific coreboot support could not be completed. + +**/ +EFI_STATUS +EFIAPI +CbParsePlatformInfo ( + VOID + ); + +#endif // __CB_PLATFORM_SUPPORT_LIB__ + |