/********************************************************************** * Author: Cavium, Inc. * * Contact: support@cavium.com * Please include "LiquidIO" in the subject. * * Copyright (c) 2003-2016 Cavium, Inc. * * This file 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. * * This file is distributed in the hope that it will be useful, but * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, TITLE, or * NONINFRINGEMENT. See the GNU General Public License for more details.
***********************************************************************/ /*! \file cn23xx_vf_regs.h * \brief Host Driver: Register Address and Register Mask values for * Octeon CN23XX vf functions.
*/
/* The input jabber is used to determine the TSO max size. * Due to H/W limitation, this needs to be reduced to 60000 * in order to use H/W TSO and avoid the WQE malformation * PKO_BUG_24989_WQE_LEN
*/ #define CN23XX_DEFAULT_INPUT_JABBER 0xEA60 /*60000*/
/*------------------ Masks ----------------*/ #define CN23XX_PKT_INPUT_CTL_VF_NUM BIT_ULL(32) #define CN23XX_PKT_INPUT_CTL_MAC_NUM BIT(29) /* Number of instructions to be read in one MAC read request. * setting to Max value(4)
*/ #define CN23XX_PKT_INPUT_CTL_RDSIZE (3 << 25) #define CN23XX_PKT_INPUT_CTL_IS_64B BIT(24) #define CN23XX_PKT_INPUT_CTL_RST BIT(23) #define CN23XX_PKT_INPUT_CTL_QUIET BIT(28) #define CN23XX_PKT_INPUT_CTL_RING_ENB BIT(22) #define CN23XX_PKT_INPUT_CTL_DATA_NS BIT(8) #define CN23XX_PKT_INPUT_CTL_DATA_ES_64B_SWAP BIT(6) #define CN23XX_PKT_INPUT_CTL_DATA_RO BIT(5) #define CN23XX_PKT_INPUT_CTL_USE_CSR BIT(4) #define CN23XX_PKT_INPUT_CTL_GATHER_NS BIT(3) #define CN23XX_PKT_INPUT_CTL_GATHER_ES_64B_SWAP (2) #define CN23XX_PKT_INPUT_CTL_GATHER_RO (1)
/** Rings per Virtual Function [RO] **/ #define CN23XX_PKT_INPUT_CTL_RPVF_MASK (0x3F) #define CN23XX_PKT_INPUT_CTL_RPVF_POS (48) /* These bits[47:44][RO] give the Physical function number info within the MAC*/ #define CN23XX_PKT_INPUT_CTL_PF_NUM_MASK (0x7) #define CN23XX_PKT_INPUT_CTL_PF_NUM_POS (45) /** These bits[43:32][RO] give the virtual function number info within the PF*/ #define CN23XX_PKT_INPUT_CTL_VF_NUM_MASK (0x1FFF) #define CN23XX_PKT_INPUT_CTL_VF_NUM_POS (32) #define CN23XX_PKT_INPUT_CTL_MAC_NUM_MASK (0x3) #define CN23XX_PKT_INPUT_CTL_MAC_NUM_POS (29) #define CN23XX_PKT_IN_DONE_WMARK_MASK (0xFFFFULL) #define CN23XX_PKT_IN_DONE_WMARK_BIT_POS (32) #define CN23XX_PKT_IN_DONE_CNT_MASK (0x00000000FFFFFFFFULL)
/* Macro's for accessing CNT and TIME separately from INT_LEVELS */ #define CN23XX_VF_SLI_OQ_PKT_INT_LEVELS_CNT(oq) \
(CN23XX_VF_SLI_OQ_PKT_INT_LEVELS_START64 + ((oq) * CN23XX_VF_OQ_OFFSET))
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.