summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@quicinc.com>2023-02-14 09:58:29 -0700
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-04-12 14:29:54 +0000
commit5430f7f60dee3747fff906b48718db8afb4589d9 (patch)
tree837431c259b84aa3b2685e1eac17625ec2c84f58 /MdePkg/Include
parentf9278458b60d519b1635e18ab8fb6ca495f027b7 (diff)
downloadedk2-5430f7f60dee3747fff906b48718db8afb4589d9.tar.gz
edk2-5430f7f60dee3747fff906b48718db8afb4589d9.tar.bz2
edk2-5430f7f60dee3747fff906b48718db8afb4589d9.zip
MdePkg: Add new JedecJep106Lib to fetch JEDEC JEP106 manufacturer
Add a new library, JedecJep106Lib which provides a service to return the JEDEC JEP106 manufacturer string given the code and continuation bytes values. Signed-off-by: Rebecca Cran <rebecca@quicinc.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'MdePkg/Include')
-rw-r--r--MdePkg/Include/Library/JedecJep106Lib.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/MdePkg/Include/Library/JedecJep106Lib.h b/MdePkg/Include/Library/JedecJep106Lib.h
new file mode 100644
index 0000000000..de8904360d
--- /dev/null
+++ b/MdePkg/Include/Library/JedecJep106Lib.h
@@ -0,0 +1,29 @@
+/** @file
+ Provides JEDEC JEP-106 Manufacturer functions.
+
+ Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.<BR>
+ SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#ifndef JEDEC_JEP106_LIB_H_
+#define JEDEC_JEP106_LIB_H_
+
+/**
+ Looks up the JEP-106 manufacturer.
+
+ @param Code Last non-zero byte of the manufacturer's ID code.
+ @param ContinuationBytes Number of continuation bytes indicated in JEP-106.
+
+ @return The manufacturer string, or NULL if an error occurred or the
+ combination of Code and ContinuationBytes are not valid.
+
+**/
+CONST CHAR8 *
+EFIAPI
+Jep106GetManufacturerName (
+ IN UINT8 Code,
+ IN UINT8 ContinuationBytes
+ );
+
+#endif /* JEDEC_JEP106_LIB_H_ */