.. | .. |
---|
35 | 35 | |
---|
36 | 36 | struct dp_mst_stream_allocation_table; |
---|
37 | 37 | |
---|
| 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 |
---|
38 | 61 | enum dc_edid_status dm_helpers_parse_edid_caps( |
---|
39 | 62 | struct dc_context *ctx, |
---|
40 | 63 | const struct dc_edid *edid, |
---|
.. | .. |
---|
58 | 81 | bool enable); |
---|
59 | 82 | |
---|
60 | 83 | /* |
---|
| 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 | +/* |
---|
61 | 91 | * Clear payload allocation table before enable MST DP link. |
---|
62 | 92 | */ |
---|
63 | 93 | void dm_helpers_dp_mst_clear_payload_allocation_table( |
---|
.. | .. |
---|
67 | 97 | /* |
---|
68 | 98 | * Polls for ACT (allocation change trigger) handled and |
---|
69 | 99 | */ |
---|
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( |
---|
71 | 101 | struct dc_context *ctx, |
---|
72 | 102 | const struct dc_stream_state *stream); |
---|
73 | 103 | /* |
---|
.. | .. |
---|
111 | 141 | const struct dc_link *link, |
---|
112 | 142 | struct i2c_command *cmd); |
---|
113 | 143 | |
---|
| 144 | +bool dm_helpers_dp_write_dsc_enable( |
---|
| 145 | + struct dc_context *ctx, |
---|
| 146 | + const struct dc_stream_state *stream, |
---|
| 147 | + bool enable |
---|
| 148 | +); |
---|
114 | 149 | bool dm_helpers_is_dp_sink_present( |
---|
115 | 150 | struct dc_link *link); |
---|
116 | 151 | |
---|