blob: fb4e6d3b09fd15dd8715e88722e5e78b1921ad24 [file] [log] [blame]
Jaghathiswari Rankappagounder Natarajan2d4836d2018-11-29 14:16:39 -08001#pragma once
2
Patrick Venture49f23ad2019-03-16 11:59:55 -07003#include "handler.hpp"
4
William A. Kennington III2c9e1622019-02-07 15:45:19 -08005#include <ipmid/api.h>
Jaghathiswari Rankappagounder Natarajan2d4836d2018-11-29 14:16:39 -08006
7namespace google
8{
9namespace ipmi
10{
11
12// Handle the pcie slot count command.
13// Sys can query the number of pcie slots.
14ipmi_ret_t PcieSlotCount(const uint8_t* reqBuf, uint8_t* replyBuf,
Patrick Venture49f23ad2019-03-16 11:59:55 -070015 size_t* dataLen,
16 HandlerInterface* handler = &handlerImpl);
Jaghathiswari Rankappagounder Natarajan2d4836d2018-11-29 14:16:39 -080017
18// Handle the pcie slot to i2c bus mapping command.
19// Sys can query which i2c bus is routed to which pcie slot.
20ipmi_ret_t PcieSlotI2cBusMapping(const uint8_t* reqBuf, uint8_t* replyBuf,
Patrick Venture49f23ad2019-03-16 11:59:55 -070021 size_t* dataLen,
22 HandlerInterface* handler = &handlerImpl);
Jaghathiswari Rankappagounder Natarajan2d4836d2018-11-29 14:16:39 -080023
24} // namespace ipmi
25} // namespace google