Jaghathiswari Rankappagounder Natarajan | 2d4836d | 2018-11-29 14:16:39 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Patrick Venture | 49f23ad | 2019-03-16 11:59:55 -0700 | [diff] [blame^] | 3 | #include "handler.hpp" |
| 4 | |
William A. Kennington III | 2c9e162 | 2019-02-07 15:45:19 -0800 | [diff] [blame] | 5 | #include <ipmid/api.h> |
Jaghathiswari Rankappagounder Natarajan | 2d4836d | 2018-11-29 14:16:39 -0800 | [diff] [blame] | 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, |
Patrick Venture | 49f23ad | 2019-03-16 11:59:55 -0700 | [diff] [blame^] | 15 | size_t* dataLen, |
| 16 | HandlerInterface* handler = &handlerImpl); |
Jaghathiswari Rankappagounder Natarajan | 2d4836d | 2018-11-29 14:16:39 -0800 | [diff] [blame] | 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, |
Patrick Venture | 49f23ad | 2019-03-16 11:59:55 -0700 | [diff] [blame^] | 21 | size_t* dataLen, |
| 22 | HandlerInterface* handler = &handlerImpl); |
Jaghathiswari Rankappagounder Natarajan | 2d4836d | 2018-11-29 14:16:39 -0800 | [diff] [blame] | 23 | |
| 24 | } // namespace ipmi |
| 25 | } // namespace google |