| #include <phosphor-logging/lg2.hpp> |
| exec::task<int> Manager::beforeDiscoverTerminus() |
| // Add any setup or checks needed before discovering a terminus |
| // If any setup/check fails, return the appropriate error code |
| // For now, we assume everything is successful |
| exec::task<int> Manager::afterDiscoverTerminus() |
| auto rc = co_await platformManager.initTerminus(); |
| lg2::error("Failed to initialize platform manager, error {RC}", "RC", |
| lg2::info("Successfully initialized platform manager"); |
| exec::task<int> Manager::pollForPlatformEvent( |
| pldm_tid_t tid, uint16_t /* pollEventId */, uint32_t pollDataTransferHandle) |
| auto it = termini.find(tid); |
| auto& terminus = it->second; |
| co_await eventManager.pollForPlatformEventTask(tid, |
| terminus->pollEvent = false; |
| exec::task<int> Manager::oemPollForPlatformEvent(pldm_tid_t tid) |
| for (auto& handler : pollHandlers) |
| } // namespace platform_mc |