ObjectID.h 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  1. /*
  2. * Copyright 2006-2007 Advanced Micro Devices, Inc.
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice shall be included in
  12. * all copies or substantial portions of the Software.
  13. *
  14. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  17. * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
  18. * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  19. * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  20. * OTHER DEALINGS IN THE SOFTWARE.
  21. */
  22. /* based on stg/asic_reg/drivers/inc/asic_reg/ObjectID.h ver 23 */
  23. #ifndef _OBJECTID_H
  24. #define _OBJECTID_H
  25. #if defined(_X86_)
  26. #pragma pack(1)
  27. #endif
  28. /****************************************************/
  29. /* Graphics Object Type Definition */
  30. /****************************************************/
  31. #define GRAPH_OBJECT_TYPE_NONE 0x0
  32. #define GRAPH_OBJECT_TYPE_GPU 0x1
  33. #define GRAPH_OBJECT_TYPE_ENCODER 0x2
  34. #define GRAPH_OBJECT_TYPE_CONNECTOR 0x3
  35. #define GRAPH_OBJECT_TYPE_ROUTER 0x4
  36. /* deleted */
  37. #define GRAPH_OBJECT_TYPE_DISPLAY_PATH 0x6
  38. #define GRAPH_OBJECT_TYPE_GENERIC 0x7
  39. /****************************************************/
  40. /* Encoder Object ID Definition */
  41. /****************************************************/
  42. #define ENCODER_OBJECT_ID_NONE 0x00
  43. /* Radeon Class Display Hardware */
  44. #define ENCODER_OBJECT_ID_INTERNAL_LVDS 0x01
  45. #define ENCODER_OBJECT_ID_INTERNAL_TMDS1 0x02
  46. #define ENCODER_OBJECT_ID_INTERNAL_TMDS2 0x03
  47. #define ENCODER_OBJECT_ID_INTERNAL_DAC1 0x04
  48. #define ENCODER_OBJECT_ID_INTERNAL_DAC2 0x05 /* TV/CV DAC */
  49. #define ENCODER_OBJECT_ID_INTERNAL_SDVOA 0x06
  50. #define ENCODER_OBJECT_ID_INTERNAL_SDVOB 0x07
  51. /* External Third Party Encoders */
  52. #define ENCODER_OBJECT_ID_SI170B 0x08
  53. #define ENCODER_OBJECT_ID_CH7303 0x09
  54. #define ENCODER_OBJECT_ID_CH7301 0x0A
  55. #define ENCODER_OBJECT_ID_INTERNAL_DVO1 0x0B /* This belongs to Radeon Class Display Hardware */
  56. #define ENCODER_OBJECT_ID_EXTERNAL_SDVOA 0x0C
  57. #define ENCODER_OBJECT_ID_EXTERNAL_SDVOB 0x0D
  58. #define ENCODER_OBJECT_ID_TITFP513 0x0E
  59. #define ENCODER_OBJECT_ID_INTERNAL_LVTM1 0x0F /* not used for Radeon */
  60. #define ENCODER_OBJECT_ID_VT1623 0x10
  61. #define ENCODER_OBJECT_ID_HDMI_SI1930 0x11
  62. #define ENCODER_OBJECT_ID_HDMI_INTERNAL 0x12
  63. #define ENCODER_OBJECT_ID_ALMOND 0x22
  64. #define ENCODER_OBJECT_ID_TRAVIS 0x23
  65. #define ENCODER_OBJECT_ID_NUTMEG 0x22
  66. #define ENCODER_OBJECT_ID_HDMI_ANX9805 0x26
  67. /* Kaleidoscope (KLDSCP) Class Display Hardware (internal) */
  68. #define ENCODER_OBJECT_ID_INTERNAL_KLDSCP_TMDS1 0x13
  69. #define ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1 0x14
  70. #define ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1 0x15
  71. #define ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2 0x16 /* Shared with CV/TV and CRT */
  72. #define ENCODER_OBJECT_ID_SI178 0X17 /* External TMDS (dual link, no HDCP.) */
  73. #define ENCODER_OBJECT_ID_MVPU_FPGA 0x18 /* MVPU FPGA chip */
  74. #define ENCODER_OBJECT_ID_INTERNAL_DDI 0x19
  75. #define ENCODER_OBJECT_ID_VT1625 0x1A
  76. #define ENCODER_OBJECT_ID_HDMI_SI1932 0x1B
  77. #define ENCODER_OBJECT_ID_DP_AN9801 0x1C
  78. #define ENCODER_OBJECT_ID_DP_DP501 0x1D
  79. #define ENCODER_OBJECT_ID_INTERNAL_UNIPHY 0x1E
  80. #define ENCODER_OBJECT_ID_INTERNAL_KLDSCP_LVTMA 0x1F
  81. #define ENCODER_OBJECT_ID_INTERNAL_UNIPHY1 0x20
  82. #define ENCODER_OBJECT_ID_INTERNAL_UNIPHY2 0x21
  83. #define ENCODER_OBJECT_ID_INTERNAL_VCE 0x24
  84. #define ENCODER_OBJECT_ID_INTERNAL_UNIPHY3 0x25
  85. #define ENCODER_OBJECT_ID_INTERNAL_AMCLK 0x27
  86. #define ENCODER_OBJECT_ID_GENERAL_EXTERNAL_DVO 0xFF
  87. /****************************************************/
  88. /* Connector Object ID Definition */
  89. /****************************************************/
  90. #define CONNECTOR_OBJECT_ID_NONE 0x00
  91. #define CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I 0x01
  92. #define CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I 0x02
  93. #define CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D 0x03
  94. #define CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D 0x04
  95. #define CONNECTOR_OBJECT_ID_VGA 0x05
  96. #define CONNECTOR_OBJECT_ID_COMPOSITE 0x06
  97. #define CONNECTOR_OBJECT_ID_SVIDEO 0x07
  98. #define CONNECTOR_OBJECT_ID_YPbPr 0x08
  99. #define CONNECTOR_OBJECT_ID_D_CONNECTOR 0x09
  100. #define CONNECTOR_OBJECT_ID_9PIN_DIN 0x0A /* Supports both CV & TV */
  101. #define CONNECTOR_OBJECT_ID_SCART 0x0B
  102. #define CONNECTOR_OBJECT_ID_HDMI_TYPE_A 0x0C
  103. #define CONNECTOR_OBJECT_ID_HDMI_TYPE_B 0x0D
  104. #define CONNECTOR_OBJECT_ID_LVDS 0x0E
  105. #define CONNECTOR_OBJECT_ID_7PIN_DIN 0x0F
  106. #define CONNECTOR_OBJECT_ID_PCIE_CONNECTOR 0x10
  107. #define CONNECTOR_OBJECT_ID_CROSSFIRE 0x11
  108. #define CONNECTOR_OBJECT_ID_HARDCODE_DVI 0x12
  109. #define CONNECTOR_OBJECT_ID_DISPLAYPORT 0x13
  110. #define CONNECTOR_OBJECT_ID_eDP 0x14
  111. #define CONNECTOR_OBJECT_ID_MXM 0x15
  112. #define CONNECTOR_OBJECT_ID_LVDS_eDP 0x16
  113. /* deleted */
  114. /****************************************************/
  115. /* Router Object ID Definition */
  116. /****************************************************/
  117. #define ROUTER_OBJECT_ID_NONE 0x00
  118. #define ROUTER_OBJECT_ID_I2C_EXTENDER_CNTL 0x01
  119. /****************************************************/
  120. /* Generic Object ID Definition */
  121. /****************************************************/
  122. #define GENERIC_OBJECT_ID_NONE 0x00
  123. #define GENERIC_OBJECT_ID_GLSYNC 0x01
  124. #define GENERIC_OBJECT_ID_PX2_NON_DRIVABLE 0x02
  125. #define GENERIC_OBJECT_ID_MXM_OPM 0x03
  126. #define GENERIC_OBJECT_ID_STEREO_PIN 0x04 //This object could show up from Misc Object table, it follows ATOM_OBJECT format, and contains one ATOM_OBJECT_GPIO_CNTL_RECORD for the stereo pin
  127. /****************************************************/
  128. /* Graphics Object ENUM ID Definition */
  129. /****************************************************/
  130. #define GRAPH_OBJECT_ENUM_ID1 0x01
  131. #define GRAPH_OBJECT_ENUM_ID2 0x02
  132. #define GRAPH_OBJECT_ENUM_ID3 0x03
  133. #define GRAPH_OBJECT_ENUM_ID4 0x04
  134. #define GRAPH_OBJECT_ENUM_ID5 0x05
  135. #define GRAPH_OBJECT_ENUM_ID6 0x06
  136. #define GRAPH_OBJECT_ENUM_ID7 0x07
  137. /****************************************************/
  138. /* Graphics Object ID Bit definition */
  139. /****************************************************/
  140. #define OBJECT_ID_MASK 0x00FF
  141. #define ENUM_ID_MASK 0x0700
  142. #define RESERVED1_ID_MASK 0x0800
  143. #define OBJECT_TYPE_MASK 0x7000
  144. #define RESERVED2_ID_MASK 0x8000
  145. #define OBJECT_ID_SHIFT 0x00
  146. #define ENUM_ID_SHIFT 0x08
  147. #define OBJECT_TYPE_SHIFT 0x0C
  148. /****************************************************/
  149. /* Graphics Object family definition */
  150. /****************************************************/
  151. #define CONSTRUCTOBJECTFAMILYID(GRAPHICS_OBJECT_TYPE, GRAPHICS_OBJECT_ID) (GRAPHICS_OBJECT_TYPE << OBJECT_TYPE_SHIFT | \
  152. GRAPHICS_OBJECT_ID << OBJECT_ID_SHIFT)
  153. /****************************************************/
  154. /* GPU Object ID definition - Shared with BIOS */
  155. /****************************************************/
  156. #define GPU_ENUM_ID1 ( GRAPH_OBJECT_TYPE_GPU << OBJECT_TYPE_SHIFT |\
  157. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT)
  158. /****************************************************/
  159. /* Encoder Object ID definition - Shared with BIOS */
  160. /****************************************************/
  161. /*
  162. #define ENCODER_INTERNAL_LVDS_ENUM_ID1 0x2101
  163. #define ENCODER_INTERNAL_TMDS1_ENUM_ID1 0x2102
  164. #define ENCODER_INTERNAL_TMDS2_ENUM_ID1 0x2103
  165. #define ENCODER_INTERNAL_DAC1_ENUM_ID1 0x2104
  166. #define ENCODER_INTERNAL_DAC2_ENUM_ID1 0x2105
  167. #define ENCODER_INTERNAL_SDVOA_ENUM_ID1 0x2106
  168. #define ENCODER_INTERNAL_SDVOB_ENUM_ID1 0x2107
  169. #define ENCODER_SIL170B_ENUM_ID1 0x2108
  170. #define ENCODER_CH7303_ENUM_ID1 0x2109
  171. #define ENCODER_CH7301_ENUM_ID1 0x210A
  172. #define ENCODER_INTERNAL_DVO1_ENUM_ID1 0x210B
  173. #define ENCODER_EXTERNAL_SDVOA_ENUM_ID1 0x210C
  174. #define ENCODER_EXTERNAL_SDVOB_ENUM_ID1 0x210D
  175. #define ENCODER_TITFP513_ENUM_ID1 0x210E
  176. #define ENCODER_INTERNAL_LVTM1_ENUM_ID1 0x210F
  177. #define ENCODER_VT1623_ENUM_ID1 0x2110
  178. #define ENCODER_HDMI_SI1930_ENUM_ID1 0x2111
  179. #define ENCODER_HDMI_INTERNAL_ENUM_ID1 0x2112
  180. #define ENCODER_INTERNAL_KLDSCP_TMDS1_ENUM_ID1 0x2113
  181. #define ENCODER_INTERNAL_KLDSCP_DVO1_ENUM_ID1 0x2114
  182. #define ENCODER_INTERNAL_KLDSCP_DAC1_ENUM_ID1 0x2115
  183. #define ENCODER_INTERNAL_KLDSCP_DAC2_ENUM_ID1 0x2116
  184. #define ENCODER_SI178_ENUM_ID1 0x2117
  185. #define ENCODER_MVPU_FPGA_ENUM_ID1 0x2118
  186. #define ENCODER_INTERNAL_DDI_ENUM_ID1 0x2119
  187. #define ENCODER_VT1625_ENUM_ID1 0x211A
  188. #define ENCODER_HDMI_SI1932_ENUM_ID1 0x211B
  189. #define ENCODER_ENCODER_DP_AN9801_ENUM_ID1 0x211C
  190. #define ENCODER_DP_DP501_ENUM_ID1 0x211D
  191. #define ENCODER_INTERNAL_UNIPHY_ENUM_ID1 0x211E
  192. */
  193. #define ENCODER_INTERNAL_LVDS_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  194. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  195. ENCODER_OBJECT_ID_INTERNAL_LVDS << OBJECT_ID_SHIFT)
  196. #define ENCODER_INTERNAL_TMDS1_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  197. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  198. ENCODER_OBJECT_ID_INTERNAL_TMDS1 << OBJECT_ID_SHIFT)
  199. #define ENCODER_INTERNAL_TMDS2_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  200. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  201. ENCODER_OBJECT_ID_INTERNAL_TMDS2 << OBJECT_ID_SHIFT)
  202. #define ENCODER_INTERNAL_DAC1_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  203. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  204. ENCODER_OBJECT_ID_INTERNAL_DAC1 << OBJECT_ID_SHIFT)
  205. #define ENCODER_INTERNAL_DAC2_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  206. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  207. ENCODER_OBJECT_ID_INTERNAL_DAC2 << OBJECT_ID_SHIFT)
  208. #define ENCODER_INTERNAL_SDVOA_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  209. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  210. ENCODER_OBJECT_ID_INTERNAL_SDVOA << OBJECT_ID_SHIFT)
  211. #define ENCODER_INTERNAL_SDVOA_ENUM_ID2 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  212. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  213. ENCODER_OBJECT_ID_INTERNAL_SDVOA << OBJECT_ID_SHIFT)
  214. #define ENCODER_INTERNAL_SDVOB_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  215. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  216. ENCODER_OBJECT_ID_INTERNAL_SDVOB << OBJECT_ID_SHIFT)
  217. #define ENCODER_SIL170B_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  218. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  219. ENCODER_OBJECT_ID_SI170B << OBJECT_ID_SHIFT)
  220. #define ENCODER_CH7303_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  221. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  222. ENCODER_OBJECT_ID_CH7303 << OBJECT_ID_SHIFT)
  223. #define ENCODER_CH7301_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  224. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  225. ENCODER_OBJECT_ID_CH7301 << OBJECT_ID_SHIFT)
  226. #define ENCODER_INTERNAL_DVO1_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  227. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  228. ENCODER_OBJECT_ID_INTERNAL_DVO1 << OBJECT_ID_SHIFT)
  229. #define ENCODER_EXTERNAL_SDVOA_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  230. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  231. ENCODER_OBJECT_ID_EXTERNAL_SDVOA << OBJECT_ID_SHIFT)
  232. #define ENCODER_EXTERNAL_SDVOA_ENUM_ID2 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  233. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  234. ENCODER_OBJECT_ID_EXTERNAL_SDVOA << OBJECT_ID_SHIFT)
  235. #define ENCODER_EXTERNAL_SDVOB_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  236. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  237. ENCODER_OBJECT_ID_EXTERNAL_SDVOB << OBJECT_ID_SHIFT)
  238. #define ENCODER_TITFP513_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  239. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  240. ENCODER_OBJECT_ID_TITFP513 << OBJECT_ID_SHIFT)
  241. #define ENCODER_INTERNAL_LVTM1_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  242. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  243. ENCODER_OBJECT_ID_INTERNAL_LVTM1 << OBJECT_ID_SHIFT)
  244. #define ENCODER_VT1623_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  245. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  246. ENCODER_OBJECT_ID_VT1623 << OBJECT_ID_SHIFT)
  247. #define ENCODER_HDMI_SI1930_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  248. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  249. ENCODER_OBJECT_ID_HDMI_SI1930 << OBJECT_ID_SHIFT)
  250. #define ENCODER_HDMI_INTERNAL_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  251. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  252. ENCODER_OBJECT_ID_HDMI_INTERNAL << OBJECT_ID_SHIFT)
  253. #define ENCODER_INTERNAL_KLDSCP_TMDS1_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  254. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  255. ENCODER_OBJECT_ID_INTERNAL_KLDSCP_TMDS1 << OBJECT_ID_SHIFT)
  256. #define ENCODER_INTERNAL_KLDSCP_TMDS1_ENUM_ID2 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  257. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  258. ENCODER_OBJECT_ID_INTERNAL_KLDSCP_TMDS1 << OBJECT_ID_SHIFT)
  259. #define ENCODER_INTERNAL_KLDSCP_DVO1_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  260. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  261. ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DVO1 << OBJECT_ID_SHIFT)
  262. #define ENCODER_INTERNAL_KLDSCP_DAC1_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  263. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  264. ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC1 << OBJECT_ID_SHIFT)
  265. #define ENCODER_INTERNAL_KLDSCP_DAC2_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  266. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  267. ENCODER_OBJECT_ID_INTERNAL_KLDSCP_DAC2 << OBJECT_ID_SHIFT) // Shared with CV/TV and CRT
  268. #define ENCODER_SI178_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  269. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  270. ENCODER_OBJECT_ID_SI178 << OBJECT_ID_SHIFT)
  271. #define ENCODER_MVPU_FPGA_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  272. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  273. ENCODER_OBJECT_ID_MVPU_FPGA << OBJECT_ID_SHIFT)
  274. #define ENCODER_INTERNAL_DDI_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  275. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  276. ENCODER_OBJECT_ID_INTERNAL_DDI << OBJECT_ID_SHIFT)
  277. #define ENCODER_VT1625_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  278. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  279. ENCODER_OBJECT_ID_VT1625 << OBJECT_ID_SHIFT)
  280. #define ENCODER_HDMI_SI1932_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  281. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  282. ENCODER_OBJECT_ID_HDMI_SI1932 << OBJECT_ID_SHIFT)
  283. #define ENCODER_DP_DP501_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  284. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  285. ENCODER_OBJECT_ID_DP_DP501 << OBJECT_ID_SHIFT)
  286. #define ENCODER_DP_AN9801_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  287. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  288. ENCODER_OBJECT_ID_DP_AN9801 << OBJECT_ID_SHIFT)
  289. #define ENCODER_INTERNAL_UNIPHY_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  290. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  291. ENCODER_OBJECT_ID_INTERNAL_UNIPHY << OBJECT_ID_SHIFT)
  292. #define ENCODER_INTERNAL_UNIPHY_ENUM_ID2 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  293. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  294. ENCODER_OBJECT_ID_INTERNAL_UNIPHY << OBJECT_ID_SHIFT)
  295. #define ENCODER_INTERNAL_KLDSCP_LVTMA_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  296. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  297. ENCODER_OBJECT_ID_INTERNAL_KLDSCP_LVTMA << OBJECT_ID_SHIFT)
  298. #define ENCODER_INTERNAL_UNIPHY1_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  299. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  300. ENCODER_OBJECT_ID_INTERNAL_UNIPHY1 << OBJECT_ID_SHIFT)
  301. #define ENCODER_INTERNAL_UNIPHY1_ENUM_ID2 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  302. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  303. ENCODER_OBJECT_ID_INTERNAL_UNIPHY1 << OBJECT_ID_SHIFT)
  304. #define ENCODER_INTERNAL_UNIPHY2_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  305. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  306. ENCODER_OBJECT_ID_INTERNAL_UNIPHY2 << OBJECT_ID_SHIFT)
  307. #define ENCODER_INTERNAL_UNIPHY2_ENUM_ID2 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  308. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  309. ENCODER_OBJECT_ID_INTERNAL_UNIPHY2 << OBJECT_ID_SHIFT)
  310. #define ENCODER_INTERNAL_UNIPHY3_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  311. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  312. ENCODER_OBJECT_ID_INTERNAL_UNIPHY3 << OBJECT_ID_SHIFT)
  313. #define ENCODER_INTERNAL_UNIPHY3_ENUM_ID2 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  314. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  315. ENCODER_OBJECT_ID_INTERNAL_UNIPHY3 << OBJECT_ID_SHIFT)
  316. #define ENCODER_GENERAL_EXTERNAL_DVO_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  317. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  318. ENCODER_OBJECT_ID_GENERAL_EXTERNAL_DVO << OBJECT_ID_SHIFT)
  319. #define ENCODER_ALMOND_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  320. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  321. ENCODER_OBJECT_ID_ALMOND << OBJECT_ID_SHIFT)
  322. #define ENCODER_ALMOND_ENUM_ID2 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  323. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  324. ENCODER_OBJECT_ID_ALMOND << OBJECT_ID_SHIFT)
  325. #define ENCODER_TRAVIS_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  326. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  327. ENCODER_OBJECT_ID_TRAVIS << OBJECT_ID_SHIFT)
  328. #define ENCODER_TRAVIS_ENUM_ID2 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  329. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  330. ENCODER_OBJECT_ID_TRAVIS << OBJECT_ID_SHIFT)
  331. #define ENCODER_NUTMEG_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  332. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  333. ENCODER_OBJECT_ID_NUTMEG << OBJECT_ID_SHIFT)
  334. #define ENCODER_VCE_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  335. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  336. ENCODER_OBJECT_ID_INTERNAL_VCE << OBJECT_ID_SHIFT)
  337. #define ENCODER_HDMI_ANX9805_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ENCODER << OBJECT_TYPE_SHIFT |\
  338. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  339. ENCODER_OBJECT_ID_HDMI_ANX9805 << OBJECT_ID_SHIFT)
  340. /****************************************************/
  341. /* Connector Object ID definition - Shared with BIOS */
  342. /****************************************************/
  343. /*
  344. #define CONNECTOR_SINGLE_LINK_DVI_I_ENUM_ID1 0x3101
  345. #define CONNECTOR_DUAL_LINK_DVI_I_ENUM_ID1 0x3102
  346. #define CONNECTOR_SINGLE_LINK_DVI_D_ENUM_ID1 0x3103
  347. #define CONNECTOR_DUAL_LINK_DVI_D_ENUM_ID1 0x3104
  348. #define CONNECTOR_VGA_ENUM_ID1 0x3105
  349. #define CONNECTOR_COMPOSITE_ENUM_ID1 0x3106
  350. #define CONNECTOR_SVIDEO_ENUM_ID1 0x3107
  351. #define CONNECTOR_YPbPr_ENUM_ID1 0x3108
  352. #define CONNECTOR_D_CONNECTORE_ENUM_ID1 0x3109
  353. #define CONNECTOR_9PIN_DIN_ENUM_ID1 0x310A
  354. #define CONNECTOR_SCART_ENUM_ID1 0x310B
  355. #define CONNECTOR_HDMI_TYPE_A_ENUM_ID1 0x310C
  356. #define CONNECTOR_HDMI_TYPE_B_ENUM_ID1 0x310D
  357. #define CONNECTOR_LVDS_ENUM_ID1 0x310E
  358. #define CONNECTOR_7PIN_DIN_ENUM_ID1 0x310F
  359. #define CONNECTOR_PCIE_CONNECTOR_ENUM_ID1 0x3110
  360. */
  361. #define CONNECTOR_LVDS_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  362. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  363. CONNECTOR_OBJECT_ID_LVDS << OBJECT_ID_SHIFT)
  364. #define CONNECTOR_LVDS_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  365. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  366. CONNECTOR_OBJECT_ID_LVDS << OBJECT_ID_SHIFT)
  367. #define CONNECTOR_eDP_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  368. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  369. CONNECTOR_OBJECT_ID_eDP << OBJECT_ID_SHIFT)
  370. #define CONNECTOR_eDP_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  371. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  372. CONNECTOR_OBJECT_ID_eDP << OBJECT_ID_SHIFT)
  373. #define CONNECTOR_SINGLE_LINK_DVI_I_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  374. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  375. CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I << OBJECT_ID_SHIFT)
  376. #define CONNECTOR_SINGLE_LINK_DVI_I_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  377. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  378. CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_I << OBJECT_ID_SHIFT)
  379. #define CONNECTOR_DUAL_LINK_DVI_I_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  380. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  381. CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I << OBJECT_ID_SHIFT)
  382. #define CONNECTOR_DUAL_LINK_DVI_I_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  383. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  384. CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_I << OBJECT_ID_SHIFT)
  385. #define CONNECTOR_SINGLE_LINK_DVI_D_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  386. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  387. CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D << OBJECT_ID_SHIFT)
  388. #define CONNECTOR_SINGLE_LINK_DVI_D_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  389. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  390. CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D << OBJECT_ID_SHIFT)
  391. #define CONNECTOR_SINGLE_LINK_DVI_D_ENUM_ID3 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  392. GRAPH_OBJECT_ENUM_ID3 << ENUM_ID_SHIFT |\
  393. CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D << OBJECT_ID_SHIFT)
  394. #define CONNECTOR_SINGLE_LINK_DVI_D_ENUM_ID4 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  395. GRAPH_OBJECT_ENUM_ID4 << ENUM_ID_SHIFT |\
  396. CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D << OBJECT_ID_SHIFT)
  397. #define CONNECTOR_SINGLE_LINK_DVI_D_ENUM_ID5 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  398. GRAPH_OBJECT_ENUM_ID5 << ENUM_ID_SHIFT |\
  399. CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D << OBJECT_ID_SHIFT)
  400. #define CONNECTOR_SINGLE_LINK_DVI_D_ENUM_ID6 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  401. GRAPH_OBJECT_ENUM_ID6 << ENUM_ID_SHIFT |\
  402. CONNECTOR_OBJECT_ID_SINGLE_LINK_DVI_D << OBJECT_ID_SHIFT)
  403. #define CONNECTOR_DUAL_LINK_DVI_D_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  404. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  405. CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D << OBJECT_ID_SHIFT)
  406. #define CONNECTOR_DUAL_LINK_DVI_D_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  407. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  408. CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D << OBJECT_ID_SHIFT)
  409. #define CONNECTOR_DUAL_LINK_DVI_D_ENUM_ID3 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  410. GRAPH_OBJECT_ENUM_ID3 << ENUM_ID_SHIFT |\
  411. CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D << OBJECT_ID_SHIFT)
  412. #define CONNECTOR_DUAL_LINK_DVI_D_ENUM_ID4 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  413. GRAPH_OBJECT_ENUM_ID4 << ENUM_ID_SHIFT |\
  414. CONNECTOR_OBJECT_ID_DUAL_LINK_DVI_D << OBJECT_ID_SHIFT)
  415. #define CONNECTOR_VGA_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  416. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  417. CONNECTOR_OBJECT_ID_VGA << OBJECT_ID_SHIFT)
  418. #define CONNECTOR_VGA_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  419. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  420. CONNECTOR_OBJECT_ID_VGA << OBJECT_ID_SHIFT)
  421. #define CONNECTOR_COMPOSITE_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  422. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  423. CONNECTOR_OBJECT_ID_COMPOSITE << OBJECT_ID_SHIFT)
  424. #define CONNECTOR_COMPOSITE_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  425. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  426. CONNECTOR_OBJECT_ID_COMPOSITE << OBJECT_ID_SHIFT)
  427. #define CONNECTOR_SVIDEO_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  428. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  429. CONNECTOR_OBJECT_ID_SVIDEO << OBJECT_ID_SHIFT)
  430. #define CONNECTOR_SVIDEO_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  431. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  432. CONNECTOR_OBJECT_ID_SVIDEO << OBJECT_ID_SHIFT)
  433. #define CONNECTOR_YPbPr_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  434. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  435. CONNECTOR_OBJECT_ID_YPbPr << OBJECT_ID_SHIFT)
  436. #define CONNECTOR_YPbPr_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  437. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  438. CONNECTOR_OBJECT_ID_YPbPr << OBJECT_ID_SHIFT)
  439. #define CONNECTOR_D_CONNECTOR_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  440. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  441. CONNECTOR_OBJECT_ID_D_CONNECTOR << OBJECT_ID_SHIFT)
  442. #define CONNECTOR_D_CONNECTOR_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  443. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  444. CONNECTOR_OBJECT_ID_D_CONNECTOR << OBJECT_ID_SHIFT)
  445. #define CONNECTOR_9PIN_DIN_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  446. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  447. CONNECTOR_OBJECT_ID_9PIN_DIN << OBJECT_ID_SHIFT)
  448. #define CONNECTOR_9PIN_DIN_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  449. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  450. CONNECTOR_OBJECT_ID_9PIN_DIN << OBJECT_ID_SHIFT)
  451. #define CONNECTOR_SCART_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  452. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  453. CONNECTOR_OBJECT_ID_SCART << OBJECT_ID_SHIFT)
  454. #define CONNECTOR_SCART_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  455. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  456. CONNECTOR_OBJECT_ID_SCART << OBJECT_ID_SHIFT)
  457. #define CONNECTOR_HDMI_TYPE_A_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  458. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  459. CONNECTOR_OBJECT_ID_HDMI_TYPE_A << OBJECT_ID_SHIFT)
  460. #define CONNECTOR_HDMI_TYPE_A_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  461. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  462. CONNECTOR_OBJECT_ID_HDMI_TYPE_A << OBJECT_ID_SHIFT)
  463. #define CONNECTOR_HDMI_TYPE_A_ENUM_ID3 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  464. GRAPH_OBJECT_ENUM_ID3 << ENUM_ID_SHIFT |\
  465. CONNECTOR_OBJECT_ID_HDMI_TYPE_A << OBJECT_ID_SHIFT)
  466. #define CONNECTOR_HDMI_TYPE_A_ENUM_ID4 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  467. GRAPH_OBJECT_ENUM_ID4 << ENUM_ID_SHIFT |\
  468. CONNECTOR_OBJECT_ID_HDMI_TYPE_A << OBJECT_ID_SHIFT)
  469. #define CONNECTOR_HDMI_TYPE_A_ENUM_ID5 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  470. GRAPH_OBJECT_ENUM_ID5 << ENUM_ID_SHIFT |\
  471. CONNECTOR_OBJECT_ID_HDMI_TYPE_A << OBJECT_ID_SHIFT)
  472. #define CONNECTOR_HDMI_TYPE_A_ENUM_ID6 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  473. GRAPH_OBJECT_ENUM_ID6 << ENUM_ID_SHIFT |\
  474. CONNECTOR_OBJECT_ID_HDMI_TYPE_A << OBJECT_ID_SHIFT)
  475. #define CONNECTOR_HDMI_TYPE_B_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  476. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  477. CONNECTOR_OBJECT_ID_HDMI_TYPE_B << OBJECT_ID_SHIFT)
  478. #define CONNECTOR_HDMI_TYPE_B_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  479. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  480. CONNECTOR_OBJECT_ID_HDMI_TYPE_B << OBJECT_ID_SHIFT)
  481. #define CONNECTOR_7PIN_DIN_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  482. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  483. CONNECTOR_OBJECT_ID_7PIN_DIN << OBJECT_ID_SHIFT)
  484. #define CONNECTOR_7PIN_DIN_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  485. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  486. CONNECTOR_OBJECT_ID_7PIN_DIN << OBJECT_ID_SHIFT)
  487. #define CONNECTOR_PCIE_CONNECTOR_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  488. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  489. CONNECTOR_OBJECT_ID_PCIE_CONNECTOR << OBJECT_ID_SHIFT)
  490. #define CONNECTOR_PCIE_CONNECTOR_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  491. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  492. CONNECTOR_OBJECT_ID_PCIE_CONNECTOR << OBJECT_ID_SHIFT)
  493. #define CONNECTOR_CROSSFIRE_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  494. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  495. CONNECTOR_OBJECT_ID_CROSSFIRE << OBJECT_ID_SHIFT)
  496. #define CONNECTOR_CROSSFIRE_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  497. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  498. CONNECTOR_OBJECT_ID_CROSSFIRE << OBJECT_ID_SHIFT)
  499. #define CONNECTOR_HARDCODE_DVI_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  500. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  501. CONNECTOR_OBJECT_ID_HARDCODE_DVI << OBJECT_ID_SHIFT)
  502. #define CONNECTOR_HARDCODE_DVI_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  503. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  504. CONNECTOR_OBJECT_ID_HARDCODE_DVI << OBJECT_ID_SHIFT)
  505. #define CONNECTOR_DISPLAYPORT_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  506. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  507. CONNECTOR_OBJECT_ID_DISPLAYPORT << OBJECT_ID_SHIFT)
  508. #define CONNECTOR_DISPLAYPORT_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  509. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  510. CONNECTOR_OBJECT_ID_DISPLAYPORT << OBJECT_ID_SHIFT)
  511. #define CONNECTOR_DISPLAYPORT_ENUM_ID3 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  512. GRAPH_OBJECT_ENUM_ID3 << ENUM_ID_SHIFT |\
  513. CONNECTOR_OBJECT_ID_DISPLAYPORT << OBJECT_ID_SHIFT)
  514. #define CONNECTOR_DISPLAYPORT_ENUM_ID4 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  515. GRAPH_OBJECT_ENUM_ID4 << ENUM_ID_SHIFT |\
  516. CONNECTOR_OBJECT_ID_DISPLAYPORT << OBJECT_ID_SHIFT)
  517. #define CONNECTOR_DISPLAYPORT_ENUM_ID5 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  518. GRAPH_OBJECT_ENUM_ID5 << ENUM_ID_SHIFT |\
  519. CONNECTOR_OBJECT_ID_DISPLAYPORT << OBJECT_ID_SHIFT)
  520. #define CONNECTOR_DISPLAYPORT_ENUM_ID6 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  521. GRAPH_OBJECT_ENUM_ID6 << ENUM_ID_SHIFT |\
  522. CONNECTOR_OBJECT_ID_DISPLAYPORT << OBJECT_ID_SHIFT)
  523. #define CONNECTOR_MXM_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  524. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  525. CONNECTOR_OBJECT_ID_MXM << OBJECT_ID_SHIFT) //Mapping to MXM_DP_A
  526. #define CONNECTOR_MXM_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  527. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  528. CONNECTOR_OBJECT_ID_MXM << OBJECT_ID_SHIFT) //Mapping to MXM_DP_B
  529. #define CONNECTOR_MXM_ENUM_ID3 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  530. GRAPH_OBJECT_ENUM_ID3 << ENUM_ID_SHIFT |\
  531. CONNECTOR_OBJECT_ID_MXM << OBJECT_ID_SHIFT) //Mapping to MXM_DP_C
  532. #define CONNECTOR_MXM_ENUM_ID4 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  533. GRAPH_OBJECT_ENUM_ID4 << ENUM_ID_SHIFT |\
  534. CONNECTOR_OBJECT_ID_MXM << OBJECT_ID_SHIFT) //Mapping to MXM_DP_D
  535. #define CONNECTOR_MXM_ENUM_ID5 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  536. GRAPH_OBJECT_ENUM_ID5 << ENUM_ID_SHIFT |\
  537. CONNECTOR_OBJECT_ID_MXM << OBJECT_ID_SHIFT) //Mapping to MXM_LVDS_TXxx
  538. #define CONNECTOR_MXM_ENUM_ID6 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  539. GRAPH_OBJECT_ENUM_ID6 << ENUM_ID_SHIFT |\
  540. CONNECTOR_OBJECT_ID_MXM << OBJECT_ID_SHIFT) //Mapping to MXM_LVDS_UXxx
  541. #define CONNECTOR_MXM_ENUM_ID7 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  542. GRAPH_OBJECT_ENUM_ID7 << ENUM_ID_SHIFT |\
  543. CONNECTOR_OBJECT_ID_MXM << OBJECT_ID_SHIFT) //Mapping to MXM_DAC
  544. #define CONNECTOR_LVDS_eDP_ENUM_ID1 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  545. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  546. CONNECTOR_OBJECT_ID_LVDS_eDP << OBJECT_ID_SHIFT)
  547. #define CONNECTOR_LVDS_eDP_ENUM_ID2 ( GRAPH_OBJECT_TYPE_CONNECTOR << OBJECT_TYPE_SHIFT |\
  548. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  549. CONNECTOR_OBJECT_ID_LVDS_eDP << OBJECT_ID_SHIFT)
  550. /****************************************************/
  551. /* Router Object ID definition - Shared with BIOS */
  552. /****************************************************/
  553. #define ROUTER_I2C_EXTENDER_CNTL_ENUM_ID1 ( GRAPH_OBJECT_TYPE_ROUTER << OBJECT_TYPE_SHIFT |\
  554. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  555. ROUTER_OBJECT_ID_I2C_EXTENDER_CNTL << OBJECT_ID_SHIFT)
  556. /* deleted */
  557. /****************************************************/
  558. /* Generic Object ID definition - Shared with BIOS */
  559. /****************************************************/
  560. #define GENERICOBJECT_GLSYNC_ENUM_ID1 (GRAPH_OBJECT_TYPE_GENERIC << OBJECT_TYPE_SHIFT |\
  561. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  562. GENERIC_OBJECT_ID_GLSYNC << OBJECT_ID_SHIFT)
  563. #define GENERICOBJECT_PX2_NON_DRIVABLE_ID1 (GRAPH_OBJECT_TYPE_GENERIC << OBJECT_TYPE_SHIFT |\
  564. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  565. GENERIC_OBJECT_ID_PX2_NON_DRIVABLE<< OBJECT_ID_SHIFT)
  566. #define GENERICOBJECT_PX2_NON_DRIVABLE_ID2 (GRAPH_OBJECT_TYPE_GENERIC << OBJECT_TYPE_SHIFT |\
  567. GRAPH_OBJECT_ENUM_ID2 << ENUM_ID_SHIFT |\
  568. GENERIC_OBJECT_ID_PX2_NON_DRIVABLE<< OBJECT_ID_SHIFT)
  569. #define GENERICOBJECT_MXM_OPM_ENUM_ID1 (GRAPH_OBJECT_TYPE_GENERIC << OBJECT_TYPE_SHIFT |\
  570. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  571. GENERIC_OBJECT_ID_MXM_OPM << OBJECT_ID_SHIFT)
  572. #define GENERICOBJECT_STEREO_PIN_ENUM_ID1 (GRAPH_OBJECT_TYPE_GENERIC << OBJECT_TYPE_SHIFT |\
  573. GRAPH_OBJECT_ENUM_ID1 << ENUM_ID_SHIFT |\
  574. GENERIC_OBJECT_ID_STEREO_PIN << OBJECT_ID_SHIFT)
  575. /****************************************************/
  576. /* Object Cap definition - Shared with BIOS */
  577. /****************************************************/
  578. #define GRAPHICS_OBJECT_CAP_I2C 0x00000001L
  579. #define GRAPHICS_OBJECT_CAP_TABLE_ID 0x00000002L
  580. #define GRAPHICS_OBJECT_I2CCOMMAND_TABLE_ID 0x01
  581. #define GRAPHICS_OBJECT_HOTPLUGDETECTIONINTERUPT_TABLE_ID 0x02
  582. #define GRAPHICS_OBJECT_ENCODER_OUTPUT_PROTECTION_TABLE_ID 0x03
  583. #if defined(_X86_)
  584. #pragma pack()
  585. #endif
  586. #endif /*GRAPHICTYPE */