diff options
author | Vijay Khemka <vijaykhemka@fb.com> | 2018-11-26 16:49:04 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-27 19:37:20 -0500 |
commit | 16e8c4ca21a238cdf0355475bf15bd72e92feb8f (patch) | |
tree | 74e7c21f748520d0028dfb76fdd2c7a210e854f9 /net/ncsi/internal.h | |
parent | bd7153bd83b806bfcc2e79b7a6f43aa653d06ef3 (diff) |
net/ncsi: Add NCSI Mellanox OEM command
This patch adds OEM Mellanox commands and response handling. It also
defines OEM Get MAC Address handler to get and configure the device.
ncsi_oem_gma_handler_mlx: This handler send NCSI mellanox command for
getting mac address.
ncsi_rsp_handler_oem_mlx: This handles response received for all
mellanox OEM commands.
ncsi_rsp_handler_oem_mlx_gma: This handles get mac address response and
set it to device.
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ncsi/internal.h')
-rw-r--r-- | net/ncsi/internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/ncsi/internal.h b/net/ncsi/internal.h index 9e3642b802c4..87505600dbb2 100644 --- a/net/ncsi/internal.h +++ b/net/ncsi/internal.h | |||
@@ -73,10 +73,15 @@ enum { | |||
73 | #define NCSI_OEM_MFR_BCM_ID 0x113d | 73 | #define NCSI_OEM_MFR_BCM_ID 0x113d |
74 | /* Broadcom specific OEM Command */ | 74 | /* Broadcom specific OEM Command */ |
75 | #define NCSI_OEM_BCM_CMD_GMA 0x01 /* CMD ID for Get MAC */ | 75 | #define NCSI_OEM_BCM_CMD_GMA 0x01 /* CMD ID for Get MAC */ |
76 | /* Mellanox specific OEM Command */ | ||
77 | #define NCSI_OEM_MLX_CMD_GMA 0x00 /* CMD ID for Get MAC */ | ||
78 | #define NCSI_OEM_MLX_CMD_GMA_PARAM 0x1b /* Parameter for GMA */ | ||
76 | /* OEM Command payload lengths*/ | 79 | /* OEM Command payload lengths*/ |
77 | #define NCSI_OEM_BCM_CMD_GMA_LEN 12 | 80 | #define NCSI_OEM_BCM_CMD_GMA_LEN 12 |
81 | #define NCSI_OEM_MLX_CMD_GMA_LEN 8 | ||
78 | /* Mac address offset in OEM response */ | 82 | /* Mac address offset in OEM response */ |
79 | #define BCM_MAC_ADDR_OFFSET 28 | 83 | #define BCM_MAC_ADDR_OFFSET 28 |
84 | #define MLX_MAC_ADDR_OFFSET 8 | ||
80 | 85 | ||
81 | 86 | ||
82 | struct ncsi_channel_version { | 87 | struct ncsi_channel_version { |