This source file includes following definitions.
- intel_guc_ct_stop
1
2
3
4
5
6 #ifndef _INTEL_GUC_CT_H_
7 #define _INTEL_GUC_CT_H_
8
9 #include <linux/spinlock.h>
10 #include <linux/workqueue.h>
11
12 #include "intel_guc_fwif.h"
13
14 struct i915_vma;
15 struct intel_guc;
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 struct intel_guc_ct_buffer {
34 struct guc_ct_buffer_desc *desc;
35 u32 *cmds;
36 };
37
38
39
40
41
42
43
44
45
46
47
48
49 struct intel_guc_ct_channel {
50 struct i915_vma *vma;
51 struct intel_guc_ct_buffer ctbs[2];
52 u32 owner;
53 u32 next_fence;
54 bool enabled;
55 };
56
57
58
59
60
61 struct intel_guc_ct {
62 struct intel_guc_ct_channel host_channel;
63
64
65
66 spinlock_t lock;
67
68
69 struct list_head pending_requests;
70
71
72 struct list_head incoming_requests;
73
74
75 struct work_struct worker;
76 };
77
78 void intel_guc_ct_init_early(struct intel_guc_ct *ct);
79 int intel_guc_ct_init(struct intel_guc_ct *ct);
80 void intel_guc_ct_fini(struct intel_guc_ct *ct);
81 int intel_guc_ct_enable(struct intel_guc_ct *ct);
82 void intel_guc_ct_disable(struct intel_guc_ct *ct);
83
84 static inline void intel_guc_ct_stop(struct intel_guc_ct *ct)
85 {
86 ct->host_channel.enabled = false;
87 }
88
89 int intel_guc_send_ct(struct intel_guc *guc, const u32 *action, u32 len,
90 u32 *response_buf, u32 response_buf_size);
91 void intel_guc_to_host_event_handler_ct(struct intel_guc *guc);
92
93 #endif