linux/drivers/gpu/drm/amd/display/include/dpcd_defs.h

/*
 * Copyright 2012-15 Advanced Micro Devices, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Authors: AMD
 *
 */

#ifndef __DAL_DPCD_DEFS_H__
#define __DAL_DPCD_DEFS_H__

#include <drm/display/drm_dp_helper.h>
#ifndef DP_SINK_HW_REVISION_START // can remove this once the define gets into linux drm_dp_helper.h
#define DP_SINK_HW_REVISION_START
#endif

enum dpcd_revision {};

/* these are the types stored at DOWNSTREAMPORT_PRESENT */
enum dpcd_downstream_port_type {};

enum dpcd_link_test_patterns {};

enum dpcd_test_color_format {};

enum dpcd_test_bit_depth {};

/* PHY (encoder) test patterns
The order of test patterns follows DPCD register PHY_TEST_PATTERN (0x248)
*/
enum dpcd_phy_test_patterns {};

enum dpcd_test_dyn_range {};

enum dpcd_audio_test_pattern {};

enum dpcd_audio_sampling_rate {};

enum dpcd_audio_channels {};

enum dpcd_audio_test_pattern_periods {};

/* This enum is for programming DPCD TRAINING_PATTERN_SET */
enum dpcd_training_patterns {};

/* This enum is for use with PsrSinkPsrStatus.bits.sinkSelfRefreshStatus
It defines the possible PSR states. */
enum dpcd_psr_sink_states {};

#define DP_SOURCE_SEQUENCE
#define DP_SOURCE_TABLE_REVISION
#define DP_SOURCE_PAYLOAD_SIZE
#define DP_SOURCE_SINK_CAP
#define DP_SOURCE_BACKLIGHT_LEVEL
#define DP_SOURCE_BACKLIGHT_CURRENT_PEAK
#define DP_SOURCE_BACKLIGHT_CONTROL
#define DP_SOURCE_BACKLIGHT_ENABLE
#define DP_SOURCE_MINIMUM_HBLANK_SUPPORTED
#define DP_SINK_PR_REPLAY_STATUS
#define DP_SINK_PR_PIXEL_DEVIATION_PER_LINE
#define DP_SINK_PR_MAX_NUMBER_OF_DEVIATION_LINE

/* Remove once drm_dp_helper.h is updated upstream */
#ifndef DP_TOTAL_LTTPR_CNT
#define DP_TOTAL_LTTPR_CNT
#endif

#endif /* __DAL_DPCD_DEFS_H__ */