diff options
author | Vijay Khemka <vijaykhemka@fb.com> | 2018-10-05 20:46:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-06 00:54:47 +0300 |
commit | fb4ee67529ff3e4c5874768477887c2df5714c96 (patch) | |
tree | bf3176bd5f28d89058a23f3b88ebdf165bd1dad5 /net/ncsi/internal.h | |
parent | 6f8474922b443fd4a89a5dd5b891a3c6a144b9c7 (diff) | |
download | linux-fb4ee67529ff3e4c5874768477887c2df5714c96.tar.xz |
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/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 8055e3965cef..3d0a33b874f5 100644 --- a/net/ncsi/internal.h +++ b/net/ncsi/internal.h @@ -68,6 +68,10 @@ enum { NCSI_MODE_MAX }; +/* OEM Vendor Manufacture ID */ +#define NCSI_OEM_MFR_MLX_ID 0x8119 +#define NCSI_OEM_MFR_BCM_ID 0x113d + struct ncsi_channel_version { u32 version; /* Supported BCD encoded NCSI version */ u32 alpha2; /* Supported BCD encoded NCSI version */ @@ -305,6 +309,7 @@ struct ncsi_cmd_arg { unsigned short words[8]; unsigned int dwords[4]; }; + unsigned char *data; /* NCSI OEM data */ }; extern struct list_head ncsi_dev_list; |