displayobject.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. /****************************************************************************\
  2. *
  3. * Module Name displayobjectsoc15.h
  4. * Project
  5. * Device
  6. *
  7. * Description Contains the common definitions for display objects for SoC15 products.
  8. *
  9. * Copyright 2014 Advanced Micro Devices, Inc.
  10. *
  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:
  16. *
  17. * The above copyright notice and this permission notice shall be included in all copies or substantial
  18. * portions of the Software.
  19. *
  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.
  27. *
  28. \****************************************************************************/
  29. #ifndef _DISPLAY_OBJECT_SOC15_H_
  30. #define _DISPLAY_OBJECT_SOC15_H_
  31. #if defined(_X86_)
  32. #pragma pack(1)
  33. #endif
  34. /****************************************************
  35. * Display Object Type Definition
  36. *****************************************************/
  37. enum display_object_type{
  38. DISPLAY_OBJECT_TYPE_NONE =0x00,
  39. DISPLAY_OBJECT_TYPE_GPU =0x01,
  40. DISPLAY_OBJECT_TYPE_ENCODER =0x02,
  41. DISPLAY_OBJECT_TYPE_CONNECTOR =0x03
  42. };
  43. /****************************************************
  44. * Encorder Object Type Definition
  45. *****************************************************/
  46. enum encoder_object_type{
  47. ENCODER_OBJECT_ID_NONE =0x00,
  48. ENCODER_OBJECT_ID_INTERNAL_UNIPHY =0x01,
  49. ENCODER_OBJECT_ID_INTERNAL_UNIPHY1 =0x02,
  50. ENCODER_OBJECT_ID_INTERNAL_UNIPHY2 =0x03,
  51. };
  52. /****************************************************
  53. * Connector Object ID Definition
  54. *****************************************************/
  55. enum connector_object_type{
  56. CONNECTOR_OBJECT_ID_NONE =0x00,
  57. CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D =0x01,
  58. CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D =0x02,
  59. CONNECTOR_OBJECT_ID_HDMI_TYPE_A =0x03,
  60. CONNECTOR_OBJECT_ID_LVDS =0x04,
  61. CONNECTOR_OBJECT_ID_DISPLAYPORT =0x05,
  62. CONNECTOR_OBJECT_ID_eDP =0x06,
  63. CONNECTOR_OBJECT_ID_OPM =0x07
  64. };
  65. /****************************************************
  66. * Protection Object ID Definition
  67. *****************************************************/
  68. //No need
  69. /****************************************************
  70. * Object ENUM ID Definition
  71. *****************************************************/
  72. enum object_enum_id{
  73. OBJECT_ENUM_ID1 =0x01,
  74. OBJECT_ENUM_ID2 =0x02,
  75. OBJECT_ENUM_ID3 =0x03,
  76. OBJECT_ENUM_ID4 =0x04,
  77. OBJECT_ENUM_ID5 =0x05,
  78. OBJECT_ENUM_ID6 =0x06
  79. };
  80. /****************************************************
  81. *Object ID Bit definition
  82. *****************************************************/
  83. enum object_id_bit{
  84. OBJECT_ID_MASK =0x00FF,
  85. ENUM_ID_MASK =0x0F00,
  86. OBJECT_TYPE_MASK =0xF000,
  87. OBJECT_ID_SHIFT =0x00,
  88. ENUM_ID_SHIFT =0x08,
  89. OBJECT_TYPE_SHIFT =0x0C
  90. };
  91. /****************************************************
  92. * GPU Object definition - Shared with BIOS
  93. *****************************************************/
  94. enum gpu_objet_def{
  95. GPU_ENUM_ID1 =( DISPLAY_OBJECT_TYPE_GPU << OBJECT_TYPE_SHIFT | OBJECT_ENUM_ID1 << ENUM_ID_SHIFT)
  96. };
  97. /****************************************************
  98. * Encoder Object definition - Shared with BIOS
  99. *****************************************************/
  100. enum encoder_objet_def{
  101. ENCODER_INTERNAL_UNIPHY_ENUM_ID1 =( DISPLAY_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  102. OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  103. ENCODER_OBJECT_ID_INTERNAL_UNIPHY << OBJECT_ID_SHIFT),
  104. ENCODER_INTERNAL_UNIPHY_ENUM_ID2 =( DISPLAY_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  105. OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  106. ENCODER_OBJECT_ID_INTERNAL_UNIPHY << OBJECT_ID_SHIFT),
  107. ENCODER_INTERNAL_UNIPHY1_ENUM_ID1 =( DISPLAY_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  108. OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  109. ENCODER_OBJECT_ID_INTERNAL_UNIPHY1 << OBJECT_ID_SHIFT),
  110. ENCODER_INTERNAL_UNIPHY1_ENUM_ID2 =( DISPLAY_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  111. OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  112. ENCODER_OBJECT_ID_INTERNAL_UNIPHY1 << OBJECT_ID_SHIFT),
  113. ENCODER_INTERNAL_UNIPHY2_ENUM_ID1 =( DISPLAY_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  114. OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  115. ENCODER_OBJECT_ID_INTERNAL_UNIPHY2 << OBJECT_ID_SHIFT),
  116. ENCODER_INTERNAL_UNIPHY2_ENUM_ID2 =( DISPLAY_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  117. OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  118. ENCODER_OBJECT_ID_INTERNAL_UNIPHY2 << OBJECT_ID_SHIFT)
  119. };
  120. /****************************************************
  121. * Connector Object definition - Shared with BIOS
  122. *****************************************************/
  123. enum connector_objet_def{
  124. CONNECTOR_LVDS_ENUM_ID1 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  125. OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  126. CONNECTOR_OBJECT_ID_LVDS << OBJECT_ID_SHIFT),
  127. CONNECTOR_eDP_ENUM_ID1 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  128. OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  129. CONNECTOR_OBJECT_ID_eDP << OBJECT_ID_SHIFT),
  130. CONNECTOR_SINGLE_LINK_DVI_D_ENUM_ID1 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  131. OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  132. CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D << OBJECT_ID_SHIFT),
  133. CONNECTOR_SINGLE_LINK_DVI_D_ENUM_ID2 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  134. OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  135. CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D << OBJECT_ID_SHIFT),
  136. CONNECTOR_DUAL_LINK_DVI_D_ENUM_ID1 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  137. OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  138. CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D << OBJECT_ID_SHIFT),
  139. CONNECTOR_DUAL_LINK_DVI_D_ENUM_ID2 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  140. OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  141. CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D << OBJECT_ID_SHIFT),
  142. CONNECTOR_HDMI_TYPE_A_ENUM_ID1 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  143. OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  144. CONNECTOR_OBJECT_ID_HDMI_TYPE_A << OBJECT_ID_SHIFT),
  145. CONNECTOR_HDMI_TYPE_A_ENUM_ID2 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  146. OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  147. CONNECTOR_OBJECT_ID_HDMI_TYPE_A << OBJECT_ID_SHIFT),
  148. CONNECTOR_DISPLAYPORT_ENUM_ID1 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  149. OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  150. CONNECTOR_OBJECT_ID_DISPLAYPORT << OBJECT_ID_SHIFT),
  151. CONNECTOR_DISPLAYPORT_ENUM_ID2 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  152. OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  153. CONNECTOR_OBJECT_ID_DISPLAYPORT << OBJECT_ID_SHIFT),
  154. CONNECTOR_DISPLAYPORT_ENUM_ID3 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  155. OBJECT_ENUM_ID3 << ENUM_ID_SHIFT |\
  156. CONNECTOR_OBJECT_ID_DISPLAYPORT << OBJECT_ID_SHIFT),
  157. CONNECTOR_DISPLAYPORT_ENUM_ID4 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  158. OBJECT_ENUM_ID4 << ENUM_ID_SHIFT |\
  159. CONNECTOR_OBJECT_ID_DISPLAYPORT << OBJECT_ID_SHIFT),
  160. CONNECTOR_OPM_ENUM_ID1 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  161. OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  162. CONNECTOR_OBJECT_ID_OPM << OBJECT_ID_SHIFT), //Mapping to MXM_DP_A
  163. CONNECTOR_OPM_ENUM_ID2 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  164. OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  165. CONNECTOR_OBJECT_ID_OPM << OBJECT_ID_SHIFT), //Mapping to MXM_DP_B
  166. CONNECTOR_OPM_ENUM_ID3 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  167. OBJECT_ENUM_ID3 << ENUM_ID_SHIFT |\
  168. CONNECTOR_OBJECT_ID_OPM << OBJECT_ID_SHIFT), //Mapping to MXM_DP_C
  169. CONNECTOR_OPM_ENUM_ID4 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  170. OBJECT_ENUM_ID4 << ENUM_ID_SHIFT |\
  171. CONNECTOR_OBJECT_ID_OPM << OBJECT_ID_SHIFT), //Mapping to MXM_DP_D
  172. CONNECTOR_OPM_ENUM_ID5 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  173. OBJECT_ENUM_ID5 << ENUM_ID_SHIFT |\
  174. CONNECTOR_OBJECT_ID_OPM << OBJECT_ID_SHIFT), //Mapping to MXM_LVDS_TXxx
  175. CONNECTOR_OPM_ENUM_ID6 =( DISPLAY_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  176. OBJECT_ENUM_ID6 << ENUM_ID_SHIFT |\
  177. CONNECTOR_OBJECT_ID_OPM << OBJECT_ID_SHIFT) //Mapping to MXM_LVDS_TXxx
  178. };
  179. /****************************************************
  180. * Router Object ID definition - Shared with BIOS
  181. *****************************************************/
  182. //No Need, in future we ever need, we can define a record in atomfirwareSoC15.h associated with an object that has this router
  183. /****************************************************
  184. * PROTECTION Object ID definition - Shared with BIOS
  185. *****************************************************/
  186. //No need,in future we ever need, all display path are capable of protection now.
  187. /****************************************************
  188. * Generic Object ID definition - Shared with BIOS
  189. *****************************************************/
  190. //No need, in future we ever need like GLsync, we can define a record in atomfirwareSoC15.h associated with an object.
  191. #if defined(_X86_)
  192. #pragma pack()
  193. #endif
  194. #endif