lkml.org 
[lkml]   [2005]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[patch 180/198] IB/mthca: add SYNC_TPT firmware command
From
Date

From: Michael S. Tsirkin <mst@mellanox.co.il>

Add code for SYNC_TPT firmware command, which will be used by FMR
implementation.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

25-akpm/drivers/infiniband/hw/mthca/mthca_cmd.c | 5 +++++
25-akpm/drivers/infiniband/hw/mthca/mthca_cmd.h | 1 +
2 files changed, 6 insertions(+)

diff -puN drivers/infiniband/hw/mthca/mthca_cmd.c~ib-mthca-add-sync_tpt-firmware-command drivers/infiniband/hw/mthca/mthca_cmd.c
--- 25/drivers/infiniband/hw/mthca/mthca_cmd.c~ib-mthca-add-sync_tpt-firmware-command 2005-04-12 03:21:46.273102320 -0700
+++ 25-akpm/drivers/infiniband/hw/mthca/mthca_cmd.c 2005-04-12 03:21:46.279101408 -0700
@@ -1404,6 +1404,11 @@ int mthca_WRITE_MTT(struct mthca_dev *de
return err;
}

+int mthca_SYNC_TPT(struct mthca_dev *dev, u8 *status)
+{
+ return mthca_cmd(dev, 0, 0, 0, CMD_SYNC_TPT, CMD_TIME_CLASS_B, status);
+}
+
int mthca_MAP_EQ(struct mthca_dev *dev, u64 event_mask, int unmap,
int eq_num, u8 *status)
{
diff -puN drivers/infiniband/hw/mthca/mthca_cmd.h~ib-mthca-add-sync_tpt-firmware-command drivers/infiniband/hw/mthca/mthca_cmd.h
--- 25/drivers/infiniband/hw/mthca/mthca_cmd.h~ib-mthca-add-sync_tpt-firmware-command 2005-04-12 03:21:46.275102016 -0700
+++ 25-akpm/drivers/infiniband/hw/mthca/mthca_cmd.h 2005-04-12 03:21:46.279101408 -0700
@@ -276,6 +276,7 @@ int mthca_HW2SW_MPT(struct mthca_dev *de
int mpt_index, u8 *status);
int mthca_WRITE_MTT(struct mthca_dev *dev, u64 *mtt_entry,
int num_mtt, u8 *status);
+int mthca_SYNC_TPT(struct mthca_dev *dev, u8 *status);
int mthca_MAP_EQ(struct mthca_dev *dev, u64 event_mask, int unmap,
int eq_num, u8 *status);
int mthca_SW2HW_EQ(struct mthca_dev *dev, void *eq_context,
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-04-13 07:19    [W:0.016 / U:0.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site