[HCA] Distinguish between Tavor and Arbel HCAs, report correct device ID
[mirror/winof/.git] / hw / mt23108 / vapi / mlxsys / os_dep / win / tdriver / MdPnp.c
index 3324c93..1c73e03 100644 (file)
@@ -27,7 +27,7 @@
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r
  * SOFTWARE.\r
  *\r
- * $Id:$\r
+ * $Id$\r
  */\r
 \r
 \r
@@ -932,7 +932,9 @@ Return Value:
         * add device to TAVOR\r
         */ \r
 \r
-       if (l_pMdDevContext->m_eDevType == MD_DEV_IX_TAVOR      && g_pDrvContext->m_fSupportTavor)\r
+       if ((l_pMdDevContext->m_eDevType == MD_DEV_IX_TAVOR     || \r
+               l_pMdDevContext->m_eDevType == MD_DEV_IX_ARBEL_TM)\r
+               && g_pDrvContext->m_fSupportTavor)\r
        { /* add HCA to Tavor functional DLLs */\r
        \r
                unsigned char                           l_RevId = 0;\r
@@ -1128,7 +1130,8 @@ Return Value:
        // stop the card by sending some commands to it or suspend all new requests and wait for the end of in-progress ones\r
        //\r
 \r
-       if (l_pMdDevContext->m_eDevType == MD_DEV_IX_TAVOR      && g_pDrvContext->m_fSupportTavor)\r
+       if ((l_pMdDevContext->m_eDevType == MD_DEV_IX_TAVOR     ||\r
+               l_pMdDevContext->m_eDevType == MD_DEV_IX_ARBEL_TM)&& g_pDrvContext->m_fSupportTavor)\r
        { /* remove HCA from Tavor functional DLLs */\r
        \r
                HH_ret_t                                        l_HhRet;\r