1902 lines · 77.9 KB · C
RawDownload
/* * Copyright © 2008 Keith Packard * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that copyright * notice and this permission notice appear in supporting documentation, and * that the name of the copyright holders not be used in advertising or * publicity pertaining to distribution of the software without specific, * written prior permission.  The copyright holders make no representations * about the suitability of this software for any purpose.  It is provided "as * is" without express or implied warranty. * * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. */ #ifndef _DRM_DP_H_#define _DRM_DP_H_ #include <linux/types.h> /* * Unless otherwise noted, all values are from the DP 1.1a spec.  Note that * DP and DPCD versions are independent.  Differences from 1.0 are not noted, * 1.0 devices basically don't exist in the wild. * * Abbreviations, in chronological order: * * eDP: Embedded DisplayPort version 1 * DPI: DisplayPort Interoperability Guideline v1.1a * 1.2: DisplayPort 1.2 * MST: Multistream Transport - part of DP 1.2a * * 1.2 formally includes both eDP and DPI definitions. */ /* MSA (Main Stream Attribute) MISC bits (as MISC1<<8|MISC0) */#define DP_MSA_MISC_SYNC_CLOCK			(1 << 0)#define DP_MSA_MISC_INTERLACE_VTOTAL_EVEN	(1 << 8)#define DP_MSA_MISC_STEREO_NO_3D		(0 << 9)#define DP_MSA_MISC_STEREO_PROG_RIGHT_EYE	(1 << 9)#define DP_MSA_MISC_STEREO_PROG_LEFT_EYE	(3 << 9)/* bits per component for non-RAW */#define DP_MSA_MISC_6_BPC			(0 << 5)#define DP_MSA_MISC_8_BPC			(1 << 5)#define DP_MSA_MISC_10_BPC			(2 << 5)#define DP_MSA_MISC_12_BPC			(3 << 5)#define DP_MSA_MISC_16_BPC			(4 << 5)/* bits per component for RAW */#define DP_MSA_MISC_RAW_6_BPC			(1 << 5)#define DP_MSA_MISC_RAW_7_BPC			(2 << 5)#define DP_MSA_MISC_RAW_8_BPC			(3 << 5)#define DP_MSA_MISC_RAW_10_BPC			(4 << 5)#define DP_MSA_MISC_RAW_12_BPC			(5 << 5)#define DP_MSA_MISC_RAW_14_BPC			(6 << 5)#define DP_MSA_MISC_RAW_16_BPC			(7 << 5)/* pixel encoding/colorimetry format */#define _DP_MSA_MISC_COLOR(misc1_7, misc0_21, misc0_3, misc0_4) \	((misc1_7) << 15 | (misc0_4) << 4 | (misc0_3) << 3 | ((misc0_21) << 1))#define DP_MSA_MISC_COLOR_RGB			_DP_MSA_MISC_COLOR(0, 0, 0, 0)#define DP_MSA_MISC_COLOR_CEA_RGB		_DP_MSA_MISC_COLOR(0, 0, 1, 0)#define DP_MSA_MISC_COLOR_RGB_WIDE_FIXED	_DP_MSA_MISC_COLOR(0, 3, 0, 0)#define DP_MSA_MISC_COLOR_RGB_WIDE_FLOAT	_DP_MSA_MISC_COLOR(0, 3, 0, 1)#define DP_MSA_MISC_COLOR_Y_ONLY		_DP_MSA_MISC_COLOR(1, 0, 0, 0)#define DP_MSA_MISC_COLOR_RAW			_DP_MSA_MISC_COLOR(1, 1, 0, 0)#define DP_MSA_MISC_COLOR_YCBCR_422_BT601	_DP_MSA_MISC_COLOR(0, 1, 1, 0)#define DP_MSA_MISC_COLOR_YCBCR_422_BT709	_DP_MSA_MISC_COLOR(0, 1, 1, 1)#define DP_MSA_MISC_COLOR_YCBCR_444_BT601	_DP_MSA_MISC_COLOR(0, 2, 1, 0)#define DP_MSA_MISC_COLOR_YCBCR_444_BT709	_DP_MSA_MISC_COLOR(0, 2, 1, 1)#define DP_MSA_MISC_COLOR_XVYCC_422_BT601	_DP_MSA_MISC_COLOR(0, 1, 0, 0)#define DP_MSA_MISC_COLOR_XVYCC_422_BT709	_DP_MSA_MISC_COLOR(0, 1, 0, 1)#define DP_MSA_MISC_COLOR_XVYCC_444_BT601	_DP_MSA_MISC_COLOR(0, 2, 0, 0)#define DP_MSA_MISC_COLOR_XVYCC_444_BT709	_DP_MSA_MISC_COLOR(0, 2, 0, 1)#define DP_MSA_MISC_COLOR_OPRGB			_DP_MSA_MISC_COLOR(0, 0, 1, 1)#define DP_MSA_MISC_COLOR_DCI_P3		_DP_MSA_MISC_COLOR(0, 3, 1, 0)#define DP_MSA_MISC_COLOR_COLOR_PROFILE		_DP_MSA_MISC_COLOR(0, 3, 1, 1)#define DP_MSA_MISC_COLOR_VSC_SDP		(1 << 14) #define DP_AUX_MAX_PAYLOAD_BYTES	16 #define DP_AUX_I2C_WRITE		0x0#define DP_AUX_I2C_READ			0x1#define DP_AUX_I2C_WRITE_STATUS_UPDATE	0x2#define DP_AUX_I2C_MOT			0x4#define DP_AUX_NATIVE_WRITE		0x8#define DP_AUX_NATIVE_READ		0x9 #define DP_AUX_NATIVE_REPLY_ACK		(0x0 << 0)#define DP_AUX_NATIVE_REPLY_NACK	(0x1 << 0)#define DP_AUX_NATIVE_REPLY_DEFER	(0x2 << 0)#define DP_AUX_NATIVE_REPLY_MASK	(0x3 << 0) #define DP_AUX_I2C_REPLY_ACK		(0x0 << 2)#define DP_AUX_I2C_REPLY_NACK		(0x1 << 2)#define DP_AUX_I2C_REPLY_DEFER		(0x2 << 2)#define DP_AUX_I2C_REPLY_MASK		(0x3 << 2) /* DPCD Field Address Mapping */ /* Receiver Capability */#define DP_DPCD_REV                         0x000# define DP_DPCD_REV_10                     0x10# define DP_DPCD_REV_11                     0x11# define DP_DPCD_REV_12                     0x12# define DP_DPCD_REV_13                     0x13# define DP_DPCD_REV_14                     0x14 #define DP_MAX_LINK_RATE                    0x001 #define DP_MAX_LANE_COUNT                   0x002# define DP_MAX_LANE_COUNT_MASK		    0x1f# define DP_POST_LT_ADJ_REQ_SUPPORTED	    (1 << 5) /* 1.3 */# define DP_TPS3_SUPPORTED		    (1 << 6) /* 1.2 */# define DP_ENHANCED_FRAME_CAP		    (1 << 7) #define DP_MAX_DOWNSPREAD                   0x003# define DP_MAX_DOWNSPREAD_0_5		    (1 << 0)# define DP_STREAM_REGENERATION_STATUS_CAP  (1 << 1) /* 2.0 */# define DP_NO_AUX_HANDSHAKE_LINK_TRAINING  (1 << 6)# define DP_TPS4_SUPPORTED                  (1 << 7) #define DP_NORP                             0x004 #define DP_DOWNSTREAMPORT_PRESENT           0x005# define DP_DWN_STRM_PORT_PRESENT           (1 << 0)# define DP_DWN_STRM_PORT_TYPE_MASK         0x06# define DP_DWN_STRM_PORT_TYPE_DP           (0 << 1)# define DP_DWN_STRM_PORT_TYPE_ANALOG       (1 << 1)# define DP_DWN_STRM_PORT_TYPE_TMDS         (2 << 1)# define DP_DWN_STRM_PORT_TYPE_OTHER        (3 << 1)# define DP_FORMAT_CONVERSION               (1 << 3)# define DP_DETAILED_CAP_INFO_AVAILABLE	    (1 << 4) /* DPI */ #define DP_MAIN_LINK_CHANNEL_CODING         0x006# define DP_CAP_ANSI_8B10B		    (1 << 0)# define DP_CAP_ANSI_128B132B               (1 << 1) /* 2.0 */ #define DP_DOWN_STREAM_PORT_COUNT	    0x007# define DP_PORT_COUNT_MASK		    0x0f# define DP_MSA_TIMING_PAR_IGNORED	    (1 << 6) /* eDP */# define DP_OUI_SUPPORT			    (1 << 7) #define DP_RECEIVE_PORT_0_CAP_0		    0x008# define DP_LOCAL_EDID_PRESENT		    (1 << 1)# define DP_ASSOCIATED_TO_PRECEDING_PORT    (1 << 2)# define DP_HBLANK_EXPANSION_CAPABLE        (1 << 3) #define DP_RECEIVE_PORT_0_BUFFER_SIZE	    0x009 #define DP_RECEIVE_PORT_1_CAP_0		    0x00a#define DP_RECEIVE_PORT_1_BUFFER_SIZE       0x00b #define DP_I2C_SPEED_CAP		    0x00c    /* DPI */# define DP_I2C_SPEED_1K		    0x01# define DP_I2C_SPEED_5K		    0x02# define DP_I2C_SPEED_10K		    0x04# define DP_I2C_SPEED_100K		    0x08# define DP_I2C_SPEED_400K		    0x10# define DP_I2C_SPEED_1M		    0x20 #define DP_EDP_CONFIGURATION_CAP            0x00d   /* XXX 1.2? */# define DP_ALTERNATE_SCRAMBLER_RESET_CAP   (1 << 0)# define DP_FRAMING_CHANGE_CAP		    (1 << 1)# define DP_DPCD_DISPLAY_CONTROL_CAPABLE     (1 << 3) /* edp v1.2 or higher */ #define DP_TRAINING_AUX_RD_INTERVAL             0x00e   /* XXX 1.2? */# define DP_TRAINING_AUX_RD_MASK                0x7F    /* DP 1.3 */# define DP_EXTENDED_RECEIVER_CAP_FIELD_PRESENT	(1 << 7) /* DP 1.3 */ #define DP_ADAPTER_CAP			    0x00f   /* 1.2 */# define DP_FORCE_LOAD_SENSE_CAP	    (1 << 0)# define DP_ALTERNATE_I2C_PATTERN_CAP	    (1 << 1) #define DP_SUPPORTED_LINK_RATES		    0x010 /* eDP 1.4 */# define DP_MAX_SUPPORTED_RATES		     8	    /* 16-bit little-endian */ /* Multiple stream transport */#define DP_FAUX_CAP			    0x020   /* 1.2 */# define DP_FAUX_CAP_1			    (1 << 0) #define DP_SINK_VIDEO_FALLBACK_FORMATS      0x020   /* 2.0 */# define DP_FALLBACK_1024x768_60HZ_24BPP    (1 << 0)# define DP_FALLBACK_1280x720_60HZ_24BPP    (1 << 1)# define DP_FALLBACK_1920x1080_60HZ_24BPP   (1 << 2) #define DP_MSTM_CAP			    0x021   /* 1.2 */# define DP_MST_CAP			    (1 << 0)# define DP_SINGLE_STREAM_SIDEBAND_MSG      (1 << 1) /* 2.0 */ #define DP_NUMBER_OF_AUDIO_ENDPOINTS	    0x022   /* 1.2 */ /* AV_SYNC_DATA_BLOCK                                  1.2 */#define DP_AV_GRANULARITY		    0x023# define DP_AG_FACTOR_MASK		    (0xf << 0)# define DP_AG_FACTOR_3MS		    (0 << 0)# define DP_AG_FACTOR_2MS		    (1 << 0)# define DP_AG_FACTOR_1MS		    (2 << 0)# define DP_AG_FACTOR_500US		    (3 << 0)# define DP_AG_FACTOR_200US		    (4 << 0)# define DP_AG_FACTOR_100US		    (5 << 0)# define DP_AG_FACTOR_10US		    (6 << 0)# define DP_AG_FACTOR_1US		    (7 << 0)# define DP_VG_FACTOR_MASK		    (0xf << 4)# define DP_VG_FACTOR_3MS		    (0 << 4)# define DP_VG_FACTOR_2MS		    (1 << 4)# define DP_VG_FACTOR_1MS		    (2 << 4)# define DP_VG_FACTOR_500US		    (3 << 4)# define DP_VG_FACTOR_200US		    (4 << 4)# define DP_VG_FACTOR_100US		    (5 << 4) #define DP_AUD_DEC_LAT0			    0x024#define DP_AUD_DEC_LAT1			    0x025 #define DP_AUD_PP_LAT0			    0x026#define DP_AUD_PP_LAT1			    0x027 #define DP_VID_INTER_LAT		    0x028 #define DP_VID_PROG_LAT			    0x029 #define DP_REP_LAT			    0x02a #define DP_AUD_DEL_INS0			    0x02b#define DP_AUD_DEL_INS1			    0x02c#define DP_AUD_DEL_INS2			    0x02d/* End of AV_SYNC_DATA_BLOCK */ #define DP_RECEIVER_ALPM_CAP		    0x02e   /* eDP 1.4 */# define DP_ALPM_CAP			    (1 << 0)# define DP_ALPM_PM_STATE_2A_SUPPORT	    (1 << 1) /* eDP 1.5 */# define DP_ALPM_AUX_LESS_CAP		    (1 << 2) /* eDP 1.5 */ #define DP_SINK_DEVICE_AUX_FRAME_SYNC_CAP   0x02f   /* eDP 1.4 */# define DP_AUX_FRAME_SYNC_CAP		    (1 << 0) #define DP_GUID				    0x030   /* 1.2 */ #define DP_DSC_SUPPORT                      0x060   /* DP 1.4 */# define DP_DSC_DECOMPRESSION_IS_SUPPORTED  (1 << 0)# define DP_DSC_PASSTHROUGH_IS_SUPPORTED    (1 << 1)# define DP_DSC_DYNAMIC_PPS_UPDATE_SUPPORT_COMP_TO_COMP    (1 << 2)# define DP_DSC_DYNAMIC_PPS_UPDATE_SUPPORT_UNCOMP_TO_COMP  (1 << 3) #define DP_DSC_REV                          0x061# define DP_DSC_MAJOR_MASK                  (0xf << 0)# define DP_DSC_MINOR_MASK                  (0xf << 4)# define DP_DSC_MAJOR_SHIFT                 0# define DP_DSC_MINOR_SHIFT                 4 #define DP_DSC_RC_BUF_BLK_SIZE              0x062# define DP_DSC_RC_BUF_BLK_SIZE_1           0x0# define DP_DSC_RC_BUF_BLK_SIZE_4           0x1# define DP_DSC_RC_BUF_BLK_SIZE_16          0x2# define DP_DSC_RC_BUF_BLK_SIZE_64          0x3# define DP_DSC_THROUGHPUT_MODE_0_DELTA_SHIFT 3 /* DP 2.1a, in units of 2 MPixels/sec */# define DP_DSC_THROUGHPUT_MODE_0_DELTA_MASK  (0x1f << DP_DSC_THROUGHPUT_MODE_0_DELTA_SHIFT) #define DP_DSC_RC_BUF_SIZE                  0x063 #define DP_DSC_SLICE_CAP_1                  0x064# define DP_DSC_1_PER_DP_DSC_SINK           (1 << 0)# define DP_DSC_2_PER_DP_DSC_SINK           (1 << 1)# define DP_DSC_4_PER_DP_DSC_SINK           (1 << 3)# define DP_DSC_6_PER_DP_DSC_SINK           (1 << 4)# define DP_DSC_8_PER_DP_DSC_SINK           (1 << 5)# define DP_DSC_10_PER_DP_DSC_SINK          (1 << 6)# define DP_DSC_12_PER_DP_DSC_SINK          (1 << 7) #define DP_DSC_LINE_BUF_BIT_DEPTH           0x065# define DP_DSC_LINE_BUF_BIT_DEPTH_MASK     (0xf << 0)# define DP_DSC_LINE_BUF_BIT_DEPTH_9        0x0# define DP_DSC_LINE_BUF_BIT_DEPTH_10       0x1# define DP_DSC_LINE_BUF_BIT_DEPTH_11       0x2# define DP_DSC_LINE_BUF_BIT_DEPTH_12       0x3# define DP_DSC_LINE_BUF_BIT_DEPTH_13       0x4# define DP_DSC_LINE_BUF_BIT_DEPTH_14       0x5# define DP_DSC_LINE_BUF_BIT_DEPTH_15       0x6# define DP_DSC_LINE_BUF_BIT_DEPTH_16       0x7# define DP_DSC_LINE_BUF_BIT_DEPTH_8        0x8 #define DP_DSC_BLK_PREDICTION_SUPPORT       0x066# define DP_DSC_BLK_PREDICTION_IS_SUPPORTED (1 << 0)# define DP_DSC_RGB_COLOR_CONV_BYPASS_SUPPORT (1 << 1) #define DP_DSC_MAX_BITS_PER_PIXEL_LOW       0x067   /* eDP 1.4 */ #define DP_DSC_MAX_BITS_PER_PIXEL_HI        0x068   /* eDP 1.4 */# define DP_DSC_MAX_BITS_PER_PIXEL_HI_MASK  (0x3 << 0)# define DP_DSC_MAX_BPP_DELTA_VERSION_MASK  (0x3 << 5)	/* eDP 1.5 & DP 2.0 */# define DP_DSC_MAX_BPP_DELTA_AVAILABILITY  (1 << 7)	/* eDP 1.5 & DP 2.0 */ #define DP_DSC_DEC_COLOR_FORMAT_CAP         0x069# define DP_DSC_RGB                         (1 << 0)# define DP_DSC_YCbCr444                    (1 << 1)# define DP_DSC_YCbCr422_Simple             (1 << 2)# define DP_DSC_YCbCr422_Native             (1 << 3)# define DP_DSC_YCbCr420_Native             (1 << 4) #define DP_DSC_DEC_COLOR_DEPTH_CAP          0x06A# define DP_DSC_8_BPC                       (1 << 1)# define DP_DSC_10_BPC                      (1 << 2)# define DP_DSC_12_BPC                      (1 << 3) #define DP_DSC_PEAK_THROUGHPUT              0x06B# define DP_DSC_THROUGHPUT_MODE_0_MASK      (0xf << 0)# define DP_DSC_THROUGHPUT_MODE_0_SHIFT     0# define DP_DSC_THROUGHPUT_MODE_0_UNSUPPORTED 0# define DP_DSC_THROUGHPUT_MODE_0_340       (1 << 0)# define DP_DSC_THROUGHPUT_MODE_0_400       (2 << 0)# define DP_DSC_THROUGHPUT_MODE_0_450       (3 << 0)# define DP_DSC_THROUGHPUT_MODE_0_500       (4 << 0)# define DP_DSC_THROUGHPUT_MODE_0_550       (5 << 0)# define DP_DSC_THROUGHPUT_MODE_0_600       (6 << 0)# define DP_DSC_THROUGHPUT_MODE_0_650       (7 << 0)# define DP_DSC_THROUGHPUT_MODE_0_700       (8 << 0)# define DP_DSC_THROUGHPUT_MODE_0_750       (9 << 0)# define DP_DSC_THROUGHPUT_MODE_0_800       (10 << 0)# define DP_DSC_THROUGHPUT_MODE_0_850       (11 << 0)# define DP_DSC_THROUGHPUT_MODE_0_900       (12 << 0)# define DP_DSC_THROUGHPUT_MODE_0_950       (13 << 0)# define DP_DSC_THROUGHPUT_MODE_0_1000      (14 << 0)# define DP_DSC_THROUGHPUT_MODE_0_170       (15 << 0) /* 1.4a */# define DP_DSC_THROUGHPUT_MODE_1_MASK      (0xf << 4)# define DP_DSC_THROUGHPUT_MODE_1_SHIFT     4# define DP_DSC_THROUGHPUT_MODE_1_UNSUPPORTED 0# define DP_DSC_THROUGHPUT_MODE_1_340       (1 << 4)# define DP_DSC_THROUGHPUT_MODE_1_400       (2 << 4)# define DP_DSC_THROUGHPUT_MODE_1_450       (3 << 4)# define DP_DSC_THROUGHPUT_MODE_1_500       (4 << 4)# define DP_DSC_THROUGHPUT_MODE_1_550       (5 << 4)# define DP_DSC_THROUGHPUT_MODE_1_600       (6 << 4)# define DP_DSC_THROUGHPUT_MODE_1_650       (7 << 4)# define DP_DSC_THROUGHPUT_MODE_1_700       (8 << 4)# define DP_DSC_THROUGHPUT_MODE_1_750       (9 << 4)# define DP_DSC_THROUGHPUT_MODE_1_800       (10 << 4)# define DP_DSC_THROUGHPUT_MODE_1_850       (11 << 4)# define DP_DSC_THROUGHPUT_MODE_1_900       (12 << 4)# define DP_DSC_THROUGHPUT_MODE_1_950       (13 << 4)# define DP_DSC_THROUGHPUT_MODE_1_1000      (14 << 4)# define DP_DSC_THROUGHPUT_MODE_1_170       (15 << 4) #define DP_DSC_MAX_SLICE_WIDTH              0x06C#define DP_DSC_MIN_SLICE_WIDTH_VALUE        2560#define DP_DSC_SLICE_WIDTH_MULTIPLIER       320 #define DP_DSC_SLICE_CAP_2                  0x06D# define DP_DSC_16_PER_DP_DSC_SINK          (1 << 0)# define DP_DSC_20_PER_DP_DSC_SINK          (1 << 1)# define DP_DSC_24_PER_DP_DSC_SINK          (1 << 2) #define DP_DSC_MAX_BPP_DELTA_VERSION_1		0x06E# define DP_DSC_RGB_YCbCr444_MAX_BPP_DELTA_MASK 0x1f# define DP_DSC_NATIVE_YCbCr420_MAX_BPP_DELTA_MASK 0xe0 # define DP_DSC_BPP_DELTA_444			16# define DP_DSC_BPP_DELTA_420			12# define DP_DSC_BPP_DELTA_SHIFT_420		5 #define DP_DSC_BITS_PER_PIXEL_INC           0x06F# define DP_DSC_BITS_PER_PIXEL_1_16         0x0# define DP_DSC_BITS_PER_PIXEL_1_8          0x1# define DP_DSC_BITS_PER_PIXEL_1_4          0x2# define DP_DSC_BITS_PER_PIXEL_1_2          0x3# define DP_DSC_BITS_PER_PIXEL_1_1          0x4# define DP_DSC_BITS_PER_PIXEL_MASK         0x7# define DP_DSC_NATIVE_YCbCr422_MAX_BPP_DELTA_MASK  0x78# define DP_DSC_BPP_DELTA_NATIVE_SHIFT_422	3# define DP_DSC_BPP_DELTA_NATIVE_422		16 #define DP_PSR_SUPPORT                      0x070   /* XXX 1.2? */# define DP_PSR_IS_SUPPORTED                1# define DP_PSR2_IS_SUPPORTED		    2	    /* eDP 1.4 */# define DP_PSR2_WITH_Y_COORD_IS_SUPPORTED  3	    /* eDP 1.4a */# define DP_PSR2_WITH_Y_COORD_ET_SUPPORTED  4	    /* eDP 1.5, adopted eDP 1.4b SCR */ #define DP_PSR_CAPS                         0x071   /* XXX 1.2? */# define DP_PSR_NO_TRAIN_ON_EXIT            1# define DP_PSR_SETUP_TIME_330              (0 << 1)# define DP_PSR_SETUP_TIME_275              (1 << 1)# define DP_PSR_SETUP_TIME_220              (2 << 1)# define DP_PSR_SETUP_TIME_165              (3 << 1)# define DP_PSR_SETUP_TIME_110              (4 << 1)# define DP_PSR_SETUP_TIME_55               (5 << 1)# define DP_PSR_SETUP_TIME_0                (6 << 1)# define DP_PSR_SETUP_TIME_MASK             (7 << 1)# define DP_PSR_SETUP_TIME_SHIFT            1# define DP_PSR2_SU_Y_COORDINATE_REQUIRED   (1 << 4)  /* eDP 1.4a */# define DP_PSR2_SU_GRANULARITY_REQUIRED    (1 << 5)  /* eDP 1.4b */# define DP_PSR2_SU_AUX_FRAME_SYNC_NOT_NEEDED (1 << 6)/* eDP 1.5, adopted eDP 1.4b SCR */ #define DP_PSR2_SU_X_GRANULARITY	    0x072 /* eDP 1.4b */#define DP_PSR2_SU_Y_GRANULARITY	    0x074 /* eDP 1.4b */ /* * 0x80-0x8f describe downstream port capabilities, but there are two layouts * based on whether DP_DETAILED_CAP_INFO_AVAILABLE was set.  If it was not, * each port's descriptor is one byte wide.  If it was set, each port's is * four bytes wide, starting with the one byte from the base info.  As of * DP interop v1.1a only VGA defines additional detail. */ /* offset 0 */#define DP_DOWNSTREAM_PORT_0		    0x80# define DP_DS_PORT_TYPE_MASK		    (7 << 0)# define DP_DS_PORT_TYPE_DP		    0# define DP_DS_PORT_TYPE_VGA		    1# define DP_DS_PORT_TYPE_DVI		    2# define DP_DS_PORT_TYPE_HDMI		    3# define DP_DS_PORT_TYPE_NON_EDID	    4# define DP_DS_PORT_TYPE_DP_DUALMODE        5# define DP_DS_PORT_TYPE_WIRELESS           6# define DP_DS_PORT_HPD			    (1 << 3)# define DP_DS_NON_EDID_MASK		    (0xf << 4)# define DP_DS_NON_EDID_720x480i_60	    (1 << 4)# define DP_DS_NON_EDID_720x480i_50	    (2 << 4)# define DP_DS_NON_EDID_1920x1080i_60	    (3 << 4)# define DP_DS_NON_EDID_1920x1080i_50	    (4 << 4)# define DP_DS_NON_EDID_1280x720_60	    (5 << 4)# define DP_DS_NON_EDID_1280x720_50	    (7 << 4)/* offset 1 for VGA is maximum megapixels per second / 8 *//* offset 1 for DVI/HDMI is maximum TMDS clock in Mbps / 2.5 *//* offset 2 for VGA/DVI/HDMI */# define DP_DS_MAX_BPC_MASK	            (3 << 0)# define DP_DS_8BPC		            0# define DP_DS_10BPC		            1# define DP_DS_12BPC		            2# define DP_DS_16BPC		            3/* HDMI2.1 PCON FRL CONFIGURATION */# define DP_PCON_MAX_FRL_BW                 (7 << 2)# define DP_PCON_MAX_0GBPS                  (0 << 2)# define DP_PCON_MAX_9GBPS                  (1 << 2)# define DP_PCON_MAX_18GBPS                 (2 << 2)# define DP_PCON_MAX_24GBPS                 (3 << 2)# define DP_PCON_MAX_32GBPS                 (4 << 2)# define DP_PCON_MAX_40GBPS                 (5 << 2)# define DP_PCON_MAX_48GBPS                 (6 << 2)# define DP_PCON_SOURCE_CTL_MODE            (1 << 5) /* offset 3 for DVI */# define DP_DS_DVI_DUAL_LINK		    (1 << 1)# define DP_DS_DVI_HIGH_COLOR_DEPTH	    (1 << 2)/* offset 3 for HDMI */# define DP_DS_HDMI_FRAME_SEQ_TO_FRAME_PACK (1 << 0)# define DP_DS_HDMI_YCBCR422_PASS_THROUGH   (1 << 1)# define DP_DS_HDMI_YCBCR420_PASS_THROUGH   (1 << 2)# define DP_DS_HDMI_YCBCR444_TO_422_CONV    (1 << 3)# define DP_DS_HDMI_YCBCR444_TO_420_CONV    (1 << 4) /* * VESA DP-to-HDMI PCON Specification adds caps for colorspace * conversion in DFP cap DPCD 83h. Sec6.1 Table-3. * Based on the available support the source can enable * color conversion by writing into PROTOCOL_COVERTER_CONTROL_2 * DPCD 3052h. */# define DP_DS_HDMI_BT601_RGB_YCBCR_CONV    (1 << 5)# define DP_DS_HDMI_BT709_RGB_YCBCR_CONV    (1 << 6)# define DP_DS_HDMI_BT2020_RGB_YCBCR_CONV   (1 << 7) #define DP_MAX_DOWNSTREAM_PORTS		    0x10 /* DP Forward error Correction Registers */#define DP_FEC_CAPABILITY		    0x090    /* 1.4 */# define DP_FEC_CAPABLE			    (1 << 0)# define DP_FEC_UNCORR_BLK_ERROR_COUNT_CAP  (1 << 1)# define DP_FEC_CORR_BLK_ERROR_COUNT_CAP    (1 << 2)# define DP_FEC_BIT_ERROR_COUNT_CAP	    (1 << 3)#define DP_FEC_CAPABILITY_1			0x091   /* 2.0 */ /* DP-HDMI2.1 PCON DSC ENCODER SUPPORT */#define DP_PCON_DSC_ENCODER_CAP_SIZE        0xD	/* 0x92 through 0x9E */#define DP_PCON_DSC_ENCODER                 0x092# define DP_PCON_DSC_ENCODER_SUPPORTED      (1 << 0)# define DP_PCON_DSC_PPS_ENC_OVERRIDE       (1 << 1) /* DP-HDMI2.1 PCON DSC Version */#define DP_PCON_DSC_VERSION                 0x093# define DP_PCON_DSC_MAJOR_MASK		    (0xF << 0)# define DP_PCON_DSC_MINOR_MASK		    (0xF << 4)# define DP_PCON_DSC_MAJOR_SHIFT	    0# define DP_PCON_DSC_MINOR_SHIFT	    4 /* DP-HDMI2.1 PCON DSC RC Buffer block size */#define DP_PCON_DSC_RC_BUF_BLK_INFO	    0x094# define DP_PCON_DSC_RC_BUF_BLK_SIZE	    (0x3 << 0)# define DP_PCON_DSC_RC_BUF_BLK_1KB	    0# define DP_PCON_DSC_RC_BUF_BLK_4KB	    1# define DP_PCON_DSC_RC_BUF_BLK_16KB	    2# define DP_PCON_DSC_RC_BUF_BLK_64KB	    3 /* DP-HDMI2.1 PCON DSC RC Buffer size */#define DP_PCON_DSC_RC_BUF_SIZE		    0x095 /* DP-HDMI2.1 PCON DSC Slice capabilities-1 */

Lines 1–500 of 1902.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t