summaryrefslogtreecommitdiff
path: root/Silicon/Hisilicon/Include/Library
diff options
context:
space:
mode:
authorHeyi Guo <heyi.guo@linaro.org>2018-01-24 18:53:07 +0800
committerLeif Lindholm <leif.lindholm@linaro.org>2018-02-07 15:37:13 +0000
commit251a388105ef86136e443e2c95bc809861c0ff9f (patch)
tree7110952f94f306fdaf1ca2e1525a29bf6b6680c6 /Silicon/Hisilicon/Include/Library
parent5845a5cde9d6bd51d77067b2594654005887a434 (diff)
downloadedk2-platforms-251a388105ef86136e443e2c95bc809861c0ff9f.tar.xz
Hisilicon/D0x: Break BMC SetBoot option out into separate library
Modify the feature of BMC set boot option as switching generic BDS. Break BMC SetBoot option out into BmcConfigBootLib. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang <huangming23@huawei.com> Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'Silicon/Hisilicon/Include/Library')
-rw-r--r--Silicon/Hisilicon/Include/Library/BmcConfigBootLib.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/Silicon/Hisilicon/Include/Library/BmcConfigBootLib.h b/Silicon/Hisilicon/Include/Library/BmcConfigBootLib.h
new file mode 100644
index 0000000000..d937234226
--- /dev/null
+++ b/Silicon/Hisilicon/Include/Library/BmcConfigBootLib.h
@@ -0,0 +1,31 @@
+/** @file
+*
+* Copyright (c) 2017, Hisilicon Limited. All rights reserved.
+* Copyright (c) 2017, Linaro Limited. All rights reserved.
+*
+* This program and the accompanying materials
+* are licensed and made available under the terms and conditions of the BSD License
+* which 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 _BMC_CONFIG_BOOT_LIB_H_
+#define _BMC_CONFIG_BOOT_LIB_H_
+
+VOID
+EFIAPI
+RestoreBootOrder (
+ VOID
+ );
+
+VOID
+EFIAPI
+HandleBmcBootType (
+ VOID
+ );
+
+#endif