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, 16 HandlerInterface* handler = &handlerImpl); 17 18 // Handle the pcie slot to i2c bus mapping command. 19 // Sys can query which i2c bus is routed to which pcie slot. 20 ipmi_ret_t pcieSlotI2cBusMapping(const uint8_t* reqBuf, uint8_t* replyBuf, 21 size_t* dataLen, 22 HandlerInterface* handler = &handlerImpl); 23 24 } // namespace ipmi 25 } // namespace google 26