Matthew Brost | dd08ebf | 2023-03-30 17:31:57 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: MIT */ |
| 2 | /* |
| 3 | * Copyright © 2022 Intel Corporation |
| 4 | */ |
| 5 | |
| 6 | #ifndef _XE_BB_H_ |
| 7 | #define _XE_BB_H_ |
| 8 | |
| 9 | #include "xe_bb_types.h" |
| 10 | |
| 11 | struct dma_fence; |
| 12 | |
| 13 | struct xe_gt; |
Francois Dugast | 9b9529c | 2023-07-31 17:30:02 +0200 | [diff] [blame] | 14 | struct xe_exec_queue; |
Matthew Brost | dd08ebf | 2023-03-30 17:31:57 -0400 | [diff] [blame] | 15 | struct xe_sched_job; |
| 16 | |
| 17 | struct xe_bb *xe_bb_new(struct xe_gt *gt, u32 size, bool usm); |
Francois Dugast | 9b9529c | 2023-07-31 17:30:02 +0200 | [diff] [blame] | 18 | struct xe_sched_job *xe_bb_create_job(struct xe_exec_queue *q, |
Matthew Brost | dd08ebf | 2023-03-30 17:31:57 -0400 | [diff] [blame] | 19 | struct xe_bb *bb); |
Francois Dugast | 9b9529c | 2023-07-31 17:30:02 +0200 | [diff] [blame] | 20 | struct xe_sched_job *xe_bb_create_migration_job(struct xe_exec_queue *q, |
Matthew Brost | dd08ebf | 2023-03-30 17:31:57 -0400 | [diff] [blame] | 21 | struct xe_bb *bb, u64 batch_ofs, |
| 22 | u32 second_idx); |
Matthew Brost | dd08ebf | 2023-03-30 17:31:57 -0400 | [diff] [blame] | 23 | void xe_bb_free(struct xe_bb *bb, struct dma_fence *fence); |
| 24 | |
| 25 | #endif |