summaryrefslogtreecommitdiff
path: root/net/ncsi/ncsi-pkt.h
diff options
context:
space:
mode:
authorVijay Khemka <vijaykhemka@fb.com>2018-10-16 22:13:19 +0300
committerDavid S. Miller <davem@davemloft.net>2018-10-18 08:14:54 +0300
commitcb10c7c0dfd9e6fd3d69ced98b05cbd198c48cf6 (patch)
tree937a12372c7962c90d4c27863225ea615267e362 /net/ncsi/ncsi-pkt.h
parent1010c17ec5b496b54785dfb96f739d0f880484b3 (diff)
downloadlinux-cb10c7c0dfd9e6fd3d69ced98b05cbd198c48cf6.tar.xz
net/ncsi: Add NCSI Broadcom OEM command
This patch adds OEM Broadcom commands and response handling. It also defines OEM Get MAC Address handler to get and configure the device. ncsi_oem_gma_handler_bcm: This handler send NCSI broadcom command for getting mac address. ncsi_rsp_handler_oem_bcm: This handles response received for all broadcom OEM commands. ncsi_rsp_handler_oem_bcm_gma: This handles get mac address response and set it to device. Signed-off-by: Vijay Khemka <vijaykhemka@fb.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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/ncsi/ncsi-pkt.h b/net/ncsi/ncsi-pkt.h
index 0f2087c8d42a..4d3f06be38bd 100644
--- a/net/ncsi/ncsi-pkt.h
+++ b/net/ncsi/ncsi-pkt.h
@@ -165,6 +165,14 @@ struct ncsi_rsp_oem_pkt {
unsigned char data[]; /* Payload data */
};
+/* Broadcom Response Data */
+struct ncsi_rsp_oem_bcm_pkt {
+ unsigned char ver; /* Payload Version */
+ unsigned char type; /* OEM Command type */
+ __be16 len; /* Payload Length */
+ unsigned char data[]; /* Cmd specific Data */
+};
+
/* Get Link Status */
struct ncsi_rsp_gls_pkt {
struct ncsi_rsp_pkt_hdr rsp; /* Response header */