[HCA] Distinguish between Tavor and Arbel HCAs, report correct device ID
[mirror/winof/.git] / hw / mt23108 / vapi / mlxsys / os_dep / win / tdriver / MdConf.c
index d9cf0b6..12b8db2 100644 (file)
@@ -586,7 +586,8 @@ PciFixCmdReg(
 \r
        } /* fix HCA command register from SHRIMP */\r
 \r
-       if (pi_pMdDevContext->m_eDevType == MD_DEV_IX_TAVOR     ) \r
+       if (pi_pMdDevContext->m_eDevType == MD_DEV_IX_TAVOR \r
+               || pi_pMdDevContext->m_eDevType ==MD_DEV_IX_ARBEL_TM) \r
        { /* fix command register for TAVOR */\r
 \r
                l_pInterface = &pi_pMdDevContext->m_Interface;\r
@@ -680,7 +681,8 @@ PciHdrWrite(
                        return l_Status;\r
                }       \r
                else\r
-               if (pi_pMdDevContext->m_eDevType == MD_DEV_IX_TAVOR) {\r
+               if (pi_pMdDevContext->m_eDevType == MD_DEV_IX_TAVOR || \r
+                       pi_pMdDevContext->m_eDevType == MD_DEV_IX_ARBEL_TM) {\r
 \r
                        /* protect */\r
                        KSEM_ACQ(&pi_pMdDevContext->m_Sem);\r
@@ -849,7 +851,8 @@ PciHdrSave(
 \r
        }\r
        else\r
-       if (pi_pMdDevContext->m_eDevType == MD_DEV_IX_TAVOR     ) {\r
+       if (pi_pMdDevContext->m_eDevType == MD_DEV_IX_TAVOR ||\r
+               pi_pMdDevContext->m_eDevType == MD_DEV_IX_ARBEL_TM) {\r
        \r
                /* \r
                 * HCA device\r
@@ -936,7 +939,8 @@ PciHdrRestore(
                }\r
        }\r
        else\r
-       if (pi_pMdDevContext->m_eDevType == MD_DEV_IX_TAVOR     ) {\r
+       if (pi_pMdDevContext->m_eDevType == MD_DEV_IX_TAVOR ||\r
+               pi_pMdDevContext->m_eDevType == MD_DEV_IX_ARBEL_TM) {\r
        \r
                /* \r
                 * Bridge device\r
@@ -987,7 +991,8 @@ PciReset(
                        l_Status );\r
        }\r
        else \r
-       if (pi_pMdDevContext->m_eDevType == MD_DEV_IX_TAVOR) { /* we are Tavor device */\r
+       if (pi_pMdDevContext->m_eDevType == MD_DEV_IX_TAVOR ||\r
+               pi_pMdDevContext->m_eDevType == MD_DEV_IX_ARBEL_TM) { /* we are Tavor device */\r
                l_Status = PciDevReset(pi_pMdDevContext, l_ResetOffset, l_ResetValue );\r
        }\r
        else\r