diff options
author | Emily Deng <Emily.Deng@amd.com> | 2016-08-07 23:30:34 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-08-08 13:44:11 -0400 |
commit | 16925c92dbd97524655525b6816625e1f0063d12 (patch) | |
tree | b34a114183c8927427752906388405978b2f9ae1 /drivers/gpu/drm/amd/amdgpu/ObjectID.h | |
parent | 14a2fb487bed51d6020ed5d950e9f2cf17b5421b (diff) |
drm/amdgpu: Add virtual connector and encoder macros.
For virtual display feature, add virtual connector and encoder macros.
Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/ObjectID.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/ObjectID.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/ObjectID.h b/drivers/gpu/drm/amd/amdgpu/ObjectID.h index 06192698bd96..b8d66670bb17 100644 --- a/drivers/gpu/drm/amd/amdgpu/ObjectID.h +++ b/drivers/gpu/drm/amd/amdgpu/ObjectID.h | |||
@@ -90,6 +90,7 @@ | |||
90 | #define ENCODER_OBJECT_ID_INTERNAL_VCE 0x24 | 90 | #define ENCODER_OBJECT_ID_INTERNAL_VCE 0x24 |
91 | #define ENCODER_OBJECT_ID_INTERNAL_UNIPHY3 0x25 | 91 | #define ENCODER_OBJECT_ID_INTERNAL_UNIPHY3 0x25 |
92 | #define ENCODER_OBJECT_ID_INTERNAL_AMCLK 0x27 | 92 | #define ENCODER_OBJECT_ID_INTERNAL_AMCLK 0x27 |
93 | #define ENCODER_OBJECT_ID_VIRTUAL 0x28 | ||
93 | 94 | ||
94 | #define ENCODER_OBJECT_ID_GENERAL_EXTERNAL_DVO 0xFF | 95 | #define ENCODER_OBJECT_ID_GENERAL_EXTERNAL_DVO 0xFF |
95 | 96 | ||
@@ -119,6 +120,7 @@ | |||
119 | #define CONNECTOR_OBJECT_ID_eDP 0x14 | 120 | #define CONNECTOR_OBJECT_ID_eDP 0x14 |
120 | #define CONNECTOR_OBJECT_ID_MXM 0x15 | 121 | #define CONNECTOR_OBJECT_ID_MXM 0x15 |
121 | #define CONNECTOR_OBJECT_ID_LVDS_eDP 0x16 | 122 | #define CONNECTOR_OBJECT_ID_LVDS_eDP 0x16 |
123 | #define CONNECTOR_OBJECT_ID_VIRTUAL 0x17 | ||
122 | 124 | ||
123 | /* deleted */ | 125 | /* deleted */ |
124 | 126 | ||
@@ -147,6 +149,7 @@ | |||
147 | #define GRAPH_OBJECT_ENUM_ID5 0x05 | 149 | #define GRAPH_OBJECT_ENUM_ID5 0x05 |
148 | #define GRAPH_OBJECT_ENUM_ID6 0x06 | 150 | #define GRAPH_OBJECT_ENUM_ID6 0x06 |
149 | #define GRAPH_OBJECT_ENUM_ID7 0x07 | 151 | #define GRAPH_OBJECT_ENUM_ID7 0x07 |
152 | #define GRAPH_OBJECT_ENUM_VIRTUAL 0x08 | ||
150 | 153 | ||
151 | /****************************************************/ | 154 | /****************************************************/ |
152 | /* Graphics Object ID Bit definition */ | 155 | /* Graphics Object ID Bit definition */ |
@@ -408,6 +411,10 @@ | |||
408 | GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\ | 411 | GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\ |
409 | ENCODER_OBJECT_ID_HDMI_ANX9805 << OBJECT_ID_SHIFT) | 412 | ENCODER_OBJECT_ID_HDMI_ANX9805 << OBJECT_ID_SHIFT) |
410 | 413 | ||
414 | #define ENCODER_VIRTUAL_ENUM_VIRTUAL ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\ | ||
415 | GRAPH_OBJECT_ENUM_VIRTUAL << ENUM_ID_SHIFT |\ | ||
416 | ENCODER_OBJECT_ID_VIRTUAL << OBJECT_ID_SHIFT) | ||
417 | |||
411 | /****************************************************/ | 418 | /****************************************************/ |
412 | /* Connector Object ID definition - Shared with BIOS */ | 419 | /* Connector Object ID definition - Shared with BIOS */ |
413 | /****************************************************/ | 420 | /****************************************************/ |