From 5430f7f60dee3747fff906b48718db8afb4589d9 Mon Sep 17 00:00:00 2001 From: Rebecca Cran Date: Tue, 14 Feb 2023 09:58:29 -0700 Subject: 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 Reviewed-by: Michael D Kinney --- MdePkg/Include/Library/JedecJep106Lib.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 MdePkg/Include/Library/JedecJep106Lib.h (limited to 'MdePkg/Include/Library') 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.
+ 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_ */ -- cgit v1.2.3