brintos

brintos / linux-shallow public Read only

0
0
Text · 761 B · cb10ef9 Raw
28 lines · c
1/* SPDX-License-Identifier: MIT */2/*3 * Copyright © 2023 Intel Corporation4 */5 6#ifndef _XE_LMTT_H_7#define _XE_LMTT_H_8 9#include <linux/types.h>10 11struct xe_bo;12struct xe_lmtt;13struct xe_lmtt_ops;14 15#ifdef CONFIG_PCI_IOV16int xe_lmtt_init(struct xe_lmtt *lmtt);17void xe_lmtt_init_hw(struct xe_lmtt *lmtt);18int xe_lmtt_prepare_pages(struct xe_lmtt *lmtt, unsigned int vfid, u64 range);19int xe_lmtt_populate_pages(struct xe_lmtt *lmtt, unsigned int vfid, struct xe_bo *bo, u64 offset);20void xe_lmtt_drop_pages(struct xe_lmtt *lmtt, unsigned int vfid);21u64 xe_lmtt_estimate_pt_size(struct xe_lmtt *lmtt, u64 size);22#else23static inline int xe_lmtt_init(struct xe_lmtt *lmtt) { return 0; }24static inline void xe_lmtt_init_hw(struct xe_lmtt *lmtt) { }25#endif26 27#endif28