diff options
author | Roland Dreier <roland@topspin.com> | 2005-06-27 17:36:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-27 18:11:46 -0400 |
commit | d56d6f9502a15ef64395cb3a6fc7bfdc365b1e3d (patch) | |
tree | 4b02fba5320ebef9c339452bc3f9ce8a69a0af4e /drivers/infiniband/hw/mthca/mthca_dev.h | |
parent | a03a5a67b243e9a24805ee18272ad25e5b2ca92c (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.h | 6 |
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); | |||
380 | int mthca_pd_alloc(struct mthca_dev *dev, struct mthca_pd *pd); | 380 | int mthca_pd_alloc(struct mthca_dev *dev, struct mthca_pd *pd); |
381 | void mthca_pd_free(struct mthca_dev *dev, struct mthca_pd *pd); | 381 | void mthca_pd_free(struct mthca_dev *dev, struct mthca_pd *pd); |
382 | 382 | ||
383 | struct mthca_mtt *mthca_alloc_mtt(struct mthca_dev *dev, int size); | ||
384 | void mthca_free_mtt(struct mthca_dev *dev, struct mthca_mtt *mtt); | ||
385 | int mthca_write_mtt(struct mthca_dev *dev, struct mthca_mtt *mtt, | ||
386 | int start_index, u64 *buffer_list, int list_len); | ||
387 | int 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); | ||
383 | int mthca_mr_alloc_notrans(struct mthca_dev *dev, u32 pd, | 389 | int mthca_mr_alloc_notrans(struct mthca_dev *dev, u32 pd, |
384 | u32 access, struct mthca_mr *mr); | 390 | u32 access, struct mthca_mr *mr); |
385 | int mthca_mr_alloc_phys(struct mthca_dev *dev, u32 pd, | 391 | int mthca_mr_alloc_phys(struct mthca_dev *dev, u32 pd, |