linux/drivers/net/ethernet/sfc/mae_counter_format.h

/* SPDX-License-Identifier: GPL-2.0-only */
/****************************************************************************
 * Driver for Solarflare network controllers and boards
 * Copyright 2020 Xilinx, Inc.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 as published
 * by the Free Software Foundation, incorporated herein by reference.
 */

/* Format of counter packets (version 2) from the ef100 Match-Action Engine */

#ifndef EFX_MAE_COUNTER_FORMAT_H
#define EFX_MAE_COUNTER_FORMAT_H


/*------------------------------------------------------------*/
/*
 * ER_RX_SL_PACKETISER_HEADER_WORD(160bit):
 * 
 */
#define ER_RX_SL_PACKETISER_HEADER_WORD_SIZE
#define ER_RX_SL_PACKETISER_HEADER_WORD_WIDTH

#define ERF_SC_PACKETISER_HEADER_VERSION_LBN
#define ERF_SC_PACKETISER_HEADER_VERSION_WIDTH
#define ERF_SC_PACKETISER_HEADER_VERSION_VALUE
#define ERF_SC_PACKETISER_HEADER_IDENTIFIER_LBN
#define ERF_SC_PACKETISER_HEADER_IDENTIFIER_WIDTH
#define ERF_SC_PACKETISER_HEADER_IDENTIFIER_AR
#define ERF_SC_PACKETISER_HEADER_IDENTIFIER_CT
#define ERF_SC_PACKETISER_HEADER_IDENTIFIER_OR
#define ERF_SC_PACKETISER_HEADER_HEADER_OFFSET_LBN
#define ERF_SC_PACKETISER_HEADER_HEADER_OFFSET_WIDTH
#define ERF_SC_PACKETISER_HEADER_HEADER_OFFSET_DEFAULT
#define ERF_SC_PACKETISER_HEADER_PAYLOAD_OFFSET_LBN
#define ERF_SC_PACKETISER_HEADER_PAYLOAD_OFFSET_WIDTH
#define ERF_SC_PACKETISER_HEADER_PAYLOAD_OFFSET_DEFAULT
#define ERF_SC_PACKETISER_HEADER_INDEX_LBN
#define ERF_SC_PACKETISER_HEADER_INDEX_WIDTH
#define ERF_SC_PACKETISER_HEADER_COUNT_LBN
#define ERF_SC_PACKETISER_HEADER_COUNT_WIDTH
#define ERF_SC_PACKETISER_HEADER_RESERVED_0_LBN
#define ERF_SC_PACKETISER_HEADER_RESERVED_0_WIDTH
#define ERF_SC_PACKETISER_HEADER_RESERVED_1_LBN
#define ERF_SC_PACKETISER_HEADER_RESERVED_1_WIDTH
#define ERF_SC_PACKETISER_HEADER_RESERVED_2_LBN
#define ERF_SC_PACKETISER_HEADER_RESERVED_2_WIDTH


/*------------------------------------------------------------*/
/*
 * ER_RX_SL_PACKETISER_PAYLOAD_WORD(128bit):
 * 
 */
#define ER_RX_SL_PACKETISER_PAYLOAD_WORD_SIZE
#define ER_RX_SL_PACKETISER_PAYLOAD_WORD_WIDTH

#define ERF_SC_PACKETISER_PAYLOAD_COUNTER_INDEX_LBN
#define ERF_SC_PACKETISER_PAYLOAD_COUNTER_INDEX_WIDTH
#define ERF_SC_PACKETISER_PAYLOAD_RESERVED_LBN
#define ERF_SC_PACKETISER_PAYLOAD_RESERVED_WIDTH
#define ERF_SC_PACKETISER_PAYLOAD_PACKET_COUNT_OFST
#define ERF_SC_PACKETISER_PAYLOAD_PACKET_COUNT_SIZE
#define ERF_SC_PACKETISER_PAYLOAD_PACKET_COUNT_LBN
#define ERF_SC_PACKETISER_PAYLOAD_PACKET_COUNT_WIDTH
#define ERF_SC_PACKETISER_PAYLOAD_BYTE_COUNT_OFST
#define ERF_SC_PACKETISER_PAYLOAD_BYTE_COUNT_SIZE
#define ERF_SC_PACKETISER_PAYLOAD_BYTE_COUNT_LBN
#define ERF_SC_PACKETISER_PAYLOAD_BYTE_COUNT_WIDTH


#endif /* EFX_MAE_COUNTER_FORMAT_H */