diff options
author | Vijay Khemka <vijaykhemka@fb.com> | 2018-10-16 12:13:19 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-17 22:14:54 -0700 |
commit | cb10c7c0dfd9e6fd3d69ced98b05cbd198c48cf6 (patch) | |
tree | 937a12372c7962c90d4c27863225ea615267e362 /net/ncsi/ncsi-pkt.h | |
parent | 1010c17ec5b496b54785dfb96f739d0f880484b3 (diff) | |
download | linux-cb10c7c0dfd9e6fd3d69ced98b05cbd198c48cf6.tar.bz2 |
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.h | 8 |
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 */ |