drm/amd/display: Move dp_pixel_encoding_type to stream_encoder include
authorEric Bernstein <eric.bernstein@amd.com>
Tue, 3 Apr 2018 15:23:11 +0000 (11:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:23 +0000 (13:43 -0500)
Signed-off-by: Eric Bernstein <eric.bernstein@amd.com>
Reviewed-by: Nikola Cornij <Nikola.Cornij@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/inc/hw/hw_shared.h
drivers/gpu/drm/amd/display/dc/inc/hw/stream_encoder.h

index 9fe73028d58865e01d8e07104b7eb9e628692ba7..cf7433ebf91a07557b1f4328980ba4bdcf15ab07 100644 (file)
@@ -186,23 +186,6 @@ enum controller_dp_test_pattern {
        CONTROLLER_DP_TEST_PATTERN_COLORSQUARES_CEA
 };
 
-enum dp_pixel_encoding_type {
-       DP_PIXEL_ENCODING_TYPE_RGB444           = 0x00000000,
-       DP_PIXEL_ENCODING_TYPE_YCBCR422         = 0x00000001,
-       DP_PIXEL_ENCODING_TYPE_YCBCR444         = 0x00000002,
-       DP_PIXEL_ENCODING_TYPE_RGB_WIDE_GAMUT   = 0x00000003,
-       DP_PIXEL_ENCODING_TYPE_Y_ONLY           = 0x00000004,
-       DP_PIXEL_ENCODING_TYPE_YCBCR420         = 0x00000005
-};
-
-enum dp_component_depth {
-       DP_COMPONENT_PIXEL_DEPTH_6BPC           = 0x00000000,
-       DP_COMPONENT_PIXEL_DEPTH_8BPC           = 0x00000001,
-       DP_COMPONENT_PIXEL_DEPTH_10BPC          = 0x00000002,
-       DP_COMPONENT_PIXEL_DEPTH_12BPC          = 0x00000003,
-       DP_COMPONENT_PIXEL_DEPTH_16BPC          = 0x00000004
-};
-
 enum dc_lut_mode {
        LUT_BYPASS,
        LUT_RAM_A,
index 5c21336cae4cfb9afbb3b17866eca403ea2de8b3..cfa7ec9517ae10d880fca658a7a35b8a2d9f3d06 100644 (file)
 #define STREAM_ENCODER_H_
 
 #include "audio_types.h"
+#include "hw_shared.h"
 
 struct dc_bios;
 struct dc_context;
 struct dc_crtc_timing;
 
+enum dp_pixel_encoding_type {
+       DP_PIXEL_ENCODING_TYPE_RGB444           = 0x00000000,
+       DP_PIXEL_ENCODING_TYPE_YCBCR422         = 0x00000001,
+       DP_PIXEL_ENCODING_TYPE_YCBCR444         = 0x00000002,
+       DP_PIXEL_ENCODING_TYPE_RGB_WIDE_GAMUT   = 0x00000003,
+       DP_PIXEL_ENCODING_TYPE_Y_ONLY           = 0x00000004,
+       DP_PIXEL_ENCODING_TYPE_YCBCR420         = 0x00000005
+};
+
+enum dp_component_depth {
+       DP_COMPONENT_PIXEL_DEPTH_6BPC           = 0x00000000,
+       DP_COMPONENT_PIXEL_DEPTH_8BPC           = 0x00000001,
+       DP_COMPONENT_PIXEL_DEPTH_10BPC          = 0x00000002,
+       DP_COMPONENT_PIXEL_DEPTH_12BPC          = 0x00000003,
+       DP_COMPONENT_PIXEL_DEPTH_16BPC          = 0x00000004
+};
+
 struct encoder_info_frame {
        /* auxiliary video information */
        struct dc_info_packet avi;
@@ -138,6 +156,7 @@ struct stream_encoder_funcs {
 
        void (*set_avmute)(
                struct stream_encoder *enc, bool enable);
+
 };
 
 #endif /* STREAM_ENCODER_H_ */