diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-01-22 15:03:00 -0500 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2019-01-30 16:23:13 -0500 |
commit | 45bbda1e35f4943fec6522ef0cdb63cb9ab5780b (patch) | |
tree | 70c107eb334fd207bee38e85a877e68c370d5c59 /include/drm | |
parent | d9f7bb56c2925ea0641fe5121b954acc6a873605 (diff) |
drm/dp/mst: Provide defines for ACK vs. NAK reply type
Make the code a bit easier to read by providing symbolic names
for the reply_type (ACK vs. NAK). Also clean up some brace stuff
while at it.
v2: s/DP_REPLY/DP_SIDEBAND_REPLY/ (DK)
Fix some checkpatch issues
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190122200301.18633-1-ville.syrjala@linux.intel.com
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_dp_helper.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index c223c87ef119..a62d3750663a 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h | |||
@@ -992,6 +992,10 @@ | |||
992 | #define DP_SINK_EVENT_NOTIFY 0x30 | 992 | #define DP_SINK_EVENT_NOTIFY 0x30 |
993 | #define DP_QUERY_STREAM_ENC_STATUS 0x38 | 993 | #define DP_QUERY_STREAM_ENC_STATUS 0x38 |
994 | 994 | ||
995 | /* DP 1.2 MST sideband reply types */ | ||
996 | #define DP_SIDEBAND_REPLY_ACK 0x00 | ||
997 | #define DP_SIDEBAND_REPLY_NAK 0x01 | ||
998 | |||
995 | /* DP 1.2 MST sideband nak reasons - table 2.84 */ | 999 | /* DP 1.2 MST sideband nak reasons - table 2.84 */ |
996 | #define DP_NAK_WRITE_FAILURE 0x01 | 1000 | #define DP_NAK_WRITE_FAILURE 0x01 |
997 | #define DP_NAK_INVALID_READ 0x02 | 1001 | #define DP_NAK_INVALID_READ 0x02 |