blob: 556cd23955907ae709b005c73d77dfaee9fa5aba [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.
Patrick Venture45fad1b2019-03-18 16:52:14 -070014ipmi_ret_t pcieSlotCount(const uint8_t* reqBuf, uint8_t* replyBuf,
Patrick Venturec87de552020-05-20 20:25:39 -070015 size_t* dataLen, HandlerInterface* handler);
Jaghathiswari Rankappagounder Natarajan2d4836d2018-11-29 14:16:39 -080016
17// Handle the pcie slot to i2c bus mapping command.
18// Sys can query which i2c bus is routed to which pcie slot.
Patrick Venture45fad1b2019-03-18 16:52:14 -070019ipmi_ret_t pcieSlotI2cBusMapping(const uint8_t* reqBuf, uint8_t* replyBuf,
Patrick Venturec87de552020-05-20 20:25:39 -070020 size_t* dataLen, HandlerInterface* handler);
Jaghathiswari Rankappagounder Natarajan2d4836d2018-11-29 14:16:39 -080021
22} // namespace ipmi
23} // namespace google