root/drivers/net/ethernet/apm/xgene/xgene_enet_ring2.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0-or-later */
   2 /* Applied Micro X-Gene SoC Ethernet Driver
   3  *
   4  * Copyright (c) 2015, Applied Micro Circuits Corporation
   5  * Author: Iyappan Subramanian <isubramanian@apm.com>
   6  */
   7 
   8 #ifndef __XGENE_ENET_RING2_H__
   9 #define __XGENE_ENET_RING2_H__
  10 
  11 #include "xgene_enet_main.h"
  12 
  13 #define X2_NUM_RING_CONFIG      6
  14 
  15 #define INTR_MBOX_SIZE          1024
  16 #define CSR_VMID0_INTR_MBOX     0x0270
  17 #define INTR_CLEAR              BIT(23)
  18 
  19 #define X2_MSG_AM_POS           10
  20 #define X2_QBASE_AM_POS         11
  21 #define X2_INTLINE_POS          24
  22 #define X2_INTLINE_LEN          5
  23 #define X2_CFGCRID_POS          29
  24 #define X2_CFGCRID_LEN          3
  25 #define X2_SELTHRSH_POS         7
  26 #define X2_SELTHRSH_LEN         3
  27 #define X2_RINGTYPE_POS         23
  28 #define X2_RINGTYPE_LEN         2
  29 #define X2_DEQINTEN_POS         29
  30 #define X2_RECOMTIMEOUT_POS     0
  31 #define X2_RECOMTIMEOUT_LEN     7
  32 #define X2_NUMMSGSINQ_POS       0
  33 #define X2_NUMMSGSINQ_LEN       17
  34 
  35 extern struct xgene_ring_ops xgene_ring2_ops;
  36 
  37 #endif /* __XGENE_ENET_RING2_H__ */

/* [<][>][^][v][top][bottom][index][help] */