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
7 
8 struct hfi1_user_sdma_pkt_q;
9 struct user_sdma_request;
10 struct user_sdma_txreq;
11 struct user_sdma_iovec;
12 
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);
19 
20 #endif /* _HFI1_PINNING_H */
21