blob: 1075b41e38eb288c1685bcb723600a1c07d6531f [file] [log] [blame]
Patrick Venture4d49ae62018-09-17 11:35:32 -07001#pragma once
2
Patrick Ventured2037c62019-03-15 10:29:47 -07003#include "handler.hpp"
4
William A. Kennington III2c9e1622019-02-07 15:45:19 -08005#include <ipmid/api.h>
Patrick Venture4d49ae62018-09-17 11:35:32 -07006
7namespace google
8{
9namespace ipmi
10{
11
Patrick Ventured2037c62019-03-15 10:29:47 -070012struct CableReply
13{
14 uint8_t subcommand;
15 uint8_t value;
16} __attribute__((packed));
17
Patrick Venture4d49ae62018-09-17 11:35:32 -070018//
19// Handle the cablecheck. Sys must supply which ethernet device they're
20// interested in.
Patrick Ventured2037c62019-03-15 10:29:47 -070021ipmi_ret_t CableCheck(const uint8_t* reqBuf, uint8_t* replyBuf, size_t* dataLen,
22 const HandlerInterface* handler = &handlerImpl);
Patrick Venture4d49ae62018-09-17 11:35:32 -070023
24} // namespace ipmi
25} // namespace google