net: hns3: Add enable and process hw errors from PPP
[muen/linux.git] / drivers / net / ethernet / hisilicon / hns3 / hns3pf / hclge_err.h
index f46c8c29a17e88980a13640259d2d4a5be7fda97..c6d373929be60ed61d703024d967bece7523d3b5 100644 (file)
 #define HCLGE_IGU_ERR_INT_EN_MASK      0x000F
 #define HCLGE_IGU_TNL_ERR_INT_EN    0x0002AABF
 #define HCLGE_IGU_TNL_ERR_INT_EN_MASK  0x003F
+#define HCLGE_PPP_MPF_ECC_ERR_INT0_EN  0xFFFFFFFF
+#define HCLGE_PPP_MPF_ECC_ERR_INT0_EN_MASK     0xFFFFFFFF
+#define HCLGE_PPP_MPF_ECC_ERR_INT1_EN  0xFFFFFFFF
+#define HCLGE_PPP_MPF_ECC_ERR_INT1_EN_MASK     0xFFFFFFFF
+#define HCLGE_PPP_PF_ERR_INT_EN        0x0003
+#define HCLGE_PPP_PF_ERR_INT_EN_MASK   0x0003
+#define HCLGE_PPP_MPF_ECC_ERR_INT2_EN  0x003F
+#define HCLGE_PPP_MPF_ECC_ERR_INT2_EN_MASK     0x003F
+#define HCLGE_PPP_MPF_ECC_ERR_INT3_EN  0x003F
+#define HCLGE_PPP_MPF_ECC_ERR_INT3_EN_MASK     0x003F
 #define HCLGE_NCSI_ERR_INT_EN  0x3
 #define HCLGE_NCSI_ERR_INT_TYPE        0x9
 
@@ -43,6 +53,7 @@
 #define HCLGE_TQP_IMP_ERR_CLR_MASK     0x0FFF0001
 #define HCLGE_IGU_COM_INT_MASK         0xF
 #define HCLGE_IGU_EGU_TNL_INT_MASK     0x3F
+#define HCLGE_PPP_PF_INT_MASK          0x100
 
 enum hclge_err_int_type {
        HCLGE_ERR_INT_MSIX = 0,