root/drivers/gpu/drm/amd/display/dc/inc/core_status.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   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 enum dc_status {
  30         DC_OK = 1,
  31 
  32         DC_NO_CONTROLLER_RESOURCE = 2,
  33         DC_NO_STREAM_ENC_RESOURCE = 3,
  34         DC_NO_CLOCK_SOURCE_RESOURCE = 4,
  35         DC_FAIL_CONTROLLER_VALIDATE = 5,
  36         DC_FAIL_ENC_VALIDATE = 6,
  37         DC_FAIL_ATTACH_SURFACES = 7,
  38         DC_FAIL_DETACH_SURFACES = 8,
  39         DC_FAIL_SURFACE_VALIDATE = 9,
  40         DC_NO_DP_LINK_BANDWIDTH = 10,
  41         DC_EXCEED_DONGLE_CAP = 11,
  42         DC_SURFACE_PIXEL_FORMAT_UNSUPPORTED = 12,
  43         DC_FAIL_BANDWIDTH_VALIDATE = 13, /* BW and Watermark validation */
  44         DC_FAIL_SCALING = 14,
  45         DC_FAIL_DP_LINK_TRAINING = 15,
  46 #ifdef CONFIG_DRM_AMD_DC_DCN2_0
  47         DC_FAIL_DSC_VALIDATE = 16,
  48         DC_NO_DSC_RESOURCE = 17,
  49 #endif
  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_ */

/* [<][>][^][v][top][bottom][index][help] */