1 /****************************************************************************\
3 * Module Name displayobjectsoc15.h
7 * Description Contains the common definitions for display objects for SoC15 products.
9 * Copyright 2014 Advanced Micro Devices, Inc.
11 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
12 * and associated documentation files (the "Software"), to deal in the Software without restriction,
13 * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
15 * subject to the following conditions:
17 * The above copyright notice and this permission notice shall be included in all copies or substantial
18 * portions of the Software.
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
24 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
25 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26 * OTHER DEALINGS IN THE SOFTWARE.
28 \****************************************************************************/
29 #ifndef _DISPLAY_OBJECT_SOC15_H_
30 #define _DISPLAY_OBJECT_SOC15_H_
37 /****************************************************
38 * Display Object Type Definition
39 *****************************************************/
40 enum display_object_type
{
41 DISPLAY_OBJECT_TYPE_NONE
=0x00,
42 DISPLAY_OBJECT_TYPE_GPU
=0x01,
43 DISPLAY_OBJECT_TYPE_ENCODER
=0x02,
44 DISPLAY_OBJECT_TYPE_CONNECTOR
=0x03
47 /****************************************************
48 * Encorder Object Type Definition
49 *****************************************************/
50 enum encoder_object_type
{
51 ENCODER_OBJECT_ID_NONE
=0x00,
52 ENCODER_OBJECT_ID_INTERNAL_UNIPHY
=0x01,
53 ENCODER_OBJECT_ID_INTERNAL_UNIPHY1
=0x02,
54 ENCODER_OBJECT_ID_INTERNAL_UNIPHY2
=0x03,
58 /****************************************************
59 * Connector Object ID Definition
60 *****************************************************/
62 enum connector_object_type
{
63 CONNECTOR_OBJECT_ID_NONE
=0x00,
64 CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D
=0x01,
65 CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D
=0x02,
66 CONNECTOR_OBJECT_ID_HDMI_TYPE_A
=0x03,
67 CONNECTOR_OBJECT_ID_LVDS
=0x04,
68 CONNECTOR_OBJECT_ID_DISPLAYPORT
=0x05,
69 CONNECTOR_OBJECT_ID_eDP
=0x06,
70 CONNECTOR_OBJECT_ID_OPM
=0x07
74 /****************************************************
75 * Protection Object ID Definition
76 *****************************************************/
79 /****************************************************
80 * Object ENUM ID Definition
81 *****************************************************/
84 OBJECT_ENUM_ID1
=0x01,
85 OBJECT_ENUM_ID2
=0x02,
86 OBJECT_ENUM_ID3
=0x03,
87 OBJECT_ENUM_ID4
=0x04,
88 OBJECT_ENUM_ID5
=0x05,
92 /****************************************************
93 *Object ID Bit definition
94 *****************************************************/
96 OBJECT_ID_MASK
=0x00FF,
98 OBJECT_TYPE_MASK
=0xF000,
99 OBJECT_ID_SHIFT
=0x00,
101 OBJECT_TYPE_SHIFT
=0x0C
105 /****************************************************
106 * GPU Object definition - Shared with BIOS
107 *****************************************************/
109 GPU_ENUM_ID1
=( DISPLAY_OBJECT_TYPE_GPU
<< OBJECT_TYPE_SHIFT
| OBJECT_ENUM_ID1
<< ENUM_ID_SHIFT
)
112 /****************************************************
113 * Encoder Object definition - Shared with BIOS
114 *****************************************************/
116 enum encoder_objet_def
{
117 ENCODER_INTERNAL_UNIPHY_ENUM_ID1
=( DISPLAY_OBJECT_TYPE_ENCODER
<< OBJECT_TYPE_SHIFT
|\
118 OBJECT_ENUM_ID1
<< ENUM_ID_SHIFT
|\
119 ENCODER_OBJECT_ID_INTERNAL_UNIPHY
<< OBJECT_ID_SHIFT
),
121 ENCODER_INTERNAL_UNIPHY_ENUM_ID2
=( DISPLAY_OBJECT_TYPE_ENCODER
<< OBJECT_TYPE_SHIFT
|\
122 OBJECT_ENUM_ID2
<< ENUM_ID_SHIFT
|\
123 ENCODER_OBJECT_ID_INTERNAL_UNIPHY
<< OBJECT_ID_SHIFT
),
125 ENCODER_INTERNAL_UNIPHY1_ENUM_ID1
=( DISPLAY_OBJECT_TYPE_ENCODER
<< OBJECT_TYPE_SHIFT
|\
126 OBJECT_ENUM_ID1
<< ENUM_ID_SHIFT
|\
127 ENCODER_OBJECT_ID_INTERNAL_UNIPHY1
<< OBJECT_ID_SHIFT
),
129 ENCODER_INTERNAL_UNIPHY1_ENUM_ID2
=( DISPLAY_OBJECT_TYPE_ENCODER
<< OBJECT_TYPE_SHIFT
|\
130 OBJECT_ENUM_ID2
<< ENUM_ID_SHIFT
|\
131 ENCODER_OBJECT_ID_INTERNAL_UNIPHY1
<< OBJECT_ID_SHIFT
),
133 ENCODER_INTERNAL_UNIPHY2_ENUM_ID1
=( DISPLAY_OBJECT_TYPE_ENCODER
<< OBJECT_TYPE_SHIFT
|\
134 OBJECT_ENUM_ID1
<< ENUM_ID_SHIFT
|\
135 ENCODER_OBJECT_ID_INTERNAL_UNIPHY2
<< OBJECT_ID_SHIFT
),
137 ENCODER_INTERNAL_UNIPHY2_ENUM_ID2
=( DISPLAY_OBJECT_TYPE_ENCODER
<< OBJECT_TYPE_SHIFT
|\
138 OBJECT_ENUM_ID2
<< ENUM_ID_SHIFT
|\
139 ENCODER_OBJECT_ID_INTERNAL_UNIPHY2
<< OBJECT_ID_SHIFT
)
143 /****************************************************
144 * Connector Object definition - Shared with BIOS
145 *****************************************************/
148 enum connector_objet_def
{
149 CONNECTOR_LVDS_ENUM_ID1
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
150 OBJECT_ENUM_ID1
<< ENUM_ID_SHIFT
|\
151 CONNECTOR_OBJECT_ID_LVDS
<< OBJECT_ID_SHIFT
),
154 CONNECTOR_eDP_ENUM_ID1
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
155 OBJECT_ENUM_ID1
<< ENUM_ID_SHIFT
|\
156 CONNECTOR_OBJECT_ID_eDP
<< OBJECT_ID_SHIFT
),
158 CONNECTOR_SINGLE_LINK_DVI_D_ENUM_ID1
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
159 OBJECT_ENUM_ID1
<< ENUM_ID_SHIFT
|\
160 CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D
<< OBJECT_ID_SHIFT
),
162 CONNECTOR_SINGLE_LINK_DVI_D_ENUM_ID2
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
163 OBJECT_ENUM_ID2
<< ENUM_ID_SHIFT
|\
164 CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D
<< OBJECT_ID_SHIFT
),
167 CONNECTOR_DUAL_LINK_DVI_D_ENUM_ID1
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
168 OBJECT_ENUM_ID1
<< ENUM_ID_SHIFT
|\
169 CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D
<< OBJECT_ID_SHIFT
),
171 CONNECTOR_DUAL_LINK_DVI_D_ENUM_ID2
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
172 OBJECT_ENUM_ID2
<< ENUM_ID_SHIFT
|\
173 CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D
<< OBJECT_ID_SHIFT
),
175 CONNECTOR_HDMI_TYPE_A_ENUM_ID1
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
176 OBJECT_ENUM_ID1
<< ENUM_ID_SHIFT
|\
177 CONNECTOR_OBJECT_ID_HDMI_TYPE_A
<< OBJECT_ID_SHIFT
),
179 CONNECTOR_HDMI_TYPE_A_ENUM_ID2
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
180 OBJECT_ENUM_ID2
<< ENUM_ID_SHIFT
|\
181 CONNECTOR_OBJECT_ID_HDMI_TYPE_A
<< OBJECT_ID_SHIFT
),
183 CONNECTOR_DISPLAYPORT_ENUM_ID1
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
184 OBJECT_ENUM_ID1
<< ENUM_ID_SHIFT
|\
185 CONNECTOR_OBJECT_ID_DISPLAYPORT
<< OBJECT_ID_SHIFT
),
187 CONNECTOR_DISPLAYPORT_ENUM_ID2
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
188 OBJECT_ENUM_ID2
<< ENUM_ID_SHIFT
|\
189 CONNECTOR_OBJECT_ID_DISPLAYPORT
<< OBJECT_ID_SHIFT
),
191 CONNECTOR_DISPLAYPORT_ENUM_ID3
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
192 OBJECT_ENUM_ID3
<< ENUM_ID_SHIFT
|\
193 CONNECTOR_OBJECT_ID_DISPLAYPORT
<< OBJECT_ID_SHIFT
),
195 CONNECTOR_DISPLAYPORT_ENUM_ID4
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
196 OBJECT_ENUM_ID4
<< ENUM_ID_SHIFT
|\
197 CONNECTOR_OBJECT_ID_DISPLAYPORT
<< OBJECT_ID_SHIFT
),
199 CONNECTOR_OPM_ENUM_ID1
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
200 OBJECT_ENUM_ID1
<< ENUM_ID_SHIFT
|\
201 CONNECTOR_OBJECT_ID_OPM
<< OBJECT_ID_SHIFT
), //Mapping to MXM_DP_A
203 CONNECTOR_OPM_ENUM_ID2
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
204 OBJECT_ENUM_ID2
<< ENUM_ID_SHIFT
|\
205 CONNECTOR_OBJECT_ID_OPM
<< OBJECT_ID_SHIFT
), //Mapping to MXM_DP_B
207 CONNECTOR_OPM_ENUM_ID3
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
208 OBJECT_ENUM_ID3
<< ENUM_ID_SHIFT
|\
209 CONNECTOR_OBJECT_ID_OPM
<< OBJECT_ID_SHIFT
), //Mapping to MXM_DP_C
211 CONNECTOR_OPM_ENUM_ID4
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
212 OBJECT_ENUM_ID4
<< ENUM_ID_SHIFT
|\
213 CONNECTOR_OBJECT_ID_OPM
<< OBJECT_ID_SHIFT
), //Mapping to MXM_DP_D
215 CONNECTOR_OPM_ENUM_ID5
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
216 OBJECT_ENUM_ID5
<< ENUM_ID_SHIFT
|\
217 CONNECTOR_OBJECT_ID_OPM
<< OBJECT_ID_SHIFT
), //Mapping to MXM_LVDS_TXxx
220 CONNECTOR_OPM_ENUM_ID6
=( DISPLAY_OBJECT_TYPE_CONNECTOR
<< OBJECT_TYPE_SHIFT
|\
221 OBJECT_ENUM_ID6
<< ENUM_ID_SHIFT
|\
222 CONNECTOR_OBJECT_ID_OPM
<< OBJECT_ID_SHIFT
) //Mapping to MXM_LVDS_TXxx
225 /****************************************************
226 * Router Object ID definition - Shared with BIOS
227 *****************************************************/
228 //No Need, in future we ever need, we can define a record in atomfirwareSoC15.h associated with an object that has this router
231 /****************************************************
232 * PROTECTION Object ID definition - Shared with BIOS
233 *****************************************************/
234 //No need,in future we ever need, all display path are capable of protection now.
236 /****************************************************
237 * Generic Object ID definition - Shared with BIOS
238 *****************************************************/
239 //No need, in future we ever need like GLsync, we can define a record in atomfirwareSoC15.h associated with an object.