summaryrefslogtreecommitdiffstats
path: root/net/ncsi/ncsi-pkt.h
diff options
context:
space:
mode:
authorVijay Khemka2018-10-05 19:46:01 +0200
committerDavid S. Miller2018-10-05 23:54:47 +0200
commitfb4ee67529ff3e4c5874768477887c2df5714c96 (patch)
treebf3176bd5f28d89058a23f3b88ebdf165bd1dad5 /net/ncsi/ncsi-pkt.h
parentselftests: net: Clean up an unused variable (diff)
downloadkernel-qcow2-linux-fb4ee67529ff3e4c5874768477887c2df5714c96.tar.gz
kernel-qcow2-linux-fb4ee67529ff3e4c5874768477887c2df5714c96.tar.xz
kernel-qcow2-linux-fb4ee67529ff3e4c5874768477887c2df5714c96.zip
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.h14
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 */