| #pragma once |
| |
| #include <cstdint> |
| #include <string> |
| #include <unordered_set> |
| |
| #define PLDM_RDE 0x06 |
| #define PLDM_MAX_REQUEST_BYTES 2048 |
| #define MAX_RETRIES_FOR_REQUEST 500 |
| #define MAX_RETRIES_MCTP_SOCK_FAILURE 5 |
| #define MAX_LOOP_ITERATION_STATE_MACHINE 50 |
| #define DEFAULT_INITIAL_VAL 0 |
| |
| constexpr uint8_t DEST_EID = 9; |
| // TODO(@harshtya): Change instance id to be dynamic |
| constexpr uint8_t INSTANCE_ID = 1; |
| constexpr bool DEBUG = true; |
| |
| const std::unordered_set<std::string> UNSUPPORTED_RESOURCES = { |
| "/redfish/v1/Cables", "/redfish/v1/Systems"}; |
| |
| enum class ContextState |
| { |
| RDE_CONTEXT_FREE, |
| RDE_CONTEXT_NOT_FREE, |
| RDE_NO_CONTEXT_FOUND, |
| }; |