xref: /linux/drivers/gpu/drm/xe/xe_execlist.h (revision e6a901a00822659181c93c86d8bbc2a17779fddc)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2021 Intel Corporation
4  */
5 
6 #ifndef _XE_EXECLIST_H_
7 #define _XE_EXECLIST_H_
8 
9 #include "xe_execlist_types.h"
10 
11 struct xe_device;
12 struct xe_gt;
13 
14 #define xe_execlist_port_assert_held(port) lockdep_assert_held(&(port)->lock)
15 
16 int xe_execlist_init(struct xe_gt *gt);
17 struct xe_execlist_port *xe_execlist_port_create(struct xe_device *xe,
18 						 struct xe_hw_engine *hwe);
19 void xe_execlist_port_destroy(struct xe_execlist_port *port);
20 
21 #endif
22