summaryrefslogtreecommitdiffstats
path: root/DynamicTablesPkg/Include/Library/AcpiHelperLib.h
diff options
context:
space:
mode:
Diffstat (limited to 'DynamicTablesPkg/Include/Library/AcpiHelperLib.h')
-rw-r--r--DynamicTablesPkg/Include/Library/AcpiHelperLib.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/DynamicTablesPkg/Include/Library/AcpiHelperLib.h b/DynamicTablesPkg/Include/Library/AcpiHelperLib.h
index 53ab19b1d1..094392a1a6 100644
--- a/DynamicTablesPkg/Include/Library/AcpiHelperLib.h
+++ b/DynamicTablesPkg/Include/Library/AcpiHelperLib.h
@@ -34,6 +34,21 @@ AsciiFromHex (
IN UINT8 Hex
);
+/** Convert an ASCII char representing an hexadecimal number
+ to its integer value.
+
+ @param [in] Char Char to convert.
+ Must be between '0'-'9' or 'A'-'F' or 'a'-'f'.
+
+ @return The corresponding integer (between 0-16).
+ -1 if error.
+**/
+UINT8
+EFIAPI
+HexFromAscii (
+ IN CHAR8 Char
+ );
+
/** Check if a HID is a valid PNP ID.
@param [in] Hid The Hid to validate.