drm/amd/display: Prefix TIMING_STANDARD entries with DC_
authorReza Amini <Reza.Amini@amd.com>
Wed, 9 May 2018 19:41:47 +0000 (15:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Jun 2018 17:20:27 +0000 (12:20 -0500)
Signed-off-by: Reza Amini <Reza.Amini@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc_ddc_types.h
drivers/gpu/drm/amd/display/dc/dc_hw_types.h
drivers/gpu/drm/amd/display/dc/dc_types.h
drivers/gpu/drm/amd/display/include/fixed31_32.h

index 2b1a92844c383a54f201f49255f44053eb39d18a..2c05630e78fb55bb4bc0418d0e468e7e13107efc 100644 (file)
@@ -1564,7 +1564,7 @@ struct dc_sink *dc_link_add_remote_sink(
        struct dc_sink *dc_sink;
        enum dc_edid_status edid_status;
 
-       if (len > MAX_EDID_BUFFER_SIZE) {
+       if (len > DC_MAX_EDID_BUFFER_SIZE) {
                dm_error("Max EDID buffer size breached!\n");
                return NULL;
        }
index e1affeb5cc512eadcd32344e9ac6a273241dc2ae..ee04812b44926a1958cc11ef85e99793564f3413 100644 (file)
@@ -109,7 +109,7 @@ struct ddc_service {
 
        uint32_t address;
        uint32_t edid_buf_len;
-       uint8_t edid_buf[MAX_EDID_BUFFER_SIZE];
+       uint8_t edid_buf[DC_MAX_EDID_BUFFER_SIZE];
 };
 
 #endif /* DC_DDC_TYPES_H_ */
index b1f70579d61b8c7fbf454bb318109239767731db..d31023d57b58a1ff8b5cdaf4e32797f1f30ad496 100644 (file)
@@ -567,25 +567,25 @@ struct scaling_taps {
 };
 
 enum dc_timing_standard {
-       TIMING_STANDARD_UNDEFINED,
-       TIMING_STANDARD_DMT,
-       TIMING_STANDARD_GTF,
-       TIMING_STANDARD_CVT,
-       TIMING_STANDARD_CVT_RB,
-       TIMING_STANDARD_CEA770,
-       TIMING_STANDARD_CEA861,
-       TIMING_STANDARD_HDMI,
-       TIMING_STANDARD_TV_NTSC,
-       TIMING_STANDARD_TV_NTSC_J,
-       TIMING_STANDARD_TV_PAL,
-       TIMING_STANDARD_TV_PAL_M,
-       TIMING_STANDARD_TV_PAL_CN,
-       TIMING_STANDARD_TV_SECAM,
-       TIMING_STANDARD_EXPLICIT,
+       DC_TIMING_STANDARD_UNDEFINED,
+       DC_TIMING_STANDARD_DMT,
+       DC_TIMING_STANDARD_GTF,
+       DC_TIMING_STANDARD_CVT,
+       DC_TIMING_STANDARD_CVT_RB,
+       DC_TIMING_STANDARD_CEA770,
+       DC_TIMING_STANDARD_CEA861,
+       DC_TIMING_STANDARD_HDMI,
+       DC_TIMING_STANDARD_TV_NTSC,
+       DC_TIMING_STANDARD_TV_NTSC_J,
+       DC_TIMING_STANDARD_TV_PAL,
+       DC_TIMING_STANDARD_TV_PAL_M,
+       DC_TIMING_STANDARD_TV_PAL_CN,
+       DC_TIMING_STANDARD_TV_SECAM,
+       DC_TIMING_STANDARD_EXPLICIT,
        /*!< For explicit timings from EDID, VBIOS, etc.*/
-       TIMING_STANDARD_USER_OVERRIDE,
+       DC_TIMING_STANDARD_USER_OVERRIDE,
        /*!< For mode timing override by user*/
-       TIMING_STANDARD_MAX
+       DC_TIMING_STANDARD_MAX
 };
 
 enum dc_color_depth {
index 76df2534c4a41bce876278d05ad1e8708ce9d363..7d603c53e45e7b948289b2532b00cfd48ec95e82 100644 (file)
@@ -98,7 +98,7 @@ struct dc_context {
 };
 
 
-#define MAX_EDID_BUFFER_SIZE 512
+#define DC_MAX_EDID_BUFFER_SIZE 512
 #define EDID_BLOCK_SIZE 128
 #define MAX_SURFACE_NUM 4
 #define NUM_PIXEL_FORMATS 10
@@ -137,13 +137,13 @@ enum plane_stereo_format {
  */
 
 enum dc_edid_connector_type {
-       EDID_CONNECTOR_UNKNOWN = 0,
-       EDID_CONNECTOR_ANALOG = 1,
-       EDID_CONNECTOR_DIGITAL = 10,
-       EDID_CONNECTOR_DVI = 11,
-       EDID_CONNECTOR_HDMIA = 12,
-       EDID_CONNECTOR_MDDI = 14,
-       EDID_CONNECTOR_DISPLAYPORT = 15
+       DC_EDID_CONNECTOR_UNKNOWN = 0,
+       DC_EDID_CONNECTOR_ANALOG = 1,
+       DC_EDID_CONNECTOR_DIGITAL = 10,
+       DC_EDID_CONNECTOR_DVI = 11,
+       DC_EDID_CONNECTOR_HDMIA = 12,
+       DC_EDID_CONNECTOR_MDDI = 14,
+       DC_EDID_CONNECTOR_DISPLAYPORT = 15
 };
 
 enum dc_edid_status {
@@ -169,7 +169,7 @@ struct dc_cea_audio_mode {
 
 struct dc_edid {
        uint32_t length;
-       uint8_t raw_edid[MAX_EDID_BUFFER_SIZE];
+       uint8_t raw_edid[DC_MAX_EDID_BUFFER_SIZE];
 };
 
 /* When speaker location data block is not available, DEFAULT_SPEAKER_LOCATION
index a981b3e99ab39f0b973ae19437010c31e63466a6..52a73332befb9e4a27d1d2b4e1cdf4bbf480a21b 100644 (file)
 #ifndef __DAL_FIXED31_32_H__
 #define __DAL_FIXED31_32_H__
 
+#ifndef LLONG_MAX
+#define LLONG_MAX 9223372036854775807ll
+#endif
+#ifndef LLONG_MIN
+#define LLONG_MIN (-LLONG_MAX - 1ll)
+#endif
+
 #define FIXED31_32_BITS_PER_FRACTIONAL_PART 32
 #ifndef LLONG_MIN
 #define LLONG_MIN (1LL<<63)