diff options
author | Christophe Lombard <clombard@linux.ibm.com> | 2023-06-20 16:52:05 +0200 |
---|---|---|
committer | Reza Arbab <arbab@linux.ibm.com> | 2023-09-12 14:22:11 -0500 |
commit | b9b330a0090d7092dffab2b8137da154c7248ad9 (patch) | |
tree | df99eb84ab3f1c64897a3224af40a4e110b4af37 /libmctp/libmctp-alloc.h | |
parent | a55d0672d62aaf6eb77dcbc6461d35b751b56c41 (diff) | |
download | skiboot-b9b330a0090d7092dffab2b8137da154c7248ad9.zip skiboot-b9b330a0090d7092dffab2b8137da154c7248ad9.tar.gz skiboot-b9b330a0090d7092dffab2b8137da154c7248ad9.tar.bz2 |
libmctp: Import libmctp library handling MCTP protocol
The Management Component Transport Protocol (MCTP) is a protocol defined by
the DMTF Platform Management Component Intercommunications sub-team of the
DMTF Pre-OS Workgroup. MCTP is designed to support communications between
different intelligent hardware components that make up a platform
management subsystem that is provides monitoring and control functions
inside a managed system. DMTF standard "DSP2016"
This library is intended to be a portable implementation of the Management
Component Transport Protocol (MCTP), as defined by DMTF standard "DSP0236",
plus transport binding specifications.
MCTP has been designed to carry multiple types of manageability-related
traffic across a common medium. The base MCTP specifications define
message types for supporting the initialization and configuration of MCTP
itself, and to support vendor-specific messages over MCTP.
Other message types, such as message types to support a Platform Level
Data Model (PLDM).
The source is located here: https://github.com/openbmc/libmctp and use as
is, without any update.
The libmctp code is integrated into the folder ./libmctp as a set of
sources, compiled if the compiler flag CONFIG_PLDM is set.
A config file is required. Not being generated automatically by 'configure',
it must be edited manually to match the environment.
Signed-off-by: Christophe Lombard <clombard@linux.ibm.com>
Acked-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Diffstat (limited to 'libmctp/libmctp-alloc.h')
-rw-r--r-- | libmctp/libmctp-alloc.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libmctp/libmctp-alloc.h b/libmctp/libmctp-alloc.h new file mode 100644 index 0000000..2532cfa --- /dev/null +++ b/libmctp/libmctp-alloc.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */ + +#ifndef _LIBMCTP_ALLOC_H +#define _LIBMCTP_ALLOC_H + +#include <stdlib.h> + +void *__mctp_alloc(size_t size); +void __mctp_free(void *ptr); +void *__mctp_realloc(void *ptr, size_t size); + +#endif /* _LIBMCTP_ALLOC_H */ |