aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mthca/mthca_dev.h
diff options
context:
space:
mode:
authorRoland Dreier <roland@topspin.com>2005-06-27 17:36:43 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-27 18:11:46 -0400
commitd56d6f9502a15ef64395cb3a6fc7bfdc365b1e3d (patch)
tree4b02fba5320ebef9c339452bc3f9ce8a69a0af4e /drivers/infiniband/hw/mthca/mthca_dev.h
parenta03a5a67b243e9a24805ee18272ad25e5b2ca92c (diff)
[PATCH] IB/mthca: Split off MTT allocation
Split allocation of MTT range from creation of MR. This will be useful for implementing shared memory regions and userspace verbs. Signed-off-by: Roland Dreier <roland@topspin.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_dev.h')
-rw-r--r--drivers/infiniband/hw/mthca/mthca_dev.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_dev.h b/drivers/infiniband/hw/mthca/mthca_dev.h
index df26d818c1ce..e8cf4d68d11c 100644
--- a/drivers/infiniband/hw/mthca/mthca_dev.h
+++ b/drivers/infiniband/hw/mthca/mthca_dev.h
@@ -380,6 +380,12 @@ void mthca_uar_free(struct mthca_dev *dev, struct mthca_uar *uar);
380int mthca_pd_alloc(struct mthca_dev *dev, struct mthca_pd *pd); 380int mthca_pd_alloc(struct mthca_dev *dev, struct mthca_pd *pd);
381void mthca_pd_free(struct mthca_dev *dev, struct mthca_pd *pd); 381void mthca_pd_free(struct mthca_dev *dev, struct mthca_pd *pd);
382 382
383struct mthca_mtt *mthca_alloc_mtt(struct mthca_dev *dev, int size);
384void mthca_free_mtt(struct mthca_dev *dev, struct mthca_mtt *mtt);
385int mthca_write_mtt(struct mthca_dev *dev, struct mthca_mtt *mtt,
386 int start_index, u64 *buffer_list, int list_len);
387int mthca_mr_alloc(struct mthca_dev *dev, u32 pd, int buffer_size_shift,
388 u64 iova, u64 total_size, u32 access, struct mthca_mr *mr);
383int mthca_mr_alloc_notrans(struct mthca_dev *dev, u32 pd, 389int mthca_mr_alloc_notrans(struct mthca_dev *dev, u32 pd,
384 u32 access, struct mthca_mr *mr); 390 u32 access, struct mthca_mr *mr);
385int mthca_mr_alloc_phys(struct mthca_dev *dev, u32 pd, 391int mthca_mr_alloc_phys(struct mthca_dev *dev, u32 pd,