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>
This commit is contained in:
committed by
mergify[bot]
parent
f9278458b6
commit
5430f7f60d
29
MdePkg/Include/Library/JedecJep106Lib.h
Normal file
29
MdePkg/Include/Library/JedecJep106Lib.h
Normal file
@@ -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_ */
|
Reference in New Issue
Block a user