linux/net/ncsi/ncsi-pkt.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright Gavin Shan, IBM Corporation 2016.
 */

#ifndef __NCSI_PKT_H__
#define __NCSI_PKT_H__

struct ncsi_pkt_hdr {};

struct ncsi_cmd_pkt_hdr {};

struct ncsi_rsp_pkt_hdr {};

struct ncsi_aen_pkt_hdr {};

/* NCSI common command packet */
struct ncsi_cmd_pkt {};

struct ncsi_rsp_pkt {};

/* Select Package */
struct ncsi_cmd_sp_pkt {};

/* Disable Channel */
struct ncsi_cmd_dc_pkt {};

/* Reset Channel */
struct ncsi_cmd_rc_pkt {};

/* AEN Enable */
struct ncsi_cmd_ae_pkt {};

/* Set Link */
struct ncsi_cmd_sl_pkt {};

/* Set VLAN Filter */
struct ncsi_cmd_svf_pkt {};

/* Enable VLAN */
struct ncsi_cmd_ev_pkt {};

/* Set MAC Address */
struct ncsi_cmd_sma_pkt {};

/* Enable Broadcast Filter */
struct ncsi_cmd_ebf_pkt {};

/* Enable Global Multicast Filter */
struct ncsi_cmd_egmf_pkt {};

/* Set NCSI Flow Control */
struct ncsi_cmd_snfc_pkt {};

/* OEM Request Command as per NCSI Specification */
struct ncsi_cmd_oem_pkt {};

/* OEM Response Packet as per NCSI Specification */
struct ncsi_rsp_oem_pkt {};

/* Mellanox Response Data */
struct ncsi_rsp_oem_mlx_pkt {};

/* Broadcom Response Data */
struct ncsi_rsp_oem_bcm_pkt {};

/* Intel Response Data */
struct ncsi_rsp_oem_intel_pkt {};

/* Get Link Status */
struct ncsi_rsp_gls_pkt {};

/* Get Version ID */
struct ncsi_rsp_gvi_pkt {};

/* Get Capabilities */
struct ncsi_rsp_gc_pkt {};

/* Get Parameters */
struct ncsi_rsp_gp_pkt {};

/* Get Controller Packet Statistics */
struct ncsi_rsp_gcps_pkt {};

/* Get NCSI Statistics */
struct ncsi_rsp_gns_pkt {};

/* Get NCSI Pass-through Statistics */
struct ncsi_rsp_gnpts_pkt {};

/* Get package status */
struct ncsi_rsp_gps_pkt {};

/* Get package UUID */
struct ncsi_rsp_gpuuid_pkt {};

/* Get MC MAC Address */
struct ncsi_rsp_gmcma_pkt {};

/* AEN: Link State Change */
struct ncsi_aen_lsc_pkt {};

/* AEN: Configuration Required */
struct ncsi_aen_cr_pkt {};

/* AEN: Host Network Controller Driver Status Change */
struct ncsi_aen_hncdsc_pkt {};

/* NCSI packet revision */
#define NCSI_PKT_REVISION

/* NCSI packet commands */
#define NCSI_PKT_CMD_CIS
#define NCSI_PKT_CMD_SP
#define NCSI_PKT_CMD_DP
#define NCSI_PKT_CMD_EC
#define NCSI_PKT_CMD_DC
#define NCSI_PKT_CMD_RC
#define NCSI_PKT_CMD_ECNT
#define NCSI_PKT_CMD_DCNT
#define NCSI_PKT_CMD_AE
#define NCSI_PKT_CMD_SL
#define NCSI_PKT_CMD_GLS
#define NCSI_PKT_CMD_SVF
#define NCSI_PKT_CMD_EV
#define NCSI_PKT_CMD_DV
#define NCSI_PKT_CMD_SMA
#define NCSI_PKT_CMD_EBF
#define NCSI_PKT_CMD_DBF
#define NCSI_PKT_CMD_EGMF
#define NCSI_PKT_CMD_DGMF
#define NCSI_PKT_CMD_SNFC
#define NCSI_PKT_CMD_GVI
#define NCSI_PKT_CMD_GC
#define NCSI_PKT_CMD_GP
#define NCSI_PKT_CMD_GCPS
#define NCSI_PKT_CMD_GNS
#define NCSI_PKT_CMD_GNPTS
#define NCSI_PKT_CMD_GPS
#define NCSI_PKT_CMD_OEM
#define NCSI_PKT_CMD_PLDM
#define NCSI_PKT_CMD_GPUUID
#define NCSI_PKT_CMD_QPNPR
#define NCSI_PKT_CMD_SNPR
#define NCSI_PKT_CMD_GMCMA


/* NCSI packet responses */
#define NCSI_PKT_RSP_CIS
#define NCSI_PKT_RSP_SP
#define NCSI_PKT_RSP_DP
#define NCSI_PKT_RSP_EC
#define NCSI_PKT_RSP_DC
#define NCSI_PKT_RSP_RC
#define NCSI_PKT_RSP_ECNT
#define NCSI_PKT_RSP_DCNT
#define NCSI_PKT_RSP_AE
#define NCSI_PKT_RSP_SL
#define NCSI_PKT_RSP_GLS
#define NCSI_PKT_RSP_SVF
#define NCSI_PKT_RSP_EV
#define NCSI_PKT_RSP_DV
#define NCSI_PKT_RSP_SMA
#define NCSI_PKT_RSP_EBF
#define NCSI_PKT_RSP_DBF
#define NCSI_PKT_RSP_EGMF
#define NCSI_PKT_RSP_DGMF
#define NCSI_PKT_RSP_SNFC
#define NCSI_PKT_RSP_GVI
#define NCSI_PKT_RSP_GC
#define NCSI_PKT_RSP_GP
#define NCSI_PKT_RSP_GCPS
#define NCSI_PKT_RSP_GNS
#define NCSI_PKT_RSP_GNPTS
#define NCSI_PKT_RSP_GPS
#define NCSI_PKT_RSP_OEM
#define NCSI_PKT_RSP_PLDM
#define NCSI_PKT_RSP_GPUUID
#define NCSI_PKT_RSP_QPNPR
#define NCSI_PKT_RSP_SNPR
#define NCSI_PKT_RSP_GMCMA

/* NCSI response code/reason */
#define NCSI_PKT_RSP_C_COMPLETED
#define NCSI_PKT_RSP_C_FAILED
#define NCSI_PKT_RSP_C_UNAVAILABLE
#define NCSI_PKT_RSP_C_UNSUPPORTED
#define NCSI_PKT_RSP_R_NO_ERROR
#define NCSI_PKT_RSP_R_INTERFACE
#define NCSI_PKT_RSP_R_PARAM
#define NCSI_PKT_RSP_R_CHANNEL
#define NCSI_PKT_RSP_R_PACKAGE
#define NCSI_PKT_RSP_R_LENGTH
#define NCSI_PKT_RSP_R_UNKNOWN

/* NCSI AEN packet type */
#define NCSI_PKT_AEN
#define NCSI_PKT_AEN_LSC
#define NCSI_PKT_AEN_CR
#define NCSI_PKT_AEN_HNCDSC

#endif /* __NCSI_PKT_H__ */