TT-System-Firmware APIs 19.13.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
pldm_base.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Tenstorrent AI ULC
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef PMCI_PLDM_BASE_H_
8#define PMCI_PLDM_BASE_H_
9
10#include <zephyr/device.h>
11#include <libpldm/base.h>
12
13#include <errno.h>
14#include <stddef.h>
15#include <stdint.h>
16
22int pldm_cc_only_response(const struct pldm_header_info *req_hdr, uint8_t cc,
23 struct pldm_msg *resp_msg, size_t *resp_pldm_len);
24
40int pldm_base_build_response(uint8_t *tid, const struct device *mctp_dev,
41 const struct pldm_header_info *req_hdr, const struct pldm_msg *req_msg,
42 size_t req_payload_len, struct pldm_msg *resp_msg,
43 size_t *resp_pldm_len);
44
45#endif /* PMCI_PLDM_BASE_H_ */
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.
Definition pldm_base.c:247
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.
Definition pldm_base.c:24
__UINT8_TYPE__ uint8_t