summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2015-11-17 10:08:40 +0000
committerniruiyu <niruiyu@Edk2>2015-11-17 10:08:40 +0000
commit418e8cd9240af2249be0cb1d1e38b81b603218e4 (patch)
tree41eeddf293b6809066c150075fa0ff85695f2f3e /MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h
parentd95ff8e8d86b36482b815141233f6c315b43c203 (diff)
downloadedk2-platforms-418e8cd9240af2249be0cb1d1e38b81b603218e4.tar.xz
MdeModulePkg: Use BmCharToUint in BmIsKeyOptionVariable
The patch also moves the BmCharToUint to BmMisc.c because it belongs to misc functions. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Sunny Wang <sunnywang@hpe.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18855 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h')
-rw-r--r--MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h b/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h
index 290ce3fc54..862811e7b5 100644
--- a/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h
+++ b/MdeModulePkg/Library/UefiBootManagerLib/InternalBm.h
@@ -434,4 +434,17 @@ BmPrintDp (
EFI_DEVICE_PATH_PROTOCOL *DevicePath
);
+/**
+ Convert a single character to number.
+ It assumes the input Char is in the scope of L'0' ~ L'9' and L'A' ~ L'F'
+
+ @param Char The input char which need to convert to int.
+
+ @return The converted 8-bit number or (UINTN) -1 if conversion failed.
+**/
+UINTN
+BmCharToUint (
+ IN CHAR16 Char
+ );
+
#endif // _INTERNAL_BM_H_