blob: 58b82ce69b19f13bf60a652c85774d75f10e8d2f [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 Venture45fad1b2019-03-18 16:52:14 -070021ipmi_ret_t cableCheck(const uint8_t* reqBuf, uint8_t* replyBuf, size_t* dataLen,
Patrick Venturec87de552020-05-20 20:25:39 -070022 const HandlerInterface* handler);
Patrick Venture4d49ae62018-09-17 11:35:32 -070023
24} // namespace ipmi
25} // namespace google