diff options
author | Vijay Khemka <vijaykhemka@fb.com> | 2018-10-05 10:46:01 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-05 14:54:47 -0700 |
commit | fb4ee67529ff3e4c5874768477887c2df5714c96 (patch) | |
tree | bf3176bd5f28d89058a23f3b88ebdf165bd1dad5 /net/ncsi/ncsi-pkt.h | |
parent | 6f8474922b443fd4a89a5dd5b891a3c6a144b9c7 (diff) | |
download | linux-fb4ee67529ff3e4c5874768477887c2df5714c96.tar.bz2 |
net/ncsi: Add NCSI OEM command support
This patch adds OEM commands and response handling. It also defines OEM
command and response structure as per NCSI specification along with its
handlers.
ncsi_cmd_handler_oem: This is a generic command request handler for OEM
commands
ncsi_rsp_handler_oem: This is a generic response handler for OEM commands
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
Reviewed-by: Justin Lee <justin.lee1@dell.com>
Reviewed-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ncsi/ncsi-pkt.h')
-rw-r--r-- | net/ncsi/ncsi-pkt.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/ncsi/ncsi-pkt.h b/net/ncsi/ncsi-pkt.h index 91b4b66438df..0f2087c8d42a 100644 --- a/net/ncsi/ncsi-pkt.h +++ b/net/ncsi/ncsi-pkt.h @@ -151,6 +151,20 @@ struct ncsi_cmd_snfc_pkt { unsigned char pad[22]; }; +/* OEM Request Command as per NCSI Specification */ +struct ncsi_cmd_oem_pkt { + struct ncsi_cmd_pkt_hdr cmd; /* Command header */ + __be32 mfr_id; /* Manufacture ID */ + unsigned char data[]; /* OEM Payload Data */ +}; + +/* OEM Response Packet as per NCSI Specification */ +struct ncsi_rsp_oem_pkt { + struct ncsi_rsp_pkt_hdr rsp; /* Command header */ + __be32 mfr_id; /* Manufacture ID */ + unsigned char data[]; /* Payload data */ +}; + /* Get Link Status */ struct ncsi_rsp_gls_pkt { struct ncsi_rsp_pkt_hdr rsp; /* Response header */ |