1 #pragma once 2 3 #include "handler.hpp" 4 5 #include <ipmid/api.h> 6 7 namespace google 8 { 9 namespace ipmi 10 { 11 12 // Handle the pcie slot count command. 13 // Sys can query the number of pcie slots. 14 ipmi_ret_t pcieSlotCount(const uint8_t* reqBuf, uint8_t* replyBuf, 15 size_t* dataLen, HandlerInterface* handler); 16 17 // Handle the pcie slot to i2c bus mapping command. 18 // Sys can query which i2c bus is routed to which pcie slot. 19 ipmi_ret_t pcieSlotI2cBusMapping(const uint8_t* reqBuf, uint8_t* replyBuf, 20 size_t* dataLen, HandlerInterface* handler); 21 22 } // namespace ipmi 23 } // namespace google 24