qed: Add infrastructure support for tunneling
[cascardo/linux.git] / drivers / net / ethernet / qlogic / qed / qed_reg_addr.h
index c15b162..55451a4 100644 (file)
        0x2aae60UL
 #define PGLUE_B_REG_PF_BAR1_SIZE \
        0x2aae64UL
+#define PRS_REG_ENCAPSULATION_TYPE_EN  0x1f0730UL
+#define PRS_REG_GRE_PROTOCOL           0x1f0734UL
+#define PRS_REG_VXLAN_PORT             0x1f0738UL
+#define PRS_REG_OUTPUT_FORMAT_4_0      0x1f099cUL
+#define NIG_REG_ENC_TYPE_ENABLE                0x501058UL
+
+#define NIG_REG_ENC_TYPE_ENABLE_ETH_OVER_GRE_ENABLE            (0x1 << 0)
+#define NIG_REG_ENC_TYPE_ENABLE_ETH_OVER_GRE_ENABLE_SHIFT      0
+#define NIG_REG_ENC_TYPE_ENABLE_IP_OVER_GRE_ENABLE             (0x1 << 1)
+#define NIG_REG_ENC_TYPE_ENABLE_IP_OVER_GRE_ENABLE_SHIFT       1
+#define NIG_REG_ENC_TYPE_ENABLE_VXLAN_ENABLE                   (0x1 << 2)
+#define NIG_REG_ENC_TYPE_ENABLE_VXLAN_ENABLE_SHIFT             2
+
+#define NIG_REG_VXLAN_PORT             0x50105cUL
+#define PBF_REG_VXLAN_PORT             0xd80518UL
+#define PBF_REG_NGE_PORT               0xd8051cUL
+#define PRS_REG_NGE_PORT               0x1f086cUL
+#define NIG_REG_NGE_PORT               0x508b38UL
+
+#define DORQ_REG_L2_EDPM_TUNNEL_GRE_ETH_EN     0x10090cUL
+#define DORQ_REG_L2_EDPM_TUNNEL_GRE_IP_EN      0x100910UL
+#define DORQ_REG_L2_EDPM_TUNNEL_VXLAN_EN       0x100914UL
+#define DORQ_REG_L2_EDPM_TUNNEL_NGE_IP_EN      0x10092cUL
+#define DORQ_REG_L2_EDPM_TUNNEL_NGE_ETH_EN     0x100930UL
+
+#define NIG_REG_NGE_IP_ENABLE                  0x508b28UL
+#define NIG_REG_NGE_ETH_ENABLE                 0x508b2cUL
+#define NIG_REG_NGE_COMP_VER                   0x508b30UL
+#define PBF_REG_NGE_COMP_VER                   0xd80524UL
+#define PRS_REG_NGE_COMP_VER                   0x1f0878UL
+
 #endif