Rev 3192 | Rev 4559 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3192 | Rev 4103 | ||
---|---|---|---|
Line 341... | Line 341... | ||
341 | int lane); |
341 | int lane); |
342 | u8 drm_dp_get_adjust_request_pre_emphasis(u8 link_status[DP_LINK_STATUS_SIZE], |
342 | u8 drm_dp_get_adjust_request_pre_emphasis(u8 link_status[DP_LINK_STATUS_SIZE], |
343 | int lane); |
343 | int lane); |
Line 344... | Line 344... | ||
344 | 344 | ||
- | 345 | #define DP_RECEIVER_CAP_SIZE 0xf |
|
- | 346 | #define EDP_PSR_RECEIVER_CAP_SIZE 2 |
|
345 | #define DP_RECEIVER_CAP_SIZE 0xf |
347 | |
346 | void drm_dp_link_train_clock_recovery_delay(u8 dpcd[DP_RECEIVER_CAP_SIZE]); |
348 | void drm_dp_link_train_clock_recovery_delay(u8 dpcd[DP_RECEIVER_CAP_SIZE]); |
Line 347... | Line 349... | ||
347 | void drm_dp_link_train_channel_eq_delay(u8 dpcd[DP_RECEIVER_CAP_SIZE]); |
349 | void drm_dp_link_train_channel_eq_delay(u8 dpcd[DP_RECEIVER_CAP_SIZE]); |
348 | 350 | ||
Line -... | Line 351... | ||
- | 351 | u8 drm_dp_link_rate_to_bw_code(int link_rate); |
|
- | 352 | int drm_dp_bw_code_to_link_rate(u8 link_bw); |
|
- | 353 | ||
- | 354 | struct edp_sdp_header { |
|
- | 355 | u8 HB0; /* Secondary Data Packet ID */ |
|
- | 356 | u8 HB1; /* Secondary Data Packet Type */ |
|
- | 357 | u8 HB2; /* 7:5 reserved, 4:0 revision number */ |
|
- | 358 | u8 HB3; /* 7:5 reserved, 4:0 number of valid data bytes */ |
|
- | 359 | } __packed; |
|
- | 360 | ||
- | 361 | #define EDP_SDP_HEADER_REVISION_MASK 0x1F |
|
- | 362 | #define EDP_SDP_HEADER_VALID_PAYLOAD_BYTES 0x1F |
|
- | 363 | ||
- | 364 | struct edp_vsc_psr { |
|
- | 365 | struct edp_sdp_header sdp_header; |
|
- | 366 | u8 DB0; /* Stereo Interface */ |
|
- | 367 | u8 DB1; /* 0 - PSR State; 1 - Update RFB; 2 - CRC Valid */ |
|
- | 368 | u8 DB2; /* CRC value bits 7:0 of the R or Cr component */ |
|
- | 369 | u8 DB3; /* CRC value bits 15:8 of the R or Cr component */ |
|
- | 370 | u8 DB4; /* CRC value bits 7:0 of the G or Y component */ |
|
- | 371 | u8 DB5; /* CRC value bits 15:8 of the G or Y component */ |
|
- | 372 | u8 DB6; /* CRC value bits 7:0 of the B or Cb component */ |
|
- | 373 | u8 DB7; /* CRC value bits 15:8 of the B or Cb component */ |
|
- | 374 | u8 DB8_31[24]; /* Reserved */ |
|
- | 375 | } __packed; |
|
- | 376 | ||
- | 377 | #define EDP_VSC_PSR_STATE_ACTIVE (1<<0) |
|
349 | u8 drm_dp_link_rate_to_bw_code(int link_rate); |
378 | #define EDP_VSC_PSR_UPDATE_RFB (1<<1) |
350 | int drm_dp_bw_code_to_link_rate(u8 link_bw); |
379 | #define EDP_VSC_PSR_CRC_VALUES_VALID (1<<2) |
351 | 380 | ||
352 | static inline int |
381 | static inline int |
353 | drm_dp_max_link_rate(u8 dpcd[DP_RECEIVER_CAP_SIZE]) |
382 | drm_dp_max_link_rate(u8 dpcd[DP_RECEIVER_CAP_SIZE]) |