![]() |
TT-System-Firmware APIs 19.13.99
Tenstorrent Firmware
|
#include <zephyr/device.h>#include <libpldm/base.h>#include <errno.h>#include <stddef.h>#include <stdint.h>

Go to the source code of this file.
Functions | |
| int | pldm_cc_only_response (const struct pldm_header_info *req_hdr, uint8_t cc, struct pldm_msg *resp_msg, size_t *resp_pldm_len) |
| Encode a completion-code-only PLDM response. | |
| int | pldm_base_build_response (uint8_t *tid, const struct device *mctp_dev, const struct pldm_header_info *req_hdr, const struct pldm_msg *req_msg, size_t req_payload_len, struct pldm_msg *resp_msg, size_t *resp_pldm_len) |
| Build a response for a PLDM_BASE typed request. | |
| int pldm_base_build_response | ( | uint8_t * | tid, |
| const struct device * | mctp_dev, | ||
| const struct pldm_header_info * | req_hdr, | ||
| const struct pldm_msg * | req_msg, | ||
| size_t | req_payload_len, | ||
| struct pldm_msg * | resp_msg, | ||
| size_t * | resp_pldm_len ) |
Build a response for a PLDM_BASE typed request.
| tid | Pointer to the local terminus ID. GetTID reads it; SetTID writes a new value to it. |
| mctp_dev | The tenstorrent,pldm-mctp-responder device instance. Used to obtain the OEM handler (if any) for GetPLDMVersion / GetPLDMCommands / GetPLDMTypes. |
| req_hdr | Decoded request header. |
| req_msg | Raw request message (including header). |
| req_payload_len | Payload length (bytes after the PLDM header). |
| resp_msg | Output buffer for the response. |
| resp_pldm_len | Set to the response length on success. |
| int pldm_cc_only_response | ( | const struct pldm_header_info * | req_hdr, |
| uint8_t | cc, | ||
| struct pldm_msg * | resp_msg, | ||
| size_t * | resp_pldm_len ) |
Encode a completion-code-only PLDM response.
Shared utility used by both BASE and PLATFORM response handlers.