Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / infiniband / hw / hfi1 / pinning.h
bloba814a3aa96542fe6f6231ed3c497ce56edb77494
1 /* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
2 /*
3 * Copyright(c) 2023 Cornelis Networks, Inc.
4 */
5 #ifndef _HFI1_PINNING_H
6 #define _HFI1_PINNING_H
8 struct hfi1_user_sdma_pkt_q;
9 struct user_sdma_request;
10 struct user_sdma_txreq;
11 struct user_sdma_iovec;
13 int hfi1_init_system_pinning(struct hfi1_user_sdma_pkt_q *pq);
14 void hfi1_free_system_pinning(struct hfi1_user_sdma_pkt_q *pq);
15 int hfi1_add_pages_to_sdma_packet(struct user_sdma_request *req,
16 struct user_sdma_txreq *tx,
17 struct user_sdma_iovec *iovec,
18 u32 *pkt_data_remaining);
20 #endif /* _HFI1_PINNING_H */