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 8struct hfi1_user_sdma_pkt_q; 9struct user_sdma_request; 10struct user_sdma_txreq; 11struct user_sdma_iovec; 12 13int hfi1_init_system_pinning(struct hfi1_user_sdma_pkt_q *pq); 14void hfi1_free_system_pinning(struct hfi1_user_sdma_pkt_q *pq); 15int 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