File Index
Files and directories
Sign in
FILE

core_status.h

File preview with syntax highlighting.

linux-6.19.14/drivers/gpu/drm/amd/display/dc/inc/core_status.h C
 1/*
 2 * Copyright 2015 Advanced Micro Devices, Inc.
 3 *
 4 * Permission is hereby granted, free of charge, to any person obtaining a
 5 * copy of this software and associated documentation files (the "Software"),
 6 * to deal in the Software without restriction, including without limitation
 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 8 * and/or sell copies of the Software, and to permit persons to whom the
 9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 *
22 * Authors: AMD
23 *
24 */
25
26#ifndef _CORE_STATUS_H_
27#define _CORE_STATUS_H_
28
29#include "dc_hw_types.h"
30
31enum dc_status {
32	DC_OK = 1,
33
34	DC_NO_CONTROLLER_RESOURCE = 2,
35	DC_NO_STREAM_ENC_RESOURCE = 3,
36	DC_NO_CLOCK_SOURCE_RESOURCE = 4,
37	DC_FAIL_CONTROLLER_VALIDATE = 5,
38	DC_FAIL_ENC_VALIDATE = 6,
39	DC_FAIL_ATTACH_SURFACES = 7,
40	DC_FAIL_DETACH_SURFACES = 8,
41	DC_FAIL_SURFACE_VALIDATE = 9,
42	DC_NO_DP_LINK_BANDWIDTH = 10,
43	DC_EXCEED_DONGLE_CAP = 11,
44	DC_SURFACE_PIXEL_FORMAT_UNSUPPORTED = 12,
45	DC_FAIL_BANDWIDTH_VALIDATE = 13, /* BW and Watermark validation */
46	DC_FAIL_SCALING = 14,
47	DC_FAIL_DP_LINK_TRAINING = 15,
48	DC_FAIL_DSC_VALIDATE = 16,
49	DC_NO_DSC_RESOURCE = 17,
50	DC_FAIL_UNSUPPORTED_1 = 18,
51	DC_FAIL_CLK_EXCEED_MAX = 21,
52	DC_FAIL_CLK_BELOW_MIN = 22, /*THIS IS MIN PER IP*/
53	DC_FAIL_CLK_BELOW_CFG_REQUIRED = 23, /*THIS IS hard_min in PPLIB*/
54
55	DC_NOT_SUPPORTED = 24,
56	DC_UNSUPPORTED_VALUE = 25,
57
58	DC_NO_LINK_ENC_RESOURCE = 26,
59	DC_FAIL_DP_PAYLOAD_ALLOCATION = 27,
60	DC_FAIL_DP_LINK_BANDWIDTH = 28,
61	DC_FAIL_HW_CURSOR_SUPPORT = 29,
62	DC_FAIL_DP_TUNNEL_BW_VALIDATE = 30,
63	DC_ERROR_UNEXPECTED = -1
64};
65
66char *dc_status_to_str(enum dc_status status);
67char *dc_pixel_encoding_to_str(enum dc_pixel_encoding pixel_encoding);
68char *dc_color_depth_to_str(enum dc_color_depth color_depth);
69
70#endif /* _CORE_STATUS_H_ */
~/ Read-only file preview.