1 /* $NetBSD: core_status.h,v 1.2 2021/12/18 23:45:05 riastradh Exp $ */ 2 3 /* 4 * Copyright 2015 Advanced Micro Devices, Inc. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation 9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 10 * and/or sell copies of the Software, and to permit persons to whom the 11 * Software is furnished to do so, subject to the following conditions: 12 * 13 * The above copyright notice and this permission notice shall be included in 14 * all copies or substantial portions of the Software. 15 * 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 19 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 * OTHER DEALINGS IN THE SOFTWARE. 23 * 24 * Authors: AMD 25 * 26 */ 27 28 #ifndef _CORE_STATUS_H_ 29 #define _CORE_STATUS_H_ 30 31 enum 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_ERROR_UNEXPECTED = -1 56 }; 57 58 #endif /* _CORE_STATUS_H_ */ 59