TT-System-Firmware APIs 19.15.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
pldm_oem_handler_driver_api Struct Reference

Driver API for PLDM OEM command handlers. More...

#include <pldm_oem_handler.h>

Data Fields

const ver32_t *(* get_versions )(const struct device *dev, size_t *versions_size)
const bitfield8_t *(* get_commands )(const struct device *dev)
int(* build_response )(const struct device *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)

Detailed Description

Driver API for PLDM OEM command handlers.

A driver that registers with compatible "tenstorrent,pldm-oem-handler" implements this API so that the PLDM responder and base layers can route OEM-type messages without a compile-time dependency on the concrete handler.

Field Documentation

◆ build_response

int(* pldm_oem_handler_driver_api::build_response) (const struct device *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 PLDM response for an OEM-type request.

Parameters
devDriver instance.
req_hdrDecoded request header.
req_msgRaw request message (including header).
req_payload_lenPayload length (bytes after the PLDM header).
resp_msgOutput buffer for the response.
resp_pldm_lenSet to the response length on success.
Returns
0 on success, negative errno on failure.

◆ get_commands

const bitfield8_t *(* pldm_oem_handler_driver_api::get_commands) (const struct device *dev)

Return the supported OEM command bitmap (32-byte array of bitfield8_t).

Parameters
devDriver instance.
Returns
Pointer to the commands bitmap, or NULL on error.

◆ get_versions

const ver32_t *(* pldm_oem_handler_driver_api::get_versions) (const struct device *dev, size_t *versions_size)

Return the supported OEM version table.

Parameters
devDriver instance.
versions_sizeSet to the byte length of the returned array.
Returns
Pointer to the version array, or NULL on error.

The documentation for this struct was generated from the following file: