// SPDX-License-Identifier: Apache-2.0 #pragma once #include namespace phosphor { namespace dump { namespace pldm { /** * @brief Opens the PLDM file descriptor * * @return file descriptor on success and throw * exception (xyz::openbmc_project::Common::Error::NotAllowed) on * failures. */ int openPLDM(); /** * @brief Returns the PLDM instance ID to use for PLDM commands * * @param[in] eid - The PLDM EID * * @return uint8_t - The instance ID **/ uint8_t getPLDMInstanceID(uint8_t eid); } // namespace pldm } // namespace dump } // namespace phosphor