net/liquidio: support device reset in driver
[dpdk.git] / drivers / net / liquidio / base / lio_hw_defs.h
index 781e929..fe5c3bb 100644 (file)
 
 #define LIO_CN23XX_VF_VID      0x9712
 
+/* CN23xx subsystem device ids */
+#define PCI_SUBSYS_DEV_ID_CN2350_210           0x0004
+#define PCI_SUBSYS_DEV_ID_CN2360_210           0x0005
+#define PCI_SUBSYS_DEV_ID_CN2360_225           0x0006
+#define PCI_SUBSYS_DEV_ID_CN2350_225           0x0007
+#define PCI_SUBSYS_DEV_ID_CN2350_210SVPN3      0x0008
+#define PCI_SUBSYS_DEV_ID_CN2360_210SVPN3      0x0009
+#define PCI_SUBSYS_DEV_ID_CN2350_210SVPT       0x000a
+#define PCI_SUBSYS_DEV_ID_CN2360_210SVPT       0x000b
+
 /* --------------------------CONFIG VALUES------------------------ */
 
 /* CN23xx IQ configuration macros */
@@ -70,6 +80,9 @@
 /* Max IOQs per LIO Link */
 #define LIO_MAX_IOQS_PER_IF                    64
 
+/* Wait time in milliseconds for FLR */
+#define LIO_PCI_FLR_WAIT                       100
+
 enum lio_card_type {
        LIO_23XX /* 23xx */
 };
@@ -100,6 +113,8 @@ enum lio_card_type {
 
 #define LIO_FW_VERSION_LENGTH          32
 
+#define LIO_VF_TRUST_MIN_VERSION       "1.7.1"
+
 /** Tag types used by Octeon cores in its work. */
 enum octeon_tag_type {
        OCTEON_ORDERED_TAG      = 0,
@@ -124,15 +139,28 @@ enum octeon_tag_type {
 #define LIO_OPCODE_NW_DATA             0x02 /* network packet data */
 #define LIO_OPCODE_CMD                 0x03
 #define LIO_OPCODE_INFO                        0x04
+#define LIO_OPCODE_PORT_STATS          0x05
 #define LIO_OPCODE_IF_CFG              0x09
 
 #define LIO_MIN_RX_BUF_SIZE            64
 #define LIO_MAX_RX_PKTLEN              (64 * 1024)
 
 /* NIC Command types */
+#define LIO_CMD_CHANGE_MTU             0x1
 #define LIO_CMD_CHANGE_DEVFLAGS                0x3
 #define LIO_CMD_RX_CTL                 0x4
+#define LIO_CMD_CLEAR_STATS            0x6
 #define LIO_CMD_SET_RSS                        0xD
+#define LIO_CMD_TNL_RX_CSUM_CTL                0x10
+#define LIO_CMD_TNL_TX_CSUM_CTL                0x11
+#define LIO_CMD_ADD_VLAN_FILTER                0x17
+#define LIO_CMD_DEL_VLAN_FILTER                0x18
+#define LIO_CMD_VXLAN_PORT_CONFIG      0x19
+
+#define LIO_CMD_VXLAN_PORT_ADD         0x0
+#define LIO_CMD_VXLAN_PORT_DEL         0x1
+#define LIO_CMD_RXCSUM_ENABLE          0x0
+#define LIO_CMD_TXCSUM_ENABLE          0x0
 
 /* RX(packets coming from wire) Checksum verification flags */
 /* TCP/UDP csum */
@@ -166,6 +194,7 @@ enum octeon_tag_type {
 
 /* Interface flags communicated between host driver and core app. */
 enum lio_ifflags {
+       LIO_IFFLAG_PROMISC      = 0x01,
        LIO_IFFLAG_ALLMULTI     = 0x02,
        LIO_IFFLAG_UNICAST      = 0x10
 };