Match doorbell layout to expected usage.
authorMichael Brown <mcb30@etherboot.org>
Sun, 16 Sep 2007 12:10:15 +0000 (13:10 +0100)
committerMichael Brown <mcb30@etherboot.org>
Sun, 16 Sep 2007 12:10:15 +0000 (13:10 +0100)
src/drivers/net/mlx_ipoib/ib_driver.h
src/drivers/net/mlx_ipoib/mt25218.h

index 305bb5d..57c0282 100644 (file)
@@ -51,7 +51,7 @@
 enum {
        MADS_QPN_SN,
        IPOIB_QPN_SN,
-       MAX_APP_QPS
+       MAX_APP_QPS = 8
 };
 
 enum {
@@ -59,7 +59,7 @@ enum {
        MADS_RCV_CQN_SN,
        IPOIB_SND_CQN_SN,
        IPOIB_RCV_CQN_SN,
-       MAX_APP_CQS
+       MAX_APP_CQS = 8
 };
 
 enum {
index 85c60a0..702b5ca 100644 (file)
 
 /* uar context indexes */
 enum {
-       MADS_SND_CQ_ARM_DB_IDX,
-       MADS_RCV_CQ_ARM_DB_IDX,
-       IPOIB_SND_CQ_ARM_DB_IDX,
-       IPOIB_RCV_CQ_ARM_DB_IDX,
-       MADS_SND_QP_DB_IDX,
-       IPOIB_SND_QP_DB_IDX,
-       GROUP_SEP_IDX,
-       START_UNMAPPED_DB_IDX,
+       MADS_SND_CQ_ARM_DB_IDX = MADS_SND_CQN_SN,
+       MADS_RCV_CQ_ARM_DB_IDX = MADS_RCV_CQN_SN,
+       IPOIB_SND_CQ_ARM_DB_IDX = IPOIB_SND_CQN_SN,
+       IPOIB_RCV_CQ_ARM_DB_IDX = IPOIB_RCV_CQN_SN,
+       MADS_SND_QP_DB_IDX = ( MAX_APP_CQS + MADS_QPN_SN ),
+       IPOIB_SND_QP_DB_IDX = ( MAX_APP_CQS + IPOIB_QPN_SN ),
+       GROUP_SEP_IDX = ( MAX_APP_CQS + MAX_APP_QPS ),
+       //      START_UNMAPPED_DB_IDX,
        /* --------------------------
           unmapped doorbell records
           -------------------------- */
-       END_UNMAPPED_DB_IDX = 505,
-       IPOIB_RCV_QP_DB_IDX = 506,
-       MADS_RCV_QP_DB_IDX = 507,
-       IPOIB_RCV_CQ_CI_DB_IDX = 508,
-       IPOIB_SND_CQ_CI_DB_IDX = 509,
-       MADS_RCV_CQ_CI_DB_IDX = 510,
-       MADS_SND_CQ_CI_DB_IDX = 511,
+       //      END_UNMAPPED_DB_IDX,
+       IPOIB_RCV_QP_DB_IDX = ( 512 - MAX_APP_CQS - IPOIB_QPN_SN - 1 ),
+       MADS_RCV_QP_DB_IDX = ( 512 - MAX_APP_CQS - MADS_QPN_SN - 1 ),
+       IPOIB_RCV_CQ_CI_DB_IDX = ( 512 - IPOIB_RCV_CQN_SN - 1 ),
+       IPOIB_SND_CQ_CI_DB_IDX = ( 512 - IPOIB_SND_CQN_SN - 1 ),
+       MADS_RCV_CQ_CI_DB_IDX = ( 512 - MADS_RCV_CQN_SN - 1 ),
+       MADS_SND_CQ_CI_DB_IDX = ( 512 - MADS_SND_CQN_SN - 1 ),
 };
 
 /* uar resources types */