summaryrefslogtreecommitdiff
path: root/drivers/staging/rdma/hfi1/user_exp_rcv.h
diff options
context:
space:
mode:
authorMitko Haralanov <mitko.haralanov@intel.com>2016-02-05 16:57:46 (GMT)
committerDoug Ledford <dledford@redhat.com>2016-02-29 22:10:38 (GMT)
commitf727a0c324ce2c7e7cbe478d22895bf7bc8ed0a6 (patch)
tree96586b66b7b3999c497c5553df7c3ea980ded35e /drivers/staging/rdma/hfi1/user_exp_rcv.h
parentfc77dbd34c5c99bce46d40a2491937c3bcbd10af (diff)
downloadlinux-f727a0c324ce2c7e7cbe478d22895bf7bc8ed0a6.tar.xz
staging/hfi1: Add function stubs for TID caching
Add mmu notify helper functions and TID caching function stubs in preparation for the TID caching implementation. TID caching makes use of the MMU notifier to allow the driver to respond to the user freeing memory which is allocated to the HFI. This patch implements the basic MMU notifier functions to insert, find and remove buffer pages from memory based on the mmu_notifier being invoked. In addition it places stubs in place for the main entry points by follow on code. Follow up patches will complete the implementation of the interaction with user space and makes use of these functions. Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com> Signed-off-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma/hfi1/user_exp_rcv.h')
-rw-r--r--drivers/staging/rdma/hfi1/user_exp_rcv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/staging/rdma/hfi1/user_exp_rcv.h b/drivers/staging/rdma/hfi1/user_exp_rcv.h
index 4f4876e..28ef98a 100644
--- a/drivers/staging/rdma/hfi1/user_exp_rcv.h
+++ b/drivers/staging/rdma/hfi1/user_exp_rcv.h
@@ -50,6 +50,8 @@
*
*/
+#include "hfi.h"
+
#define EXP_TID_TIDLEN_MASK 0x7FFULL
#define EXP_TID_TIDLEN_SHIFT 0
#define EXP_TID_TIDCTRL_MASK 0x3ULL
@@ -71,4 +73,10 @@
(tid) |= EXP_TID_SET(field, (value)); \
} while (0)
+int hfi1_user_exp_rcv_init(struct file *);
+int hfi1_user_exp_rcv_free(struct hfi1_filedata *);
+int hfi1_user_exp_rcv_setup(struct file *, struct hfi1_tid_info *);
+int hfi1_user_exp_rcv_clear(struct file *, struct hfi1_tid_info *);
+int hfi1_user_exp_rcv_invalid(struct file *, struct hfi1_tid_info *);
+
#endif /* _HFI1_USER_EXP_RCV_H */