hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/gpu/drm/amd/display/dc/dm_helpers.h
....@@ -35,6 +35,29 @@
3535
3636 struct dp_mst_stream_allocation_table;
3737
38
+#ifdef CONFIG_DRM_AMD_DC_DCN3_0
39
+/*
40
+ * Allocate memory accessible by the GPU
41
+ *
42
+ * frame buffer allocations must be aligned to a 4096-byte boundary
43
+ *
44
+ * Returns virtual address, sets addr to physical address
45
+ */
46
+void *dm_helpers_allocate_gpu_mem(
47
+ struct dc_context *ctx,
48
+ enum dc_gpu_mem_alloc_type type,
49
+ size_t size,
50
+ long long *addr);
51
+
52
+/*
53
+ * Free the GPU-accessible memory at the virtual address pvMem
54
+ */
55
+void dm_helpers_free_gpu_mem(
56
+ struct dc_context *ctx,
57
+ enum dc_gpu_mem_alloc_type type,
58
+ void *pvMem);
59
+
60
+#endif
3861 enum dc_edid_status dm_helpers_parse_edid_caps(
3962 struct dc_context *ctx,
4063 const struct dc_edid *edid,
....@@ -58,6 +81,13 @@
5881 bool enable);
5982
6083 /*
84
+ * poll pending down reply
85
+ */
86
+void dm_helpers_dp_mst_poll_pending_down_reply(
87
+ struct dc_context *ctx,
88
+ const struct dc_link *link);
89
+
90
+/*
6191 * Clear payload allocation table before enable MST DP link.
6292 */
6393 void dm_helpers_dp_mst_clear_payload_allocation_table(
....@@ -67,7 +97,7 @@
6797 /*
6898 * Polls for ACT (allocation change trigger) handled and
6999 */
70
-bool dm_helpers_dp_mst_poll_for_allocation_change_trigger(
100
+enum act_return_status dm_helpers_dp_mst_poll_for_allocation_change_trigger(
71101 struct dc_context *ctx,
72102 const struct dc_stream_state *stream);
73103 /*
....@@ -111,6 +141,11 @@
111141 const struct dc_link *link,
112142 struct i2c_command *cmd);
113143
144
+bool dm_helpers_dp_write_dsc_enable(
145
+ struct dc_context *ctx,
146
+ const struct dc_stream_state *stream,
147
+ bool enable
148
+);
114149 bool dm_helpers_is_dp_sink_present(
115150 struct dc_link *link);
116151