一款显示网速、系统利用的软件
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

adl_defines.h 99KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342
  1. //
  2. // Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
  3. //
  4. // MIT LICENSE:
  5. // Permission is hereby granted, free of charge, to any person obtaining a copy
  6. // of this software and associated documentation files (the "Software"), to deal
  7. // in the Software without restriction, including without limitation the rights
  8. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  9. // copies of the Software, and to permit persons to whom the Software is
  10. // furnished to do so, subject to the following conditions:
  11. //
  12. // The above copyright notice and this permission notice shall be included in
  13. // all copies or substantial portions of the Software.
  14. //
  15. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  21. // SOFTWARE.
  22. /// \file adl_defines.h
  23. /// \brief Contains all definitions exposed by ADL for \ALL platforms.\n <b>Included in ADL SDK</b>
  24. ///
  25. /// This file contains all definitions used by ADL.
  26. /// The ADL definitions include the following:
  27. /// \li ADL error codes
  28. /// \li Enumerations for the ADLDisplayInfo structure
  29. /// \li Maximum limits
  30. ///
  31. #ifndef ADL_DEFINES_H_
  32. #define ADL_DEFINES_H_
  33. /// \defgroup DEFINES Constants and Definitions
  34. // @{
  35. /// \defgroup define_misc Miscellaneous Constant Definitions
  36. // @{
  37. /// \name General Definitions
  38. // @{
  39. /// Defines ADL_TRUE
  40. #define ADL_TRUE 1
  41. /// Defines ADL_FALSE
  42. #define ADL_FALSE 0
  43. /// Defines the maximum string length
  44. #define ADL_MAX_CHAR 4096
  45. /// Defines the maximum string length
  46. #define ADL_MAX_PATH 256
  47. /// Defines the maximum number of supported adapters
  48. #define ADL_MAX_ADAPTERS 250
  49. /// Defines the maxumum number of supported displays
  50. #define ADL_MAX_DISPLAYS 150
  51. /// Defines the maxumum string length for device name
  52. #define ADL_MAX_DEVICENAME 32
  53. /// Defines for all adapters
  54. #define ADL_ADAPTER_INDEX_ALL -1
  55. /// Defines APIs with iOption none
  56. #define ADL_MAIN_API_OPTION_NONE 0
  57. // @}
  58. /// \name Definitions for iOption parameter used by
  59. /// ADL_Display_DDCBlockAccess_Get()
  60. // @{
  61. /// Switch to DDC line 2 before sending the command to the display.
  62. #define ADL_DDC_OPTION_SWITCHDDC2 0x00000001
  63. /// Save command in the registry under a unique key, corresponding to parameter \b iCommandIndex
  64. #define ADL_DDC_OPTION_RESTORECOMMAND 0x00000002
  65. /// Combine write-read DDC block access command.
  66. #define ADL_DDC_OPTION_COMBOWRITEREAD 0x00000010
  67. /// Direct DDC access to the immediate device connected to graphics card.
  68. /// MST with this option set: DDC command is sent to first branch.
  69. /// MST with this option not set: DDC command is sent to the end node sink device.
  70. #define ADL_DDC_OPTION_SENDTOIMMEDIATEDEVICE 0x00000020
  71. // @}
  72. /// \name Values for
  73. /// ADLI2C.iAction used with ADL_Display_WriteAndReadI2C()
  74. // @{
  75. #define ADL_DL_I2C_ACTIONREAD 0x00000001
  76. #define ADL_DL_I2C_ACTIONWRITE 0x00000002
  77. #define ADL_DL_I2C_ACTIONREAD_REPEATEDSTART 0x00000003
  78. // @}
  79. // @} //Misc
  80. /// \defgroup define_adl_results Result Codes
  81. /// This group of definitions are the various results returned by all ADL functions \n
  82. // @{
  83. /// All OK, but need to wait
  84. #define ADL_OK_WAIT 4
  85. /// All OK, but need restart
  86. #define ADL_OK_RESTART 3
  87. /// All OK but need mode change
  88. #define ADL_OK_MODE_CHANGE 2
  89. /// All OK, but with warning
  90. #define ADL_OK_WARNING 1
  91. /// ADL function completed successfully
  92. #define ADL_OK 0
  93. /// Generic Error. Most likely one or more of the Escape calls to the driver failed!
  94. #define ADL_ERR -1
  95. /// ADL not initialized
  96. #define ADL_ERR_NOT_INIT -2
  97. /// One of the parameter passed is invalid
  98. #define ADL_ERR_INVALID_PARAM -3
  99. /// One of the parameter size is invalid
  100. #define ADL_ERR_INVALID_PARAM_SIZE -4
  101. /// Invalid ADL index passed
  102. #define ADL_ERR_INVALID_ADL_IDX -5
  103. /// Invalid controller index passed
  104. #define ADL_ERR_INVALID_CONTROLLER_IDX -6
  105. /// Invalid display index passed
  106. #define ADL_ERR_INVALID_DIPLAY_IDX -7
  107. /// Function not supported by the driver
  108. #define ADL_ERR_NOT_SUPPORTED -8
  109. /// Null Pointer error
  110. #define ADL_ERR_NULL_POINTER -9
  111. /// Call can't be made due to disabled adapter
  112. #define ADL_ERR_DISABLED_ADAPTER -10
  113. /// Invalid Callback
  114. #define ADL_ERR_INVALID_CALLBACK -11
  115. /// Display Resource conflict
  116. #define ADL_ERR_RESOURCE_CONFLICT -12
  117. //Failed to update some of the values. Can be returned by set request that include multiple values if not all values were successfully committed.
  118. #define ADL_ERR_SET_INCOMPLETE -20
  119. /// There's no Linux XDisplay in Linux Console environment
  120. #define ADL_ERR_NO_XDISPLAY -21
  121. // @}
  122. /// </A>
  123. /// \defgroup define_display_type Display Type
  124. /// Define Monitor/CRT display type
  125. // @{
  126. /// Define Monitor display type
  127. #define ADL_DT_MONITOR 0
  128. /// Define TV display type
  129. #define ADL_DT_TELEVISION 1
  130. /// Define LCD display type
  131. #define ADL_DT_LCD_PANEL 2
  132. /// Define DFP display type
  133. #define ADL_DT_DIGITAL_FLAT_PANEL 3
  134. /// Define Componment Video display type
  135. #define ADL_DT_COMPONENT_VIDEO 4
  136. /// Define Projector display type
  137. #define ADL_DT_PROJECTOR 5
  138. // @}
  139. /// \defgroup define_display_connection_type Display Connection Type
  140. // @{
  141. /// Define unknown display output type
  142. #define ADL_DOT_UNKNOWN 0
  143. /// Define composite display output type
  144. #define ADL_DOT_COMPOSITE 1
  145. /// Define SVideo display output type
  146. #define ADL_DOT_SVIDEO 2
  147. /// Define analog display output type
  148. #define ADL_DOT_ANALOG 3
  149. /// Define digital display output type
  150. #define ADL_DOT_DIGITAL 4
  151. // @}
  152. /// \defgroup define_color_type Display Color Type and Source
  153. /// Define Display Color Type and Source
  154. // @{
  155. #define ADL_DISPLAY_COLOR_BRIGHTNESS (1 << 0)
  156. #define ADL_DISPLAY_COLOR_CONTRAST (1 << 1)
  157. #define ADL_DISPLAY_COLOR_SATURATION (1 << 2)
  158. #define ADL_DISPLAY_COLOR_HUE (1 << 3)
  159. #define ADL_DISPLAY_COLOR_TEMPERATURE (1 << 4)
  160. /// Color Temperature Source is EDID
  161. #define ADL_DISPLAY_COLOR_TEMPERATURE_SOURCE_EDID (1 << 5)
  162. /// Color Temperature Source is User
  163. #define ADL_DISPLAY_COLOR_TEMPERATURE_SOURCE_USER (1 << 6)
  164. // @}
  165. /// \defgroup define_adjustment_capabilities Display Adjustment Capabilities
  166. /// Display adjustment capabilities values. Returned by ADL_Display_AdjustCaps_Get
  167. // @{
  168. #define ADL_DISPLAY_ADJUST_OVERSCAN (1 << 0)
  169. #define ADL_DISPLAY_ADJUST_VERT_POS (1 << 1)
  170. #define ADL_DISPLAY_ADJUST_HOR_POS (1 << 2)
  171. #define ADL_DISPLAY_ADJUST_VERT_SIZE (1 << 3)
  172. #define ADL_DISPLAY_ADJUST_HOR_SIZE (1 << 4)
  173. #define ADL_DISPLAY_ADJUST_SIZEPOS (ADL_DISPLAY_ADJUST_VERT_POS | ADL_DISPLAY_ADJUST_HOR_POS | ADL_DISPLAY_ADJUST_VERT_SIZE | ADL_DISPLAY_ADJUST_HOR_SIZE)
  174. #define ADL_DISPLAY_CUSTOMMODES (1<<5)
  175. #define ADL_DISPLAY_ADJUST_UNDERSCAN (1<<6)
  176. // @}
  177. ///Down-scale support
  178. #define ADL_DISPLAY_CAPS_DOWNSCALE (1 << 0)
  179. /// Sharpness support
  180. #define ADL_DISPLAY_CAPS_SHARPNESS (1 << 0)
  181. /// \defgroup define_desktop_config Desktop Configuration Flags
  182. /// These flags are used by ADL_DesktopConfig_xxx
  183. /// \deprecated This API has been deprecated because it was only used for RandR 1.1 (Red Hat 5.x) distributions which is now not supported.
  184. // @{
  185. #define ADL_DESKTOPCONFIG_UNKNOWN 0 /* UNKNOWN desktop config */
  186. #define ADL_DESKTOPCONFIG_SINGLE (1 << 0) /* Single */
  187. #define ADL_DESKTOPCONFIG_CLONE (1 << 2) /* Clone */
  188. #define ADL_DESKTOPCONFIG_BIGDESK_H (1 << 4) /* Big Desktop Horizontal */
  189. #define ADL_DESKTOPCONFIG_BIGDESK_V (1 << 5) /* Big Desktop Vertical */
  190. #define ADL_DESKTOPCONFIG_BIGDESK_HR (1 << 6) /* Big Desktop Reverse Horz */
  191. #define ADL_DESKTOPCONFIG_BIGDESK_VR (1 << 7) /* Big Desktop Reverse Vert */
  192. #define ADL_DESKTOPCONFIG_RANDR12 (1 << 8) /* RandR 1.2 Multi-display */
  193. // @}
  194. /// needed for ADLDDCInfo structure
  195. #define ADL_MAX_DISPLAY_NAME 256
  196. /// \defgroup define_edid_flags Values for ulDDCInfoFlag
  197. /// defines for ulDDCInfoFlag EDID flag
  198. // @{
  199. #define ADL_DISPLAYDDCINFOEX_FLAG_PROJECTORDEVICE (1 << 0)
  200. #define ADL_DISPLAYDDCINFOEX_FLAG_EDIDEXTENSION (1 << 1)
  201. #define ADL_DISPLAYDDCINFOEX_FLAG_DIGITALDEVICE (1 << 2)
  202. #define ADL_DISPLAYDDCINFOEX_FLAG_HDMIAUDIODEVICE (1 << 3)
  203. #define ADL_DISPLAYDDCINFOEX_FLAG_SUPPORTS_AI (1 << 4)
  204. #define ADL_DISPLAYDDCINFOEX_FLAG_SUPPORT_xvYCC601 (1 << 5)
  205. #define ADL_DISPLAYDDCINFOEX_FLAG_SUPPORT_xvYCC709 (1 << 6)
  206. // @}
  207. /// \defgroup define_displayinfo_connector Display Connector Type
  208. /// defines for ADLDisplayInfo.iDisplayConnector
  209. // @{
  210. #define ADL_DISPLAY_CONTYPE_UNKNOWN 0
  211. #define ADL_DISPLAY_CONTYPE_VGA 1
  212. #define ADL_DISPLAY_CONTYPE_DVI_D 2
  213. #define ADL_DISPLAY_CONTYPE_DVI_I 3
  214. #define ADL_DISPLAY_CONTYPE_ATICVDONGLE_NTSC 4
  215. #define ADL_DISPLAY_CONTYPE_ATICVDONGLE_JPN 5
  216. #define ADL_DISPLAY_CONTYPE_ATICVDONGLE_NONI2C_JPN 6
  217. #define ADL_DISPLAY_CONTYPE_ATICVDONGLE_NONI2C_NTSC 7
  218. #define ADL_DISPLAY_CONTYPE_PROPRIETARY 8
  219. #define ADL_DISPLAY_CONTYPE_HDMI_TYPE_A 10
  220. #define ADL_DISPLAY_CONTYPE_HDMI_TYPE_B 11
  221. #define ADL_DISPLAY_CONTYPE_SVIDEO 12
  222. #define ADL_DISPLAY_CONTYPE_COMPOSITE 13
  223. #define ADL_DISPLAY_CONTYPE_RCA_3COMPONENT 14
  224. #define ADL_DISPLAY_CONTYPE_DISPLAYPORT 15
  225. #define ADL_DISPLAY_CONTYPE_EDP 16
  226. #define ADL_DISPLAY_CONTYPE_WIRELESSDISPLAY 17
  227. // @}
  228. /// TV Capabilities and Standards
  229. /// \defgroup define_tv_caps TV Capabilities and Standards
  230. /// \deprecated Dropping support for TV displays
  231. // @{
  232. #define ADL_TV_STANDARDS (1 << 0)
  233. #define ADL_TV_SCART (1 << 1)
  234. /// TV Standards Definitions
  235. #define ADL_STANDARD_NTSC_M (1 << 0)
  236. #define ADL_STANDARD_NTSC_JPN (1 << 1)
  237. #define ADL_STANDARD_NTSC_N (1 << 2)
  238. #define ADL_STANDARD_PAL_B (1 << 3)
  239. #define ADL_STANDARD_PAL_COMB_N (1 << 4)
  240. #define ADL_STANDARD_PAL_D (1 << 5)
  241. #define ADL_STANDARD_PAL_G (1 << 6)
  242. #define ADL_STANDARD_PAL_H (1 << 7)
  243. #define ADL_STANDARD_PAL_I (1 << 8)
  244. #define ADL_STANDARD_PAL_K (1 << 9)
  245. #define ADL_STANDARD_PAL_K1 (1 << 10)
  246. #define ADL_STANDARD_PAL_L (1 << 11)
  247. #define ADL_STANDARD_PAL_M (1 << 12)
  248. #define ADL_STANDARD_PAL_N (1 << 13)
  249. #define ADL_STANDARD_PAL_SECAM_D (1 << 14)
  250. #define ADL_STANDARD_PAL_SECAM_K (1 << 15)
  251. #define ADL_STANDARD_PAL_SECAM_K1 (1 << 16)
  252. #define ADL_STANDARD_PAL_SECAM_L (1 << 17)
  253. // @}
  254. /// \defgroup define_video_custom_mode Video Custom Mode flags
  255. /// Component Video Custom Mode flags. This is used by the iFlags parameter in ADLCustomMode
  256. // @{
  257. #define ADL_CUSTOMIZEDMODEFLAG_MODESUPPORTED (1 << 0)
  258. #define ADL_CUSTOMIZEDMODEFLAG_NOTDELETETABLE (1 << 1)
  259. #define ADL_CUSTOMIZEDMODEFLAG_INSERTBYDRIVER (1 << 2)
  260. #define ADL_CUSTOMIZEDMODEFLAG_INTERLACED (1 << 3)
  261. #define ADL_CUSTOMIZEDMODEFLAG_BASEMODE (1 << 4)
  262. // @}
  263. /// \defgroup define_ddcinfoflag Values used for DDCInfoFlag
  264. /// ulDDCInfoFlag field values used by the ADLDDCInfo structure
  265. // @{
  266. #define ADL_DISPLAYDDCINFOEX_FLAG_PROJECTORDEVICE (1 << 0)
  267. #define ADL_DISPLAYDDCINFOEX_FLAG_EDIDEXTENSION (1 << 1)
  268. #define ADL_DISPLAYDDCINFOEX_FLAG_DIGITALDEVICE (1 << 2)
  269. #define ADL_DISPLAYDDCINFOEX_FLAG_HDMIAUDIODEVICE (1 << 3)
  270. #define ADL_DISPLAYDDCINFOEX_FLAG_SUPPORTS_AI (1 << 4)
  271. #define ADL_DISPLAYDDCINFOEX_FLAG_SUPPORT_xvYCC601 (1 << 5)
  272. #define ADL_DISPLAYDDCINFOEX_FLAG_SUPPORT_xvYCC709 (1 << 6)
  273. // @}
  274. /// \defgroup define_cv_dongle Values used by ADL_CV_DongleSettings_xxx
  275. /// The following is applicable to ADL_DISPLAY_CONTYPE_ATICVDONGLE_JP and ADL_DISPLAY_CONTYPE_ATICVDONGLE_NONI2C_D only
  276. /// \deprecated Dropping support for Component Video displays
  277. // @{
  278. #define ADL_DISPLAY_CV_DONGLE_D1 (1 << 0)
  279. #define ADL_DISPLAY_CV_DONGLE_D2 (1 << 1)
  280. #define ADL_DISPLAY_CV_DONGLE_D3 (1 << 2)
  281. #define ADL_DISPLAY_CV_DONGLE_D4 (1 << 3)
  282. #define ADL_DISPLAY_CV_DONGLE_D5 (1 << 4)
  283. /// The following is applicable to ADL_DISPLAY_CONTYPE_ATICVDONGLE_NA and ADL_DISPLAY_CONTYPE_ATICVDONGLE_NONI2C only
  284. #define ADL_DISPLAY_CV_DONGLE_480I (1 << 0)
  285. #define ADL_DISPLAY_CV_DONGLE_480P (1 << 1)
  286. #define ADL_DISPLAY_CV_DONGLE_540P (1 << 2)
  287. #define ADL_DISPLAY_CV_DONGLE_720P (1 << 3)
  288. #define ADL_DISPLAY_CV_DONGLE_1080I (1 << 4)
  289. #define ADL_DISPLAY_CV_DONGLE_1080P (1 << 5)
  290. #define ADL_DISPLAY_CV_DONGLE_16_9 (1 << 6)
  291. #define ADL_DISPLAY_CV_DONGLE_720P50 (1 << 7)
  292. #define ADL_DISPLAY_CV_DONGLE_1080I25 (1 << 8)
  293. #define ADL_DISPLAY_CV_DONGLE_576I25 (1 << 9)
  294. #define ADL_DISPLAY_CV_DONGLE_576P50 (1 << 10)
  295. #define ADL_DISPLAY_CV_DONGLE_1080P24 (1 << 11)
  296. #define ADL_DISPLAY_CV_DONGLE_1080P25 (1 << 12)
  297. #define ADL_DISPLAY_CV_DONGLE_1080P30 (1 << 13)
  298. #define ADL_DISPLAY_CV_DONGLE_1080P50 (1 << 14)
  299. // @}
  300. /// \defgroup define_formats_ovr Formats Override Settings
  301. /// Display force modes flags
  302. // @{
  303. ///
  304. #define ADL_DISPLAY_FORMAT_FORCE_720P 0x00000001
  305. #define ADL_DISPLAY_FORMAT_FORCE_1080I 0x00000002
  306. #define ADL_DISPLAY_FORMAT_FORCE_1080P 0x00000004
  307. #define ADL_DISPLAY_FORMAT_FORCE_720P50 0x00000008
  308. #define ADL_DISPLAY_FORMAT_FORCE_1080I25 0x00000010
  309. #define ADL_DISPLAY_FORMAT_FORCE_576I25 0x00000020
  310. #define ADL_DISPLAY_FORMAT_FORCE_576P50 0x00000040
  311. #define ADL_DISPLAY_FORMAT_FORCE_1080P24 0x00000080
  312. #define ADL_DISPLAY_FORMAT_FORCE_1080P25 0x00000100
  313. #define ADL_DISPLAY_FORMAT_FORCE_1080P30 0x00000200
  314. #define ADL_DISPLAY_FORMAT_FORCE_1080P50 0x00000400
  315. ///< Below are \b EXTENDED display mode flags
  316. #define ADL_DISPLAY_FORMAT_CVDONGLEOVERIDE 0x00000001
  317. #define ADL_DISPLAY_FORMAT_CVMODEUNDERSCAN 0x00000002
  318. #define ADL_DISPLAY_FORMAT_FORCECONNECT_SUPPORTED 0x00000004
  319. #define ADL_DISPLAY_FORMAT_RESTRICT_FORMAT_SELECTION 0x00000008
  320. #define ADL_DISPLAY_FORMAT_SETASPECRATIO 0x00000010
  321. #define ADL_DISPLAY_FORMAT_FORCEMODES 0x00000020
  322. #define ADL_DISPLAY_FORMAT_LCDRTCCOEFF 0x00000040
  323. // @}
  324. /// Defines used by OD5
  325. #define ADL_PM_PARAM_DONT_CHANGE 0
  326. /// The following defines Bus types
  327. // @{
  328. #define ADL_BUSTYPE_PCI 0 /* PCI bus */
  329. #define ADL_BUSTYPE_AGP 1 /* AGP bus */
  330. #define ADL_BUSTYPE_PCIE 2 /* PCI Express bus */
  331. #define ADL_BUSTYPE_PCIE_GEN2 3 /* PCI Express 2nd generation bus */
  332. #define ADL_BUSTYPE_PCIE_GEN3 4 /* PCI Express 3rd generation bus */
  333. #define ADL_BUSTYPE_PCIE_GEN4 5 /* PCI Express 4th generation bus */
  334. // @}
  335. /// \defgroup define_ws_caps Workstation Capabilities
  336. /// Workstation values
  337. // @{
  338. /// This value indicates that the workstation card supports active stereo though stereo output connector
  339. #define ADL_STEREO_SUPPORTED (1 << 2)
  340. /// This value indicates that the workstation card supports active stereo via "blue-line"
  341. #define ADL_STEREO_BLUE_LINE (1 << 3)
  342. /// This value is used to turn off stereo mode.
  343. #define ADL_STEREO_OFF 0
  344. /// This value indicates that the workstation card supports active stereo. This is also used to set the stereo mode to active though the stereo output connector
  345. #define ADL_STEREO_ACTIVE (1 << 1)
  346. /// This value indicates that the workstation card supports auto-stereo monitors with horizontal interleave. This is also used to set the stereo mode to use the auto-stereo monitor with horizontal interleave
  347. #define ADL_STEREO_AUTO_HORIZONTAL (1 << 30)
  348. /// This value indicates that the workstation card supports auto-stereo monitors with vertical interleave. This is also used to set the stereo mode to use the auto-stereo monitor with vertical interleave
  349. #define ADL_STEREO_AUTO_VERTICAL (1 << 31)
  350. /// This value indicates that the workstation card supports passive stereo, ie. non stereo sync
  351. #define ADL_STEREO_PASSIVE (1 << 6)
  352. /// This value indicates that the workstation card supports auto-stereo monitors with vertical interleave. This is also used to set the stereo mode to use the auto-stereo monitor with vertical interleave
  353. #define ADL_STEREO_PASSIVE_HORIZ (1 << 7)
  354. /// This value indicates that the workstation card supports auto-stereo monitors with vertical interleave. This is also used to set the stereo mode to use the auto-stereo monitor with vertical interleave
  355. #define ADL_STEREO_PASSIVE_VERT (1 << 8)
  356. /// This value indicates that the workstation card supports auto-stereo monitors with Samsung.
  357. #define ADL_STEREO_AUTO_SAMSUNG (1 << 11)
  358. /// This value indicates that the workstation card supports auto-stereo monitors with Tridility.
  359. #define ADL_STEREO_AUTO_TSL (1 << 12)
  360. /// This value indicates that the workstation card supports DeepBitDepth (10 bpp)
  361. #define ADL_DEEPBITDEPTH_10BPP_SUPPORTED (1 << 5)
  362. /// This value indicates that the workstation supports 8-Bit Grayscale
  363. #define ADL_8BIT_GREYSCALE_SUPPORTED (1 << 9)
  364. /// This value indicates that the workstation supports CUSTOM TIMING
  365. #define ADL_CUSTOM_TIMING_SUPPORTED (1 << 10)
  366. /// Load balancing is supported.
  367. #define ADL_WORKSTATION_LOADBALANCING_SUPPORTED 0x00000001
  368. /// Load balancing is available.
  369. #define ADL_WORKSTATION_LOADBALANCING_AVAILABLE 0x00000002
  370. /// Load balancing is disabled.
  371. #define ADL_WORKSTATION_LOADBALANCING_DISABLED 0x00000000
  372. /// Load balancing is Enabled.
  373. #define ADL_WORKSTATION_LOADBALANCING_ENABLED 0x00000001
  374. // @}
  375. /// \defgroup define_adapterspeed speed setting from the adapter
  376. // @{
  377. #define ADL_CONTEXT_SPEED_UNFORCED 0 /* default asic running speed */
  378. #define ADL_CONTEXT_SPEED_FORCEHIGH 1 /* asic running speed is forced to high */
  379. #define ADL_CONTEXT_SPEED_FORCELOW 2 /* asic running speed is forced to low */
  380. #define ADL_ADAPTER_SPEEDCAPS_SUPPORTED (1 << 0) /* change asic running speed setting is supported */
  381. // @}
  382. /// \defgroup define_glsync Genlock related values
  383. /// GL-Sync port types (unique values)
  384. // @{
  385. /// Unknown port of GL-Sync module
  386. #define ADL_GLSYNC_PORT_UNKNOWN 0
  387. /// BNC port of of GL-Sync module
  388. #define ADL_GLSYNC_PORT_BNC 1
  389. /// RJ45(1) port of of GL-Sync module
  390. #define ADL_GLSYNC_PORT_RJ45PORT1 2
  391. /// RJ45(2) port of of GL-Sync module
  392. #define ADL_GLSYNC_PORT_RJ45PORT2 3
  393. // GL-Sync Genlock settings mask (bit-vector)
  394. /// None of the ADLGLSyncGenlockConfig members are valid
  395. #define ADL_GLSYNC_CONFIGMASK_NONE 0
  396. /// The ADLGLSyncGenlockConfig.lSignalSource member is valid
  397. #define ADL_GLSYNC_CONFIGMASK_SIGNALSOURCE (1 << 0)
  398. /// The ADLGLSyncGenlockConfig.iSyncField member is valid
  399. #define ADL_GLSYNC_CONFIGMASK_SYNCFIELD (1 << 1)
  400. /// The ADLGLSyncGenlockConfig.iSampleRate member is valid
  401. #define ADL_GLSYNC_CONFIGMASK_SAMPLERATE (1 << 2)
  402. /// The ADLGLSyncGenlockConfig.lSyncDelay member is valid
  403. #define ADL_GLSYNC_CONFIGMASK_SYNCDELAY (1 << 3)
  404. /// The ADLGLSyncGenlockConfig.iTriggerEdge member is valid
  405. #define ADL_GLSYNC_CONFIGMASK_TRIGGEREDGE (1 << 4)
  406. /// The ADLGLSyncGenlockConfig.iScanRateCoeff member is valid
  407. #define ADL_GLSYNC_CONFIGMASK_SCANRATECOEFF (1 << 5)
  408. /// The ADLGLSyncGenlockConfig.lFramelockCntlVector member is valid
  409. #define ADL_GLSYNC_CONFIGMASK_FRAMELOCKCNTL (1 << 6)
  410. // GL-Sync Framelock control mask (bit-vector)
  411. /// Framelock is disabled
  412. #define ADL_GLSYNC_FRAMELOCKCNTL_NONE 0
  413. /// Framelock is enabled
  414. #define ADL_GLSYNC_FRAMELOCKCNTL_ENABLE ( 1 << 0)
  415. #define ADL_GLSYNC_FRAMELOCKCNTL_DISABLE ( 1 << 1)
  416. #define ADL_GLSYNC_FRAMELOCKCNTL_SWAP_COUNTER_RESET ( 1 << 2)
  417. #define ADL_GLSYNC_FRAMELOCKCNTL_SWAP_COUNTER_ACK ( 1 << 3)
  418. #define ADL_GLSYNC_FRAMELOCKCNTL_VERSION_KMD (1 << 4)
  419. #define ADL_GLSYNC_FRAMELOCKCNTL_STATE_ENABLE ( 1 << 0)
  420. #define ADL_GLSYNC_FRAMELOCKCNTL_STATE_KMD (1 << 4)
  421. // GL-Sync Framelock counters mask (bit-vector)
  422. #define ADL_GLSYNC_COUNTER_SWAP ( 1 << 0 )
  423. // GL-Sync Signal Sources (unique values)
  424. /// GL-Sync signal source is undefined
  425. #define ADL_GLSYNC_SIGNALSOURCE_UNDEFINED 0x00000100
  426. /// GL-Sync signal source is Free Run
  427. #define ADL_GLSYNC_SIGNALSOURCE_FREERUN 0x00000101
  428. /// GL-Sync signal source is the BNC GL-Sync port
  429. #define ADL_GLSYNC_SIGNALSOURCE_BNCPORT 0x00000102
  430. /// GL-Sync signal source is the RJ45(1) GL-Sync port
  431. #define ADL_GLSYNC_SIGNALSOURCE_RJ45PORT1 0x00000103
  432. /// GL-Sync signal source is the RJ45(2) GL-Sync port
  433. #define ADL_GLSYNC_SIGNALSOURCE_RJ45PORT2 0x00000104
  434. // GL-Sync Signal Types (unique values)
  435. /// GL-Sync signal type is unknown
  436. #define ADL_GLSYNC_SIGNALTYPE_UNDEFINED 0
  437. /// GL-Sync signal type is 480I
  438. #define ADL_GLSYNC_SIGNALTYPE_480I 1
  439. /// GL-Sync signal type is 576I
  440. #define ADL_GLSYNC_SIGNALTYPE_576I 2
  441. /// GL-Sync signal type is 480P
  442. #define ADL_GLSYNC_SIGNALTYPE_480P 3
  443. /// GL-Sync signal type is 576P
  444. #define ADL_GLSYNC_SIGNALTYPE_576P 4
  445. /// GL-Sync signal type is 720P
  446. #define ADL_GLSYNC_SIGNALTYPE_720P 5
  447. /// GL-Sync signal type is 1080P
  448. #define ADL_GLSYNC_SIGNALTYPE_1080P 6
  449. /// GL-Sync signal type is 1080I
  450. #define ADL_GLSYNC_SIGNALTYPE_1080I 7
  451. /// GL-Sync signal type is SDI
  452. #define ADL_GLSYNC_SIGNALTYPE_SDI 8
  453. /// GL-Sync signal type is TTL
  454. #define ADL_GLSYNC_SIGNALTYPE_TTL 9
  455. /// GL_Sync signal type is Analog
  456. #define ADL_GLSYNC_SIGNALTYPE_ANALOG 10
  457. // GL-Sync Sync Field options (unique values)
  458. ///GL-Sync sync field option is undefined
  459. #define ADL_GLSYNC_SYNCFIELD_UNDEFINED 0
  460. ///GL-Sync sync field option is Sync to Field 1 (used for Interlaced signal types)
  461. #define ADL_GLSYNC_SYNCFIELD_BOTH 1
  462. ///GL-Sync sync field option is Sync to Both fields (used for Interlaced signal types)
  463. #define ADL_GLSYNC_SYNCFIELD_1 2
  464. // GL-Sync trigger edge options (unique values)
  465. /// GL-Sync trigger edge is undefined
  466. #define ADL_GLSYNC_TRIGGEREDGE_UNDEFINED 0
  467. /// GL-Sync trigger edge is the rising edge
  468. #define ADL_GLSYNC_TRIGGEREDGE_RISING 1
  469. /// GL-Sync trigger edge is the falling edge
  470. #define ADL_GLSYNC_TRIGGEREDGE_FALLING 2
  471. /// GL-Sync trigger edge is both the rising and the falling edge
  472. #define ADL_GLSYNC_TRIGGEREDGE_BOTH 3
  473. // GL-Sync scan rate coefficient/multiplier options (unique values)
  474. /// GL-Sync scan rate coefficient/multiplier is undefined
  475. #define ADL_GLSYNC_SCANRATECOEFF_UNDEFINED 0
  476. /// GL-Sync scan rate coefficient/multiplier is 5
  477. #define ADL_GLSYNC_SCANRATECOEFF_x5 1
  478. /// GL-Sync scan rate coefficient/multiplier is 4
  479. #define ADL_GLSYNC_SCANRATECOEFF_x4 2
  480. /// GL-Sync scan rate coefficient/multiplier is 3
  481. #define ADL_GLSYNC_SCANRATECOEFF_x3 3
  482. /// GL-Sync scan rate coefficient/multiplier is 5:2 (SMPTE)
  483. #define ADL_GLSYNC_SCANRATECOEFF_x5_DIV_2 4
  484. /// GL-Sync scan rate coefficient/multiplier is 2
  485. #define ADL_GLSYNC_SCANRATECOEFF_x2 5
  486. /// GL-Sync scan rate coefficient/multiplier is 3 : 2
  487. #define ADL_GLSYNC_SCANRATECOEFF_x3_DIV_2 6
  488. /// GL-Sync scan rate coefficient/multiplier is 5 : 4
  489. #define ADL_GLSYNC_SCANRATECOEFF_x5_DIV_4 7
  490. /// GL-Sync scan rate coefficient/multiplier is 1 (default)
  491. #define ADL_GLSYNC_SCANRATECOEFF_x1 8
  492. /// GL-Sync scan rate coefficient/multiplier is 4 : 5
  493. #define ADL_GLSYNC_SCANRATECOEFF_x4_DIV_5 9
  494. /// GL-Sync scan rate coefficient/multiplier is 2 : 3
  495. #define ADL_GLSYNC_SCANRATECOEFF_x2_DIV_3 10
  496. /// GL-Sync scan rate coefficient/multiplier is 1 : 2
  497. #define ADL_GLSYNC_SCANRATECOEFF_x1_DIV_2 11
  498. /// GL-Sync scan rate coefficient/multiplier is 2 : 5 (SMPTE)
  499. #define ADL_GLSYNC_SCANRATECOEFF_x2_DIV_5 12
  500. /// GL-Sync scan rate coefficient/multiplier is 1 : 3
  501. #define ADL_GLSYNC_SCANRATECOEFF_x1_DIV_3 13
  502. /// GL-Sync scan rate coefficient/multiplier is 1 : 4
  503. #define ADL_GLSYNC_SCANRATECOEFF_x1_DIV_4 14
  504. /// GL-Sync scan rate coefficient/multiplier is 1 : 5
  505. #define ADL_GLSYNC_SCANRATECOEFF_x1_DIV_5 15
  506. // GL-Sync port (signal presence) states (unique values)
  507. /// GL-Sync port state is undefined
  508. #define ADL_GLSYNC_PORTSTATE_UNDEFINED 0
  509. /// GL-Sync port is not connected
  510. #define ADL_GLSYNC_PORTSTATE_NOCABLE 1
  511. /// GL-Sync port is Idle
  512. #define ADL_GLSYNC_PORTSTATE_IDLE 2
  513. /// GL-Sync port has an Input signal
  514. #define ADL_GLSYNC_PORTSTATE_INPUT 3
  515. /// GL-Sync port is Output
  516. #define ADL_GLSYNC_PORTSTATE_OUTPUT 4
  517. // GL-Sync LED types (used index within ADL_Workstation_GLSyncPortState_Get returned ppGlSyncLEDs array) (unique values)
  518. /// Index into the ADL_Workstation_GLSyncPortState_Get returned ppGlSyncLEDs array for the one LED of the BNC port
  519. #define ADL_GLSYNC_LEDTYPE_BNC 0
  520. /// Index into the ADL_Workstation_GLSyncPortState_Get returned ppGlSyncLEDs array for the Left LED of the RJ45(1) or RJ45(2) port
  521. #define ADL_GLSYNC_LEDTYPE_RJ45_LEFT 0
  522. /// Index into the ADL_Workstation_GLSyncPortState_Get returned ppGlSyncLEDs array for the Right LED of the RJ45(1) or RJ45(2) port
  523. #define ADL_GLSYNC_LEDTYPE_RJ45_RIGHT 1
  524. // GL-Sync LED colors (unique values)
  525. /// GL-Sync LED undefined color
  526. #define ADL_GLSYNC_LEDCOLOR_UNDEFINED 0
  527. /// GL-Sync LED is unlit
  528. #define ADL_GLSYNC_LEDCOLOR_NOLIGHT 1
  529. /// GL-Sync LED is yellow
  530. #define ADL_GLSYNC_LEDCOLOR_YELLOW 2
  531. /// GL-Sync LED is red
  532. #define ADL_GLSYNC_LEDCOLOR_RED 3
  533. /// GL-Sync LED is green
  534. #define ADL_GLSYNC_LEDCOLOR_GREEN 4
  535. /// GL-Sync LED is flashing green
  536. #define ADL_GLSYNC_LEDCOLOR_FLASH_GREEN 5
  537. // GL-Sync Port Control (refers one GL-Sync Port) (unique values)
  538. /// Used to configure the RJ54(1) or RJ42(2) port of GL-Sync is as Idle
  539. #define ADL_GLSYNC_PORTCNTL_NONE 0x00000000
  540. /// Used to configure the RJ54(1) or RJ42(2) port of GL-Sync is as Output
  541. #define ADL_GLSYNC_PORTCNTL_OUTPUT 0x00000001
  542. // GL-Sync Mode Control (refers one Display/Controller) (bitfields)
  543. /// Used to configure the display to use internal timing (not genlocked)
  544. #define ADL_GLSYNC_MODECNTL_NONE 0x00000000
  545. /// Bitfield used to configure the display as genlocked (either as Timing Client or as Timing Server)
  546. #define ADL_GLSYNC_MODECNTL_GENLOCK 0x00000001
  547. /// Bitfield used to configure the display as Timing Server
  548. #define ADL_GLSYNC_MODECNTL_TIMINGSERVER 0x00000002
  549. // GL-Sync Mode Status
  550. /// Display is currently not genlocked
  551. #define ADL_GLSYNC_MODECNTL_STATUS_NONE 0x00000000
  552. /// Display is currently genlocked
  553. #define ADL_GLSYNC_MODECNTL_STATUS_GENLOCK 0x00000001
  554. /// Display requires a mode switch
  555. #define ADL_GLSYNC_MODECNTL_STATUS_SETMODE_REQUIRED 0x00000002
  556. /// Display is capable of being genlocked
  557. #define ADL_GLSYNC_MODECNTL_STATUS_GENLOCK_ALLOWED 0x00000004
  558. #define ADL_MAX_GLSYNC_PORTS 8
  559. #define ADL_MAX_GLSYNC_PORT_LEDS 8
  560. // @}
  561. /// \defgroup define_crossfirestate CrossfireX state of a particular adapter CrossfireX combination
  562. // @{
  563. #define ADL_XFIREX_STATE_NOINTERCONNECT ( 1 << 0 ) /* Dongle / cable is missing */
  564. #define ADL_XFIREX_STATE_DOWNGRADEPIPES ( 1 << 1 ) /* CrossfireX can be enabled if pipes are downgraded */
  565. #define ADL_XFIREX_STATE_DOWNGRADEMEM ( 1 << 2 ) /* CrossfireX cannot be enabled unless mem downgraded */
  566. #define ADL_XFIREX_STATE_REVERSERECOMMENDED ( 1 << 3 ) /* Card reversal recommended, CrossfireX cannot be enabled. */
  567. #define ADL_XFIREX_STATE_3DACTIVE ( 1 << 4 ) /* 3D client is active - CrossfireX cannot be safely enabled */
  568. #define ADL_XFIREX_STATE_MASTERONSLAVE ( 1 << 5 ) /* Dongle is OK but master is on slave */
  569. #define ADL_XFIREX_STATE_NODISPLAYCONNECT ( 1 << 6 ) /* No (valid) display connected to master card. */
  570. #define ADL_XFIREX_STATE_NOPRIMARYVIEW ( 1 << 7 ) /* CrossfireX is enabled but master is not current primary device */
  571. #define ADL_XFIREX_STATE_DOWNGRADEVISMEM ( 1 << 8 ) /* CrossfireX cannot be enabled unless visible mem downgraded */
  572. #define ADL_XFIREX_STATE_LESSTHAN8LANE_MASTER ( 1 << 9 ) /* CrossfireX can be enabled however performance not optimal due to <8 lanes */
  573. #define ADL_XFIREX_STATE_LESSTHAN8LANE_SLAVE ( 1 << 10 ) /* CrossfireX can be enabled however performance not optimal due to <8 lanes */
  574. #define ADL_XFIREX_STATE_PEERTOPEERFAILED ( 1 << 11 ) /* CrossfireX cannot be enabled due to failed peer to peer test */
  575. #define ADL_XFIREX_STATE_MEMISDOWNGRADED ( 1 << 16 ) /* Notification that memory is currently downgraded */
  576. #define ADL_XFIREX_STATE_PIPESDOWNGRADED ( 1 << 17 ) /* Notification that pipes are currently downgraded */
  577. #define ADL_XFIREX_STATE_XFIREXACTIVE ( 1 << 18 ) /* CrossfireX is enabled on current device */
  578. #define ADL_XFIREX_STATE_VISMEMISDOWNGRADED ( 1 << 19 ) /* Notification that visible FB memory is currently downgraded */
  579. #define ADL_XFIREX_STATE_INVALIDINTERCONNECTION ( 1 << 20 ) /* Cannot support current inter-connection configuration */
  580. #define ADL_XFIREX_STATE_NONP2PMODE ( 1 << 21 ) /* CrossfireX will only work with clients supporting non P2P mode */
  581. #define ADL_XFIREX_STATE_DOWNGRADEMEMBANKS ( 1 << 22 ) /* CrossfireX cannot be enabled unless memory banks downgraded */
  582. #define ADL_XFIREX_STATE_MEMBANKSDOWNGRADED ( 1 << 23 ) /* Notification that memory banks are currently downgraded */
  583. #define ADL_XFIREX_STATE_DUALDISPLAYSALLOWED ( 1 << 24 ) /* Extended desktop or clone mode is allowed. */
  584. #define ADL_XFIREX_STATE_P2P_APERTURE_MAPPING ( 1 << 25 ) /* P2P mapping was through peer aperture */
  585. #define ADL_XFIREX_STATE_P2PFLUSH_REQUIRED ADL_XFIREX_STATE_P2P_APERTURE_MAPPING /* For back compatible */
  586. #define ADL_XFIREX_STATE_XSP_CONNECTED ( 1 << 26 ) /* There is CrossfireX side port connection between GPUs */
  587. #define ADL_XFIREX_STATE_ENABLE_CF_REBOOT_REQUIRED ( 1 << 27 ) /* System needs a reboot bofore enable CrossfireX */
  588. #define ADL_XFIREX_STATE_DISABLE_CF_REBOOT_REQUIRED ( 1 << 28 ) /* System needs a reboot after disable CrossfireX */
  589. #define ADL_XFIREX_STATE_DRV_HANDLE_DOWNGRADE_KEY ( 1 << 29 ) /* Indicate base driver handles the downgrade key updating */
  590. #define ADL_XFIREX_STATE_CF_RECONFIG_REQUIRED ( 1 << 30 ) /* CrossfireX need to be reconfigured by CCC because of a LDA chain broken */
  591. #define ADL_XFIREX_STATE_ERRORGETTINGSTATUS ( 1 << 31 ) /* Could not obtain current status */
  592. // @}
  593. ///////////////////////////////////////////////////////////////////////////
  594. // ADL_DISPLAY_ADJUSTMENT_PIXELFORMAT adjustment values
  595. // (bit-vector)
  596. ///////////////////////////////////////////////////////////////////////////
  597. /// \defgroup define_pixel_formats Pixel Formats values
  598. /// This group defines the various Pixel Formats that a particular digital display can support. \n
  599. /// Since a display can support multiple formats, these values can be bit-or'ed to indicate the various formats \n
  600. // @{
  601. #define ADL_DISPLAY_PIXELFORMAT_UNKNOWN 0
  602. #define ADL_DISPLAY_PIXELFORMAT_RGB (1 << 0)
  603. #define ADL_DISPLAY_PIXELFORMAT_YCRCB444 (1 << 1) //Limited range
  604. #define ADL_DISPLAY_PIXELFORMAT_YCRCB422 (1 << 2) //Limited range
  605. #define ADL_DISPLAY_PIXELFORMAT_RGB_LIMITED_RANGE (1 << 3)
  606. #define ADL_DISPLAY_PIXELFORMAT_RGB_FULL_RANGE ADL_DISPLAY_PIXELFORMAT_RGB //Full range
  607. #define ADL_DISPLAY_PIXELFORMAT_YCRCB420 (1 << 4)
  608. // @}
  609. /// \defgroup define_contype Connector Type Values
  610. /// ADLDisplayConfig.ulConnectorType defines
  611. // @{
  612. #define ADL_DL_DISPLAYCONFIG_CONTYPE_UNKNOWN 0
  613. #define ADL_DL_DISPLAYCONFIG_CONTYPE_CV_NONI2C_JP 1
  614. #define ADL_DL_DISPLAYCONFIG_CONTYPE_CV_JPN 2
  615. #define ADL_DL_DISPLAYCONFIG_CONTYPE_CV_NA 3
  616. #define ADL_DL_DISPLAYCONFIG_CONTYPE_CV_NONI2C_NA 4
  617. #define ADL_DL_DISPLAYCONFIG_CONTYPE_VGA 5
  618. #define ADL_DL_DISPLAYCONFIG_CONTYPE_DVI_D 6
  619. #define ADL_DL_DISPLAYCONFIG_CONTYPE_DVI_I 7
  620. #define ADL_DL_DISPLAYCONFIG_CONTYPE_HDMI_TYPE_A 8
  621. #define ADL_DL_DISPLAYCONFIG_CONTYPE_HDMI_TYPE_B 9
  622. #define ADL_DL_DISPLAYCONFIG_CONTYPE_DISPLAYPORT 10
  623. // @}
  624. ///////////////////////////////////////////////////////////////////////////
  625. // ADL_DISPLAY_DISPLAYINFO_ Definitions
  626. // for ADLDisplayInfo.iDisplayInfoMask and ADLDisplayInfo.iDisplayInfoValue
  627. // (bit-vector)
  628. ///////////////////////////////////////////////////////////////////////////
  629. /// \defgroup define_displayinfomask Display Info Mask Values
  630. // @{
  631. #define ADL_DISPLAY_DISPLAYINFO_DISPLAYCONNECTED 0x00000001
  632. #define ADL_DISPLAY_DISPLAYINFO_DISPLAYMAPPED 0x00000002
  633. #define ADL_DISPLAY_DISPLAYINFO_NONLOCAL 0x00000004
  634. #define ADL_DISPLAY_DISPLAYINFO_FORCIBLESUPPORTED 0x00000008
  635. #define ADL_DISPLAY_DISPLAYINFO_GENLOCKSUPPORTED 0x00000010
  636. #define ADL_DISPLAY_DISPLAYINFO_MULTIVPU_SUPPORTED 0x00000020
  637. #define ADL_DISPLAY_DISPLAYINFO_LDA_DISPLAY 0x00000040
  638. #define ADL_DISPLAY_DISPLAYINFO_MODETIMING_OVERRIDESSUPPORTED 0x00000080
  639. #define ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_SINGLE 0x00000100
  640. #define ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_CLONE 0x00000200
  641. /// Legacy support for XP
  642. #define ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_2VSTRETCH 0x00000400
  643. #define ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_2HSTRETCH 0x00000800
  644. #define ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_EXTENDED 0x00001000
  645. /// More support manners
  646. #define ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_NSTRETCH1GPU 0x00010000
  647. #define ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_NSTRETCHNGPU 0x00020000
  648. #define ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_RESERVED2 0x00040000
  649. #define ADL_DISPLAY_DISPLAYINFO_MANNER_SUPPORTED_RESERVED3 0x00080000
  650. /// Projector display type
  651. #define ADL_DISPLAY_DISPLAYINFO_SHOWTYPE_PROJECTOR 0x00100000
  652. // @}
  653. ///////////////////////////////////////////////////////////////////////////
  654. // ADL_ADAPTER_DISPLAY_MANNER_SUPPORTED_ Definitions
  655. // for ADLAdapterDisplayCap of ADL_Adapter_Display_Cap()
  656. // (bit-vector)
  657. ///////////////////////////////////////////////////////////////////////////
  658. /// \defgroup define_adaptermanner Adapter Manner Support Values
  659. // @{
  660. #define ADL_ADAPTER_DISPLAYCAP_MANNER_SUPPORTED_NOTACTIVE 0x00000001
  661. #define ADL_ADAPTER_DISPLAYCAP_MANNER_SUPPORTED_SINGLE 0x00000002
  662. #define ADL_ADAPTER_DISPLAYCAP_MANNER_SUPPORTED_CLONE 0x00000004
  663. #define ADL_ADAPTER_DISPLAYCAP_MANNER_SUPPORTED_NSTRETCH1GPU 0x00000008
  664. #define ADL_ADAPTER_DISPLAYCAP_MANNER_SUPPORTED_NSTRETCHNGPU 0x00000010
  665. /// Legacy support for XP
  666. #define ADL_ADAPTER_DISPLAYCAP_MANNER_SUPPORTED_2VSTRETCH 0x00000020
  667. #define ADL_ADAPTER_DISPLAYCAP_MANNER_SUPPORTED_2HSTRETCH 0x00000040
  668. #define ADL_ADAPTER_DISPLAYCAP_MANNER_SUPPORTED_EXTENDED 0x00000080
  669. #define ADL_ADAPTER_DISPLAYCAP_PREFERDISPLAY_SUPPORTED 0x00000100
  670. #define ADL_ADAPTER_DISPLAYCAP_BEZEL_SUPPORTED 0x00000200
  671. ///////////////////////////////////////////////////////////////////////////
  672. // ADL_DISPLAY_DISPLAYMAP_MANNER_ Definitions
  673. // for ADLDisplayMap.iDisplayMapMask and ADLDisplayMap.iDisplayMapValue
  674. // (bit-vector)
  675. ///////////////////////////////////////////////////////////////////////////
  676. #define ADL_DISPLAY_DISPLAYMAP_MANNER_RESERVED 0x00000001
  677. #define ADL_DISPLAY_DISPLAYMAP_MANNER_NOTACTIVE 0x00000002
  678. #define ADL_DISPLAY_DISPLAYMAP_MANNER_SINGLE 0x00000004
  679. #define ADL_DISPLAY_DISPLAYMAP_MANNER_CLONE 0x00000008
  680. #define ADL_DISPLAY_DISPLAYMAP_MANNER_RESERVED1 0x00000010 // Removed NSTRETCH
  681. #define ADL_DISPLAY_DISPLAYMAP_MANNER_HSTRETCH 0x00000020
  682. #define ADL_DISPLAY_DISPLAYMAP_MANNER_VSTRETCH 0x00000040
  683. #define ADL_DISPLAY_DISPLAYMAP_MANNER_VLD 0x00000080
  684. // @}
  685. ///////////////////////////////////////////////////////////////////////////
  686. // ADL_DISPLAY_DISPLAYMAP_OPTION_ Definitions
  687. // for iOption in function ADL_Display_DisplayMapConfig_Get
  688. // (bit-vector)
  689. ///////////////////////////////////////////////////////////////////////////
  690. #define ADL_DISPLAY_DISPLAYMAP_OPTION_GPUINFO 0x00000001
  691. ///////////////////////////////////////////////////////////////////////////
  692. // ADL_DISPLAY_DISPLAYTARGET_ Definitions
  693. // for ADLDisplayTarget.iDisplayTargetMask and ADLDisplayTarget.iDisplayTargetValue
  694. // (bit-vector)
  695. ///////////////////////////////////////////////////////////////////////////
  696. #define ADL_DISPLAY_DISPLAYTARGET_PREFERRED 0x00000001
  697. ///////////////////////////////////////////////////////////////////////////
  698. // ADL_DISPLAY_POSSIBLEMAPRESULT_VALID Definitions
  699. // for ADLPossibleMapResult.iPossibleMapResultMask and ADLPossibleMapResult.iPossibleMapResultValue
  700. // (bit-vector)
  701. ///////////////////////////////////////////////////////////////////////////
  702. #define ADL_DISPLAY_POSSIBLEMAPRESULT_VALID 0x00000001
  703. #define ADL_DISPLAY_POSSIBLEMAPRESULT_BEZELSUPPORTED 0x00000002
  704. #define ADL_DISPLAY_POSSIBLEMAPRESULT_OVERLAPSUPPORTED 0x00000004
  705. ///////////////////////////////////////////////////////////////////////////
  706. // ADL_DISPLAY_MODE_ Definitions
  707. // for ADLMode.iModeMask, ADLMode.iModeValue, and ADLMode.iModeFlag
  708. // (bit-vector)
  709. ///////////////////////////////////////////////////////////////////////////
  710. /// \defgroup define_displaymode Display Mode Values
  711. // @{
  712. #define ADL_DISPLAY_MODE_COLOURFORMAT_565 0x00000001
  713. #define ADL_DISPLAY_MODE_COLOURFORMAT_8888 0x00000002
  714. #define ADL_DISPLAY_MODE_ORIENTATION_SUPPORTED_000 0x00000004
  715. #define ADL_DISPLAY_MODE_ORIENTATION_SUPPORTED_090 0x00000008
  716. #define ADL_DISPLAY_MODE_ORIENTATION_SUPPORTED_180 0x00000010
  717. #define ADL_DISPLAY_MODE_ORIENTATION_SUPPORTED_270 0x00000020
  718. #define ADL_DISPLAY_MODE_REFRESHRATE_ROUNDED 0x00000040
  719. #define ADL_DISPLAY_MODE_REFRESHRATE_ONLY 0x00000080
  720. #define ADL_DISPLAY_MODE_PROGRESSIVE_FLAG 0
  721. #define ADL_DISPLAY_MODE_INTERLACED_FLAG 2
  722. // @}
  723. ///////////////////////////////////////////////////////////////////////////
  724. // ADL_OSMODEINFO Definitions
  725. ///////////////////////////////////////////////////////////////////////////
  726. /// \defgroup define_osmode OS Mode Values
  727. // @{
  728. #define ADL_OSMODEINFOXPOS_DEFAULT -640
  729. #define ADL_OSMODEINFOYPOS_DEFAULT 0
  730. #define ADL_OSMODEINFOXRES_DEFAULT 640
  731. #define ADL_OSMODEINFOYRES_DEFAULT 480
  732. #define ADL_OSMODEINFOXRES_DEFAULT800 800
  733. #define ADL_OSMODEINFOYRES_DEFAULT600 600
  734. #define ADL_OSMODEINFOREFRESHRATE_DEFAULT 60
  735. #define ADL_OSMODEINFOCOLOURDEPTH_DEFAULT 8
  736. #define ADL_OSMODEINFOCOLOURDEPTH_DEFAULT16 16
  737. #define ADL_OSMODEINFOCOLOURDEPTH_DEFAULT24 24
  738. #define ADL_OSMODEINFOCOLOURDEPTH_DEFAULT32 32
  739. #define ADL_OSMODEINFOORIENTATION_DEFAULT 0
  740. #define ADL_OSMODEINFOORIENTATION_DEFAULT_WIN7 DISPLAYCONFIG_ROTATION_FORCE_UINT32
  741. #define ADL_OSMODEFLAG_DEFAULT 0
  742. // @}
  743. ///////////////////////////////////////////////////////////////////////////
  744. // ADLThreadingModel Enumeration
  745. ///////////////////////////////////////////////////////////////////////////
  746. /// \defgroup thread_model
  747. /// Used with \ref ADL_Main_ControlX2_Create and \ref ADL2_Main_ControlX2_Create to specify how ADL handles API calls when executed by multiple threads concurrently.
  748. /// \brief Declares ADL threading behavior.
  749. // @{
  750. typedef enum ADLThreadingModel
  751. {
  752. ADL_THREADING_UNLOCKED = 0, /*!< Default behavior. ADL will not enforce serialization of ADL API executions by multiple threads. Multiple threads will be allowed to enter to ADL at the same time. Note that ADL library is not guaranteed to be thread-safe. Client that calls ADL_Main_Control_Create have to provide its own mechanism for ADL calls serialization. */
  753. ADL_THREADING_LOCKED /*!< ADL will enforce serialization of ADL API when called by multiple threads. Only single thread will be allowed to enter ADL API at the time. This option makes ADL calls thread-safe. You shouldn't use this option if ADL calls will be executed on Linux on x-server rendering thread. It can cause the application to hung. */
  754. }ADLThreadingModel;
  755. // @}
  756. ///////////////////////////////////////////////////////////////////////////
  757. // ADLPurposeCode Enumeration
  758. ///////////////////////////////////////////////////////////////////////////
  759. enum ADLPurposeCode
  760. {
  761. ADL_PURPOSECODE_NORMAL = 0,
  762. ADL_PURPOSECODE_HIDE_MODE_SWITCH,
  763. ADL_PURPOSECODE_MODE_SWITCH,
  764. ADL_PURPOSECODE_ATTATCH_DEVICE,
  765. ADL_PURPOSECODE_DETACH_DEVICE,
  766. ADL_PURPOSECODE_SETPRIMARY_DEVICE,
  767. ADL_PURPOSECODE_GDI_ROTATION,
  768. ADL_PURPOSECODE_ATI_ROTATION
  769. };
  770. ///////////////////////////////////////////////////////////////////////////
  771. // ADLAngle Enumeration
  772. ///////////////////////////////////////////////////////////////////////////
  773. enum ADLAngle
  774. {
  775. ADL_ANGLE_LANDSCAPE = 0,
  776. ADL_ANGLE_ROTATERIGHT = 90,
  777. ADL_ANGLE_ROTATE180 = 180,
  778. ADL_ANGLE_ROTATELEFT = 270,
  779. };
  780. ///////////////////////////////////////////////////////////////////////////
  781. // ADLOrientationDataType Enumeration
  782. ///////////////////////////////////////////////////////////////////////////
  783. enum ADLOrientationDataType
  784. {
  785. ADL_ORIENTATIONTYPE_OSDATATYPE,
  786. ADL_ORIENTATIONTYPE_NONOSDATATYPE
  787. };
  788. ///////////////////////////////////////////////////////////////////////////
  789. // ADLPanningMode Enumeration
  790. ///////////////////////////////////////////////////////////////////////////
  791. enum ADLPanningMode
  792. {
  793. ADL_PANNINGMODE_NO_PANNING = 0,
  794. ADL_PANNINGMODE_AT_LEAST_ONE_NO_PANNING = 1,
  795. ADL_PANNINGMODE_ALLOW_PANNING = 2,
  796. };
  797. ///////////////////////////////////////////////////////////////////////////
  798. // ADLLARGEDESKTOPTYPE Enumeration
  799. ///////////////////////////////////////////////////////////////////////////
  800. enum ADLLARGEDESKTOPTYPE
  801. {
  802. ADL_LARGEDESKTOPTYPE_NORMALDESKTOP = 0,
  803. ADL_LARGEDESKTOPTYPE_PSEUDOLARGEDESKTOP = 1,
  804. ADL_LARGEDESKTOPTYPE_VERYLARGEDESKTOP = 2
  805. };
  806. ///////////////////////////////////////////////////////////////////////////
  807. // ADLPlatform Enumeration
  808. ///////////////////////////////////////////////////////////////////////////
  809. enum ADLPlatForm
  810. {
  811. GRAPHICS_PLATFORM_DESKTOP = 0,
  812. GRAPHICS_PLATFORM_MOBILE = 1
  813. };
  814. ///////////////////////////////////////////////////////////////////////////
  815. // ADLGraphicCoreGeneration Enumeration
  816. ///////////////////////////////////////////////////////////////////////////
  817. enum ADLGraphicCoreGeneration
  818. {
  819. ADL_GRAPHIC_CORE_GENERATION_UNDEFINED = 0,
  820. ADL_GRAPHIC_CORE_GENERATION_PRE_GCN = 1,
  821. ADL_GRAPHIC_CORE_GENERATION_GCN = 2,
  822. ADL_GRAPHIC_CORE_GENERATION_RDNA = 3
  823. };
  824. // Other Definitions for internal use
  825. // Values for ADL_Display_WriteAndReadI2CRev_Get()
  826. #define ADL_I2C_MAJOR_API_REV 0x00000001
  827. #define ADL_I2C_MINOR_DEFAULT_API_REV 0x00000000
  828. #define ADL_I2C_MINOR_OEM_API_REV 0x00000001
  829. // Values for ADL_Display_WriteAndReadI2C()
  830. #define ADL_DL_I2C_LINE_OEM 0x00000001
  831. #define ADL_DL_I2C_LINE_OD_CONTROL 0x00000002
  832. #define ADL_DL_I2C_LINE_OEM2 0x00000003
  833. #define ADL_DL_I2C_LINE_OEM3 0x00000004
  834. #define ADL_DL_I2C_LINE_OEM4 0x00000005
  835. #define ADL_DL_I2C_LINE_OEM5 0x00000006
  836. #define ADL_DL_I2C_LINE_OEM6 0x00000007
  837. // Max size of I2C data buffer
  838. #define ADL_DL_I2C_MAXDATASIZE 0x00000040
  839. #define ADL_DL_I2C_MAXWRITEDATASIZE 0x0000000C
  840. #define ADL_DL_I2C_MAXADDRESSLENGTH 0x00000006
  841. #define ADL_DL_I2C_MAXOFFSETLENGTH 0x00000004
  842. /// Values for ADLDisplayProperty.iPropertyType
  843. #define ADL_DL_DISPLAYPROPERTY_TYPE_UNKNOWN 0
  844. #define ADL_DL_DISPLAYPROPERTY_TYPE_EXPANSIONMODE 1
  845. #define ADL_DL_DISPLAYPROPERTY_TYPE_USEUNDERSCANSCALING 2
  846. /// Enables ITC processing for HDMI panels that are capable of the feature
  847. #define ADL_DL_DISPLAYPROPERTY_TYPE_ITCFLAGENABLE 9
  848. #define ADL_DL_DISPLAYPROPERTY_TYPE_DOWNSCALE 11
  849. #define ADL_DL_DISPLAYPROPERTY_TYPE_INTEGER_SCALING 12
  850. /// Values for ADLDisplayContent.iContentType
  851. /// Certain HDMI panels that support ITC have support for a feature such that, the display on the panel
  852. /// can be adjusted to optimize the view of the content being displayed, depending on the type of content.
  853. #define ADL_DL_DISPLAYCONTENT_TYPE_GRAPHICS 1
  854. #define ADL_DL_DISPLAYCONTENT_TYPE_PHOTO 2
  855. #define ADL_DL_DISPLAYCONTENT_TYPE_CINEMA 4
  856. #define ADL_DL_DISPLAYCONTENT_TYPE_GAME 8
  857. //values for ADLDisplayProperty.iExpansionMode
  858. #define ADL_DL_DISPLAYPROPERTY_EXPANSIONMODE_CENTER 0
  859. #define ADL_DL_DISPLAYPROPERTY_EXPANSIONMODE_FULLSCREEN 1
  860. #define ADL_DL_DISPLAYPROPERTY_EXPANSIONMODE_ASPECTRATIO 2
  861. ///\defgroup define_dither_states Dithering options
  862. // @{
  863. /// Dithering disabled.
  864. #define ADL_DL_DISPLAY_DITHER_DISABLED 0
  865. /// Use default driver settings for dithering. Note that the default setting could be dithering disabled.
  866. #define ADL_DL_DISPLAY_DITHER_DRIVER_DEFAULT 1
  867. /// Temporal dithering to 6 bpc. Note that if the input is 12 bits, the two least significant bits will be truncated.
  868. #define ADL_DL_DISPLAY_DITHER_FM6 2
  869. /// Temporal dithering to 8 bpc.
  870. #define ADL_DL_DISPLAY_DITHER_FM8 3
  871. /// Temporal dithering to 10 bpc.
  872. #define ADL_DL_DISPLAY_DITHER_FM10 4
  873. /// Spatial dithering to 6 bpc. Note that if the input is 12 bits, the two least significant bits will be truncated.
  874. #define ADL_DL_DISPLAY_DITHER_DITH6 5
  875. /// Spatial dithering to 8 bpc.
  876. #define ADL_DL_DISPLAY_DITHER_DITH8 6
  877. /// Spatial dithering to 10 bpc.
  878. #define ADL_DL_DISPLAY_DITHER_DITH10 7
  879. /// Spatial dithering to 6 bpc. Random number generators are reset every frame, so the same input value of a certain pixel will always be dithered to the same output value. Note that if the input is 12 bits, the two least significant bits will be truncated.
  880. #define ADL_DL_DISPLAY_DITHER_DITH6_NO_FRAME_RAND 8
  881. /// Spatial dithering to 8 bpc. Random number generators are reset every frame, so the same input value of a certain pixel will always be dithered to the same output value.
  882. #define ADL_DL_DISPLAY_DITHER_DITH8_NO_FRAME_RAND 9
  883. /// Spatial dithering to 10 bpc. Random number generators are reset every frame, so the same input value of a certain pixel will always be dithered to the same output value.
  884. #define ADL_DL_DISPLAY_DITHER_DITH10_NO_FRAME_RAND 10
  885. /// Truncation to 6 bpc.
  886. #define ADL_DL_DISPLAY_DITHER_TRUN6 11
  887. /// Truncation to 8 bpc.
  888. #define ADL_DL_DISPLAY_DITHER_TRUN8 12
  889. /// Truncation to 10 bpc.
  890. #define ADL_DL_DISPLAY_DITHER_TRUN10 13
  891. /// Truncation to 10 bpc followed by spatial dithering to 8 bpc.
  892. #define ADL_DL_DISPLAY_DITHER_TRUN10_DITH8 14
  893. /// Truncation to 10 bpc followed by spatial dithering to 6 bpc.
  894. #define ADL_DL_DISPLAY_DITHER_TRUN10_DITH6 15
  895. /// Truncation to 10 bpc followed by temporal dithering to 8 bpc.
  896. #define ADL_DL_DISPLAY_DITHER_TRUN10_FM8 16
  897. /// Truncation to 10 bpc followed by temporal dithering to 6 bpc.
  898. #define ADL_DL_DISPLAY_DITHER_TRUN10_FM6 17
  899. /// Truncation to 10 bpc followed by spatial dithering to 8 bpc and temporal dithering to 6 bpc.
  900. #define ADL_DL_DISPLAY_DITHER_TRUN10_DITH8_FM6 18
  901. /// Spatial dithering to 10 bpc followed by temporal dithering to 8 bpc.
  902. #define ADL_DL_DISPLAY_DITHER_DITH10_FM8 19
  903. /// Spatial dithering to 10 bpc followed by temporal dithering to 6 bpc.
  904. #define ADL_DL_DISPLAY_DITHER_DITH10_FM6 20
  905. /// Truncation to 8 bpc followed by spatial dithering to 6 bpc.
  906. #define ADL_DL_DISPLAY_DITHER_TRUN8_DITH6 21
  907. /// Truncation to 8 bpc followed by temporal dithering to 6 bpc.
  908. #define ADL_DL_DISPLAY_DITHER_TRUN8_FM6 22
  909. /// Spatial dithering to 8 bpc followed by temporal dithering to 6 bpc.
  910. #define ADL_DL_DISPLAY_DITHER_DITH8_FM6 23
  911. #define ADL_DL_DISPLAY_DITHER_LAST ADL_DL_DISPLAY_DITHER_DITH8_FM6
  912. // @}
  913. /// Display Get Cached EDID flag
  914. #define ADL_MAX_EDIDDATA_SIZE 256 // number of UCHAR
  915. #define ADL_MAX_OVERRIDEEDID_SIZE 512 // number of UCHAR
  916. #define ADL_MAX_EDID_EXTENSION_BLOCKS 3
  917. #define ADL_DL_CONTROLLER_OVERLAY_ALPHA 0
  918. #define ADL_DL_CONTROLLER_OVERLAY_ALPHAPERPIX 1
  919. #define ADL_DL_DISPLAY_DATA_PACKET__INFO_PACKET_RESET 0x00000000
  920. #define ADL_DL_DISPLAY_DATA_PACKET__INFO_PACKET_SET 0x00000001
  921. #define ADL_DL_DISPLAY_DATA_PACKET__INFO_PACKET_SCAN 0x00000002
  922. ///\defgroup define_display_packet Display Data Packet Types
  923. // @{
  924. #define ADL_DL_DISPLAY_DATA_PACKET__TYPE__AVI 0x00000001
  925. #define ADL_DL_DISPLAY_DATA_PACKET__TYPE__GAMMUT 0x00000002
  926. #define ADL_DL_DISPLAY_DATA_PACKET__TYPE__VENDORINFO 0x00000004
  927. #define ADL_DL_DISPLAY_DATA_PACKET__TYPE__HDR 0x00000008
  928. #define ADL_DL_DISPLAY_DATA_PACKET__TYPE__SPD 0x00000010
  929. // @}
  930. // matrix types
  931. #define ADL_GAMUT_MATRIX_SD 1 // SD matrix i.e. BT601
  932. #define ADL_GAMUT_MATRIX_HD 2 // HD matrix i.e. BT709
  933. ///\defgroup define_clockinfo_flags Clock flags
  934. /// Used by ADLAdapterODClockInfo.iFlag
  935. // @{
  936. #define ADL_DL_CLOCKINFO_FLAG_FULLSCREEN3DONLY 0x00000001
  937. #define ADL_DL_CLOCKINFO_FLAG_ALWAYSFULLSCREEN3D 0x00000002
  938. #define ADL_DL_CLOCKINFO_FLAG_VPURECOVERYREDUCED 0x00000004
  939. #define ADL_DL_CLOCKINFO_FLAG_THERMALPROTECTION 0x00000008
  940. // @}
  941. // Supported GPUs
  942. // ADL_Display_PowerXpressActiveGPU_Get()
  943. #define ADL_DL_POWERXPRESS_GPU_INTEGRATED 1
  944. #define ADL_DL_POWERXPRESS_GPU_DISCRETE 2
  945. // Possible values for lpOperationResult
  946. // ADL_Display_PowerXpressActiveGPU_Get()
  947. #define ADL_DL_POWERXPRESS_SWITCH_RESULT_STARTED 1 // Switch procedure has been started - Windows platform only
  948. #define ADL_DL_POWERXPRESS_SWITCH_RESULT_DECLINED 2 // Switch procedure cannot be started - All platforms
  949. #define ADL_DL_POWERXPRESS_SWITCH_RESULT_ALREADY 3 // System already has required status - All platforms
  950. #define ADL_DL_POWERXPRESS_SWITCH_RESULT_DEFERRED 5 // Switch was deferred and requires an X restart - Linux platform only
  951. // PowerXpress support version
  952. // ADL_Display_PowerXpressVersion_Get()
  953. #define ADL_DL_POWERXPRESS_VERSION_MAJOR 2 // Current PowerXpress support version 2.0
  954. #define ADL_DL_POWERXPRESS_VERSION_MINOR 0
  955. #define ADL_DL_POWERXPRESS_VERSION (((ADL_DL_POWERXPRESS_VERSION_MAJOR) << 16) | ADL_DL_POWERXPRESS_VERSION_MINOR)
  956. //values for ADLThermalControllerInfo.iThermalControllerDomain
  957. #define ADL_DL_THERMAL_DOMAIN_OTHER 0
  958. #define ADL_DL_THERMAL_DOMAIN_GPU 1
  959. //values for ADLThermalControllerInfo.iFlags
  960. #define ADL_DL_THERMAL_FLAG_INTERRUPT 1
  961. #define ADL_DL_THERMAL_FLAG_FANCONTROL 2
  962. ///\defgroup define_fanctrl Fan speed cotrol
  963. /// Values for ADLFanSpeedInfo.iFlags
  964. // @{
  965. #define ADL_DL_FANCTRL_SUPPORTS_PERCENT_READ 1
  966. #define ADL_DL_FANCTRL_SUPPORTS_PERCENT_WRITE 2
  967. #define ADL_DL_FANCTRL_SUPPORTS_RPM_READ 4
  968. #define ADL_DL_FANCTRL_SUPPORTS_RPM_WRITE 8
  969. // @}
  970. //values for ADLFanSpeedValue.iSpeedType
  971. #define ADL_DL_FANCTRL_SPEED_TYPE_PERCENT 1
  972. #define ADL_DL_FANCTRL_SPEED_TYPE_RPM 2
  973. //values for ADLFanSpeedValue.iFlags
  974. #define ADL_DL_FANCTRL_FLAG_USER_DEFINED_SPEED 1
  975. // MVPU interfaces
  976. #define ADL_DL_MAX_MVPU_ADAPTERS 4
  977. #define MVPU_ADAPTER_0 0x00000001
  978. #define MVPU_ADAPTER_1 0x00000002
  979. #define MVPU_ADAPTER_2 0x00000004
  980. #define MVPU_ADAPTER_3 0x00000008
  981. #define ADL_DL_MAX_REGISTRY_PATH 256
  982. //values for ADLMVPUStatus.iStatus
  983. #define ADL_DL_MVPU_STATUS_OFF 0
  984. #define ADL_DL_MVPU_STATUS_ON 1
  985. // values for ASIC family
  986. ///\defgroup define_Asic_type Detailed asic types
  987. /// Defines for Adapter ASIC family type
  988. // @{
  989. #define ADL_ASIC_UNDEFINED 0
  990. #define ADL_ASIC_DISCRETE (1 << 0)
  991. #define ADL_ASIC_INTEGRATED (1 << 1)
  992. #define ADL_ASIC_FIREGL (1 << 2)
  993. #define ADL_ASIC_FIREMV (1 << 3)
  994. #define ADL_ASIC_XGP (1 << 4)
  995. #define ADL_ASIC_FUSION (1 << 5)
  996. #define ADL_ASIC_FIRESTREAM (1 << 6)
  997. #define ADL_ASIC_EMBEDDED (1 << 7)
  998. // @}
  999. ///\defgroup define_detailed_timing_flags Detailed Timimg Flags
  1000. /// Defines for ADLDetailedTiming.sTimingFlags field
  1001. // @{
  1002. #define ADL_DL_TIMINGFLAG_DOUBLE_SCAN 0x0001
  1003. //sTimingFlags is set when the mode is INTERLACED, if not PROGRESSIVE
  1004. #define ADL_DL_TIMINGFLAG_INTERLACED 0x0002
  1005. //sTimingFlags is set when the Horizontal Sync is POSITIVE, if not NEGATIVE
  1006. #define ADL_DL_TIMINGFLAG_H_SYNC_POLARITY 0x0004
  1007. //sTimingFlags is set when the Vertical Sync is POSITIVE, if not NEGATIVE
  1008. #define ADL_DL_TIMINGFLAG_V_SYNC_POLARITY 0x0008
  1009. // @}
  1010. ///\defgroup define_modetiming_standard Timing Standards
  1011. /// Defines for ADLDisplayModeInfo.iTimingStandard field
  1012. // @{
  1013. #define ADL_DL_MODETIMING_STANDARD_CVT 0x00000001 // CVT Standard
  1014. #define ADL_DL_MODETIMING_STANDARD_GTF 0x00000002 // GFT Standard
  1015. #define ADL_DL_MODETIMING_STANDARD_DMT 0x00000004 // DMT Standard
  1016. #define ADL_DL_MODETIMING_STANDARD_CUSTOM 0x00000008 // User-defined standard
  1017. #define ADL_DL_MODETIMING_STANDARD_DRIVER_DEFAULT 0x00000010 // Remove Mode from overriden list
  1018. #define ADL_DL_MODETIMING_STANDARD_CVT_RB 0x00000020 // CVT-RB Standard
  1019. // @}
  1020. // \defgroup define_xserverinfo driver x-server info
  1021. /// These flags are used by ADL_XServerInfo_Get()
  1022. // @
  1023. /// Xinerama is active in the x-server, Xinerama extension may report it to be active but it
  1024. /// may not be active in x-server
  1025. #define ADL_XSERVERINFO_XINERAMAACTIVE (1<<0)
  1026. /// RandR 1.2 is supported by driver, RandR extension may report version 1.2
  1027. /// but driver may not support it
  1028. #define ADL_XSERVERINFO_RANDR12SUPPORTED (1<<1)
  1029. // @
  1030. ///\defgroup define_eyefinity_constants Eyefinity Definitions
  1031. // @{
  1032. #define ADL_CONTROLLERVECTOR_0 1 // ADL_CONTROLLERINDEX_0 = 0, (1 << ADL_CONTROLLERINDEX_0)
  1033. #define ADL_CONTROLLERVECTOR_1 2 // ADL_CONTROLLERINDEX_1 = 1, (1 << ADL_CONTROLLERINDEX_1)
  1034. #define ADL_DISPLAY_SLSGRID_ORIENTATION_000 0x00000001
  1035. #define ADL_DISPLAY_SLSGRID_ORIENTATION_090 0x00000002
  1036. #define ADL_DISPLAY_SLSGRID_ORIENTATION_180 0x00000004
  1037. #define ADL_DISPLAY_SLSGRID_ORIENTATION_270 0x00000008
  1038. #define ADL_DISPLAY_SLSGRID_CAP_OPTION_RELATIVETO_LANDSCAPE 0x00000001
  1039. #define ADL_DISPLAY_SLSGRID_CAP_OPTION_RELATIVETO_CURRENTANGLE 0x00000002
  1040. #define ADL_DISPLAY_SLSGRID_PORTAIT_MODE 0x00000004
  1041. #define ADL_DISPLAY_SLSGRID_KEEPTARGETROTATION 0x00000080
  1042. #define ADL_DISPLAY_SLSGRID_SAMEMODESLS_SUPPORT 0x00000010
  1043. #define ADL_DISPLAY_SLSGRID_MIXMODESLS_SUPPORT 0x00000020
  1044. #define ADL_DISPLAY_SLSGRID_DISPLAYROTATION_SUPPORT 0x00000040
  1045. #define ADL_DISPLAY_SLSGRID_DESKTOPROTATION_SUPPORT 0x00000080
  1046. #define ADL_DISPLAY_SLSMAP_SLSLAYOUTMODE_FIT 0x0100
  1047. #define ADL_DISPLAY_SLSMAP_SLSLAYOUTMODE_FILL 0x0200
  1048. #define ADL_DISPLAY_SLSMAP_SLSLAYOUTMODE_EXPAND 0x0400
  1049. #define ADL_DISPLAY_SLSMAP_IS_SLS 0x1000
  1050. #define ADL_DISPLAY_SLSMAP_IS_SLSBUILDER 0x2000
  1051. #define ADL_DISPLAY_SLSMAP_IS_CLONEVT 0x4000
  1052. #define ADL_DISPLAY_SLSMAPCONFIG_GET_OPTION_RELATIVETO_LANDSCAPE 0x00000001
  1053. #define ADL_DISPLAY_SLSMAPCONFIG_GET_OPTION_RELATIVETO_CURRENTANGLE 0x00000002
  1054. #define ADL_DISPLAY_SLSMAPCONFIG_CREATE_OPTION_RELATIVETO_LANDSCAPE 0x00000001
  1055. #define ADL_DISPLAY_SLSMAPCONFIG_CREATE_OPTION_RELATIVETO_CURRENTANGLE 0x00000002
  1056. #define ADL_DISPLAY_SLSMAPCONFIG_REARRANGE_OPTION_RELATIVETO_LANDSCAPE 0x00000001
  1057. #define ADL_DISPLAY_SLSMAPCONFIG_REARRANGE_OPTION_RELATIVETO_CURRENTANGLE 0x00000002
  1058. #define ADL_SLS_SAMEMODESLS_SUPPORT 0x0001
  1059. #define ADL_SLS_MIXMODESLS_SUPPORT 0x0002
  1060. #define ADL_SLS_DISPLAYROTATIONSLS_SUPPORT 0x0004
  1061. #define ADL_SLS_DESKTOPROTATIONSLS_SUPPORT 0x0008
  1062. #define ADL_SLS_TARGETS_INVALID 0x0001
  1063. #define ADL_SLS_MODES_INVALID 0x0002
  1064. #define ADL_SLS_ROTATIONS_INVALID 0x0004
  1065. #define ADL_SLS_POSITIONS_INVALID 0x0008
  1066. #define ADL_SLS_LAYOUTMODE_INVALID 0x0010
  1067. #define ADL_DISPLAY_SLSDISPLAYOFFSET_VALID 0x0002
  1068. #define ADL_DISPLAY_SLSGRID_RELATIVETO_LANDSCAPE 0x00000010
  1069. #define ADL_DISPLAY_SLSGRID_RELATIVETO_CURRENTANGLE 0x00000020
  1070. /// The bit mask identifies displays is currently in bezel mode.
  1071. #define ADL_DISPLAY_SLSMAP_BEZELMODE 0x00000010
  1072. /// The bit mask identifies displays from this map is arranged.
  1073. #define ADL_DISPLAY_SLSMAP_DISPLAYARRANGED 0x00000002
  1074. /// The bit mask identifies this map is currently in used for the current adapter.
  1075. #define ADL_DISPLAY_SLSMAP_CURRENTCONFIG 0x00000004
  1076. ///For onlay active SLS map info
  1077. #define ADL_DISPLAY_SLSMAPINDEXLIST_OPTION_ACTIVE 0x00000001
  1078. ///For Bezel
  1079. #define ADL_DISPLAY_BEZELOFFSET_STEPBYSTEPSET 0x00000004
  1080. #define ADL_DISPLAY_BEZELOFFSET_COMMIT 0x00000008
  1081. typedef enum _SLS_ImageCropType {
  1082. Fit = 1,
  1083. Fill = 2,
  1084. Expand = 3
  1085. }SLS_ImageCropType;
  1086. typedef enum _DceSettingsType {
  1087. DceSetting_HdmiLq,
  1088. DceSetting_DpSettings,
  1089. DceSetting_Protection
  1090. } DceSettingsType;
  1091. typedef enum _DpLinkRate {
  1092. DPLinkRate_Unknown,
  1093. DPLinkRate_RBR,
  1094. DPLinkRate_HBR,
  1095. DPLinkRate_HBR2,
  1096. DPLinkRate_HBR3
  1097. } DpLinkRate;
  1098. // @}
  1099. ///\defgroup define_powerxpress_constants PowerXpress Definitions
  1100. /// @{
  1101. /// The bit mask identifies PX caps for ADLPXConfigCaps.iPXConfigCapMask and ADLPXConfigCaps.iPXConfigCapValue
  1102. #define ADL_PX_CONFIGCAPS_SPLASHSCREEN_SUPPORT 0x0001
  1103. #define ADL_PX_CONFIGCAPS_CF_SUPPORT 0x0002
  1104. #define ADL_PX_CONFIGCAPS_MUXLESS 0x0004
  1105. #define ADL_PX_CONFIGCAPS_PROFILE_COMPLIANT 0x0008
  1106. #define ADL_PX_CONFIGCAPS_NON_AMD_DRIVEN_DISPLAYS 0x0010
  1107. #define ADL_PX_CONFIGCAPS_FIXED_SUPPORT 0x0020
  1108. #define ADL_PX_CONFIGCAPS_DYNAMIC_SUPPORT 0x0040
  1109. #define ADL_PX_CONFIGCAPS_HIDE_AUTO_SWITCH 0x0080
  1110. /// The bit mask identifies PX schemes for ADLPXSchemeRange
  1111. #define ADL_PX_SCHEMEMASK_FIXED 0x0001
  1112. #define ADL_PX_SCHEMEMASK_DYNAMIC 0x0002
  1113. /// PX Schemes
  1114. typedef enum _ADLPXScheme
  1115. {
  1116. ADL_PX_SCHEME_INVALID = 0,
  1117. ADL_PX_SCHEME_FIXED = ADL_PX_SCHEMEMASK_FIXED,
  1118. ADL_PX_SCHEME_DYNAMIC = ADL_PX_SCHEMEMASK_DYNAMIC
  1119. }ADLPXScheme;
  1120. /// Just keep the old definitions for compatibility, need to be removed later
  1121. typedef enum PXScheme
  1122. {
  1123. PX_SCHEME_INVALID = 0,
  1124. PX_SCHEME_FIXED = 1,
  1125. PX_SCHEME_DYNAMIC = 2
  1126. } PXScheme;
  1127. /// @}
  1128. ///\defgroup define_appprofiles For Application Profiles
  1129. /// @{
  1130. #define ADL_APP_PROFILE_FILENAME_LENGTH 256
  1131. #define ADL_APP_PROFILE_TIMESTAMP_LENGTH 32
  1132. #define ADL_APP_PROFILE_VERSION_LENGTH 32
  1133. #define ADL_APP_PROFILE_PROPERTY_LENGTH 64
  1134. enum ApplicationListType
  1135. {
  1136. ADL_PX40_MRU,
  1137. ADL_PX40_MISSED,
  1138. ADL_PX40_DISCRETE,
  1139. ADL_PX40_INTEGRATED,
  1140. ADL_MMD_PROFILED,
  1141. ADL_PX40_TOTAL
  1142. };
  1143. typedef enum _ADLProfilePropertyType
  1144. {
  1145. ADL_PROFILEPROPERTY_TYPE_BINARY = 0,
  1146. ADL_PROFILEPROPERTY_TYPE_BOOLEAN,
  1147. ADL_PROFILEPROPERTY_TYPE_DWORD,
  1148. ADL_PROFILEPROPERTY_TYPE_QWORD,
  1149. ADL_PROFILEPROPERTY_TYPE_ENUMERATED,
  1150. ADL_PROFILEPROPERTY_TYPE_STRING
  1151. }ADLProfilePropertyType;
  1152. /// @}
  1153. ///\defgroup define_dp12 For Display Port 1.2
  1154. /// @{
  1155. /// Maximum Relative Address Link
  1156. #define ADL_MAX_RAD_LINK_COUNT 15
  1157. /// @}
  1158. ///\defgroup defines_gamutspace Driver Supported Gamut Space
  1159. /// @{
  1160. /// The flags desribes that gamut is related to source or to destination and to overlay or to graphics
  1161. #define ADL_GAMUT_REFERENCE_SOURCE (1 << 0)
  1162. #define ADL_GAMUT_GAMUT_VIDEO_CONTENT (1 << 1)
  1163. /// The flags are used to describe the source of gamut and how read information from struct ADLGamutData
  1164. #define ADL_CUSTOM_WHITE_POINT (1 << 0)
  1165. #define ADL_CUSTOM_GAMUT (1 << 1)
  1166. #define ADL_GAMUT_REMAP_ONLY (1 << 2)
  1167. /// The define means the predefined gamut values .
  1168. ///Driver uses to find entry in the table and apply appropriate gamut space.
  1169. #define ADL_GAMUT_SPACE_CCIR_709 (1 << 0)
  1170. #define ADL_GAMUT_SPACE_CCIR_601 (1 << 1)
  1171. #define ADL_GAMUT_SPACE_ADOBE_RGB (1 << 2)
  1172. #define ADL_GAMUT_SPACE_CIE_RGB (1 << 3)
  1173. #define ADL_GAMUT_SPACE_CUSTOM (1 << 4)
  1174. #define ADL_GAMUT_SPACE_CCIR_2020 (1 << 5)
  1175. #define ADL_GAMUT_SPACE_APPCTRL (1 << 6)
  1176. /// Predefine white point values are structed similar to gamut .
  1177. #define ADL_WHITE_POINT_5000K (1 << 0)
  1178. #define ADL_WHITE_POINT_6500K (1 << 1)
  1179. #define ADL_WHITE_POINT_7500K (1 << 2)
  1180. #define ADL_WHITE_POINT_9300K (1 << 3)
  1181. #define ADL_WHITE_POINT_CUSTOM (1 << 4)
  1182. ///gamut and white point coordinates are from 0.0 -1.0 and divider is used to find the real value .
  1183. /// X float = X int /divider
  1184. #define ADL_GAMUT_WHITEPOINT_DIVIDER 10000
  1185. ///gamma a0 coefficient uses the following divider:
  1186. #define ADL_REGAMMA_COEFFICIENT_A0_DIVIDER 10000000
  1187. ///gamma a1 ,a2,a3 coefficients use the following divider:
  1188. #define ADL_REGAMMA_COEFFICIENT_A1A2A3_DIVIDER 1000
  1189. ///describes whether the coefficients are from EDID or custom user values.
  1190. #define ADL_EDID_REGAMMA_COEFFICIENTS (1 << 0)
  1191. ///Used for struct ADLRegamma. Feature if set use gamma ramp, if missing use regamma coefficents
  1192. #define ADL_USE_GAMMA_RAMP (1 << 4)
  1193. ///Used for struct ADLRegamma. If the gamma ramp flag is used then the driver could apply de gamma corretion to the supplied curve and this depends on this flag
  1194. #define ADL_APPLY_DEGAMMA (1 << 5)
  1195. ///specifies that standard SRGB gamma should be applied
  1196. #define ADL_EDID_REGAMMA_PREDEFINED_SRGB (1 << 1)
  1197. ///specifies that PQ gamma curve should be applied
  1198. #define ADL_EDID_REGAMMA_PREDEFINED_PQ (1 << 2)
  1199. ///specifies that PQ gamma curve should be applied, lower max nits
  1200. #define ADL_EDID_REGAMMA_PREDEFINED_PQ_2084_INTERIM (1 << 3)
  1201. ///specifies that 3.6 gamma should be applied
  1202. #define ADL_EDID_REGAMMA_PREDEFINED_36 (1 << 6)
  1203. ///specifies that BT709 gama should be applied
  1204. #define ADL_EDID_REGAMMA_PREDEFINED_BT709 (1 << 7)
  1205. ///specifies that regamma should be disabled, and application controls regamma content (of the whole screen)
  1206. #define ADL_EDID_REGAMMA_PREDEFINED_APPCTRL (1 << 8)
  1207. /// @}
  1208. /// \defgroup define_ddcinfo_pixelformats DDCInfo Pixel Formats
  1209. /// @{
  1210. /// defines for iPanelPixelFormat in struct ADLDDCInfo2
  1211. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_RGB656 0x00000001L
  1212. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_RGB666 0x00000002L
  1213. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_RGB888 0x00000004L
  1214. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_RGB101010 0x00000008L
  1215. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_RGB161616 0x00000010L
  1216. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_RGB_RESERVED1 0x00000020L
  1217. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_RGB_RESERVED2 0x00000040L
  1218. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_RGB_RESERVED3 0x00000080L
  1219. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_XRGB_BIAS101010 0x00000100L
  1220. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_YCBCR444_8BPCC 0x00000200L
  1221. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_YCBCR444_10BPCC 0x00000400L
  1222. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_YCBCR444_12BPCC 0x00000800L
  1223. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_YCBCR422_8BPCC 0x00001000L
  1224. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_YCBCR422_10BPCC 0x00002000L
  1225. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_YCBCR422_12BPCC 0x00004000L
  1226. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_YCBCR420_8BPCC 0x00008000L
  1227. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_YCBCR420_10BPCC 0x00010000L
  1228. #define ADL_DISPLAY_DDCINFO_PIXEL_FORMAT_YCBCR420_12BPCC 0x00020000L
  1229. /// @}
  1230. /// \defgroup define_source_content_TF ADLSourceContentAttributes transfer functions (gamma)
  1231. /// @{
  1232. /// defines for iTransferFunction in ADLSourceContentAttributes
  1233. #define ADL_TF_sRGB 0x0001 ///< sRGB
  1234. #define ADL_TF_BT709 0x0002 ///< BT.709
  1235. #define ADL_TF_PQ2084 0x0004 ///< PQ2084
  1236. #define ADL_TF_PQ2084_INTERIM 0x0008 ///< PQ2084-Interim
  1237. #define ADL_TF_LINEAR_0_1 0x0010 ///< Linear 0 - 1
  1238. #define ADL_TF_LINEAR_0_125 0x0020 ///< Linear 0 - 125
  1239. #define ADL_TF_DOLBYVISION 0x0040 ///< DolbyVision
  1240. #define ADL_TF_GAMMA_22 0x0080 ///< Plain 2.2 gamma curve
  1241. /// @}
  1242. /// \defgroup define_source_content_CS ADLSourceContentAttributes color spaces
  1243. /// @{
  1244. /// defines for iColorSpace in ADLSourceContentAttributes
  1245. #define ADL_CS_sRGB 0x0001 ///< sRGB
  1246. #define ADL_CS_BT601 0x0002 ///< BT.601
  1247. #define ADL_CS_BT709 0x0004 ///< BT.709
  1248. #define ADL_CS_BT2020 0x0008 ///< BT.2020
  1249. #define ADL_CS_ADOBE 0x0010 ///< Adobe RGB
  1250. #define ADL_CS_P3 0x0020 ///< DCI-P3
  1251. #define ADL_CS_scRGB_MS_REF 0x0040 ///< scRGB (MS Reference)
  1252. #define ADL_CS_DISPLAY_NATIVE 0x0080 ///< Display Native
  1253. #define ADL_CS_APP_CONTROL 0x0100 ///< Application Controlled
  1254. #define ADL_CS_DOLBYVISION 0x0200 ///< DolbyVision
  1255. /// @}
  1256. /// \defgroup define_HDR_support ADLDDCInfo2 HDR support options
  1257. /// @{
  1258. /// defines for iSupportedHDR in ADLDDCInfo2
  1259. #define ADL_HDR_CEA861_3 0x0001 ///< HDR10/CEA861.3 HDR supported
  1260. #define ADL_HDR_DOLBYVISION 0x0002 ///< DolbyVision HDR supported
  1261. #define ADL_HDR_FREESYNC_HDR 0x0004 ///< FreeSync HDR supported
  1262. /// @}
  1263. /// \defgroup define_FreesyncFlags ADLDDCInfo2 Freesync HDR flags
  1264. /// @{
  1265. /// defines for iFreesyncFlags in ADLDDCInfo2
  1266. #define ADL_HDR_FREESYNC_BACKLIGHT_SUPPORT 0x0001 ///< Global backlight control supported
  1267. #define ADL_HDR_FREESYNC_LOCAL_DIMMING 0x0002 ///< Local dimming supported
  1268. /// @}
  1269. /// \defgroup define_source_content_flags ADLSourceContentAttributes flags
  1270. /// @{
  1271. /// defines for iFlags in ADLSourceContentAttributes
  1272. #define ADL_SCA_LOCAL_DIMMING_DISABLE 0x0001 ///< Disable local dimming
  1273. /// @}
  1274. /// \defgroup define_dbd_state Deep Bit Depth
  1275. /// @{
  1276. /// defines for ADL_Workstation_DeepBitDepth_Get and ADL_Workstation_DeepBitDepth_Set functions
  1277. // This value indicates that the deep bit depth state is forced off
  1278. #define ADL_DEEPBITDEPTH_FORCEOFF 0
  1279. /// This value indicates that the deep bit depth state is set to auto, the driver will automatically enable the
  1280. /// appropriate deep bit depth state depending on what connected display supports.
  1281. #define ADL_DEEPBITDEPTH_10BPP_AUTO 1
  1282. /// This value indicates that the deep bit depth state is forced on to 10 bits per pixel, this is regardless if the display
  1283. /// supports 10 bpp.
  1284. #define ADL_DEEPBITDEPTH_10BPP_FORCEON 2
  1285. /// defines for ADLAdapterConfigMemory of ADL_Adapter_ConfigMemory_Get
  1286. /// If this bit is set, it indicates that the Deep Bit Depth pixel is set on the display
  1287. #define ADL_ADAPTER_CONFIGMEMORY_DBD (1 << 0)
  1288. /// If this bit is set, it indicates that the display is rotated (90, 180 or 270)
  1289. #define ADL_ADAPTER_CONFIGMEMORY_ROTATE (1 << 1)
  1290. /// If this bit is set, it indicates that passive stereo is set on the display
  1291. #define ADL_ADAPTER_CONFIGMEMORY_STEREO_PASSIVE (1 << 2)
  1292. /// If this bit is set, it indicates that the active stereo is set on the display
  1293. #define ADL_ADAPTER_CONFIGMEMORY_STEREO_ACTIVE (1 << 3)
  1294. /// If this bit is set, it indicates that the tear free vsync is set on the display
  1295. #define ADL_ADAPTER_CONFIGMEMORY_ENHANCEDVSYNC (1 << 4)
  1296. #define ADL_ADAPTER_CONFIGMEMORY_TEARFREEVSYNC (1 << 4)
  1297. /// @}
  1298. /// \defgroup define_adl_validmemoryrequiredfields Memory Type
  1299. /// @{
  1300. /// This group defines memory types in ADLMemoryRequired struct \n
  1301. /// Indicates that this is the visible memory
  1302. #define ADL_MEMORYREQTYPE_VISIBLE (1 << 0)
  1303. /// Indicates that this is the invisible memory.
  1304. #define ADL_MEMORYREQTYPE_INVISIBLE (1 << 1)
  1305. /// Indicates that this is amount of visible memory per GPU that should be reserved for all other allocations.
  1306. #define ADL_MEMORYREQTYPE_GPURESERVEDVISIBLE (1 << 2)
  1307. /// @}
  1308. /// \defgroup define_adapter_tear_free_status
  1309. /// Used in ADL_Adapter_TEAR_FREE_Set and ADL_Adapter_TFD_Get functions to indicate the tear free
  1310. /// desktop status.
  1311. /// @{
  1312. /// Tear free desktop is enabled.
  1313. #define ADL_ADAPTER_TEAR_FREE_ON 1
  1314. /// Tear free desktop can't be enabled due to a lack of graphic adapter memory.
  1315. #define ADL_ADAPTER_TEAR_FREE_NOTENOUGHMEM -1
  1316. /// Tear free desktop can't be enabled due to quad buffer stereo being enabled.
  1317. #define ADL_ADAPTER_TEAR_FREE_OFF_ERR_QUADBUFFERSTEREO -2
  1318. /// Tear free desktop can't be enabled due to MGPU-SLS being enabled.
  1319. #define ADL_ADAPTER_TEAR_FREE_OFF_ERR_MGPUSLD -3
  1320. /// Tear free desktop is disabled.
  1321. #define ADL_ADAPTER_TEAR_FREE_OFF 0
  1322. /// @}
  1323. /// \defgroup define_adapter_crossdisplay_platforminfo
  1324. /// Used in ADL_Adapter_CrossDisplayPlatformInfo_Get function to indicate the Crossdisplay platform info.
  1325. /// @{
  1326. /// CROSSDISPLAY platform.
  1327. #define ADL_CROSSDISPLAY_PLATFORM (1 << 0)
  1328. /// CROSSDISPLAY platform for Lasso station.
  1329. #define ADL_CROSSDISPLAY_PLATFORM_LASSO (1 << 1)
  1330. /// CROSSDISPLAY platform for docking station.
  1331. #define ADL_CROSSDISPLAY_PLATFORM_DOCKSTATION (1 << 2)
  1332. /// @}
  1333. /// \defgroup define_adapter_crossdisplay_option
  1334. /// Used in ADL_Adapter_CrossdisplayInfoX2_Set function to indicate cross display options.
  1335. /// @{
  1336. /// Checking if 3D application is runnning. If yes, not to do switch, return ADL_OK_WAIT; otherwise do switch.
  1337. #define ADL_CROSSDISPLAY_OPTION_NONE 0
  1338. /// Force switching without checking for running 3D applications
  1339. #define ADL_CROSSDISPLAY_OPTION_FORCESWITCH (1 << 0)
  1340. /// @}
  1341. /// \defgroup define_adapter_states Adapter Capabilities
  1342. /// These defines the capabilities supported by an adapter. It is used by \ref ADL_Adapter_ConfigureState_Get
  1343. /// @{
  1344. /// Indicates that the adapter is headless (i.e. no displays can be connected to it)
  1345. #define ADL_ADAPTERCONFIGSTATE_HEADLESS ( 1 << 2 )
  1346. /// Indicates that the adapter is configured to define the main rendering capabilities. For example, adapters
  1347. /// in Crossfire(TM) configuration, this bit would only be set on the adapter driving the display(s).
  1348. #define ADL_ADAPTERCONFIGSTATE_REQUISITE_RENDER ( 1 << 0 )
  1349. /// Indicates that the adapter is configured to be used to unload some of the rendering work for a particular
  1350. /// requisite rendering adapter. For eample, for adapters in a Crossfire configuration, this bit would be set
  1351. /// on all adapters that are currently not driving the display(s)
  1352. #define ADL_ADAPTERCONFIGSTATE_ANCILLARY_RENDER ( 1 << 1 )
  1353. /// Indicates that scatter gather feature enabled on the adapter
  1354. #define ADL_ADAPTERCONFIGSTATE_SCATTERGATHER ( 1 << 4 )
  1355. /// @}
  1356. /// \defgroup define_controllermode_ulModifiers
  1357. /// These defines the detailed actions supported by set viewport. It is used by \ref ADL_Display_ViewPort_Set
  1358. /// @{
  1359. /// Indicate that the viewport set will change the view position
  1360. #define ADL_CONTROLLERMODE_CM_MODIFIER_VIEW_POSITION 0x00000001
  1361. /// Indicate that the viewport set will change the view PanLock
  1362. #define ADL_CONTROLLERMODE_CM_MODIFIER_VIEW_PANLOCK 0x00000002
  1363. /// Indicate that the viewport set will change the view size
  1364. #define ADL_CONTROLLERMODE_CM_MODIFIER_VIEW_SIZE 0x00000008
  1365. /// @}
  1366. /// \defgroup defines for Mirabilis
  1367. /// These defines are used for the Mirabilis feature
  1368. /// @{
  1369. ///
  1370. /// Indicates the maximum number of audio sample rates
  1371. #define ADL_MAX_AUDIO_SAMPLE_RATE_COUNT 16
  1372. /// @}
  1373. ///////////////////////////////////////////////////////////////////////////
  1374. // ADLMultiChannelSplitStateFlag Enumeration
  1375. ///////////////////////////////////////////////////////////////////////////
  1376. enum ADLMultiChannelSplitStateFlag
  1377. {
  1378. ADLMultiChannelSplit_Unitialized = 0,
  1379. ADLMultiChannelSplit_Disabled = 1,
  1380. ADLMultiChannelSplit_Enabled = 2,
  1381. ADLMultiChannelSplit_SaveProfile = 3
  1382. };
  1383. ///////////////////////////////////////////////////////////////////////////
  1384. // ADLSampleRate Enumeration
  1385. ///////////////////////////////////////////////////////////////////////////
  1386. enum ADLSampleRate
  1387. {
  1388. ADLSampleRate_32KHz =0,
  1389. ADLSampleRate_44P1KHz,
  1390. ADLSampleRate_48KHz,
  1391. ADLSampleRate_88P2KHz,
  1392. ADLSampleRate_96KHz,
  1393. ADLSampleRate_176P4KHz,
  1394. ADLSampleRate_192KHz,
  1395. ADLSampleRate_384KHz, //DP1.2
  1396. ADLSampleRate_768KHz, //DP1.2
  1397. ADLSampleRate_Undefined
  1398. };
  1399. /// \defgroup define_overdrive6_capabilities
  1400. /// These defines the capabilities supported by Overdrive 6. It is used by \ref ADL_Overdrive6_Capabilities_Get
  1401. // @{
  1402. /// Indicate that core (engine) clock can be changed.
  1403. #define ADL_OD6_CAPABILITY_SCLK_CUSTOMIZATION 0x00000001
  1404. /// Indicate that memory clock can be changed.
  1405. #define ADL_OD6_CAPABILITY_MCLK_CUSTOMIZATION 0x00000002
  1406. /// Indicate that graphics activity reporting is supported.
  1407. #define ADL_OD6_CAPABILITY_GPU_ACTIVITY_MONITOR 0x00000004
  1408. /// Indicate that power limit can be customized.
  1409. #define ADL_OD6_CAPABILITY_POWER_CONTROL 0x00000008
  1410. /// Indicate that SVI2 Voltage Control is supported.
  1411. #define ADL_OD6_CAPABILITY_VOLTAGE_CONTROL 0x00000010
  1412. /// Indicate that OD6+ percentage adjustment is supported.
  1413. #define ADL_OD6_CAPABILITY_PERCENT_ADJUSTMENT 0x00000020
  1414. /// Indicate that Thermal Limit Unlock is supported.
  1415. #define ADL_OD6_CAPABILITY_THERMAL_LIMIT_UNLOCK 0x00000040
  1416. ///Indicate that Fan speed needs to be displayed in RPM
  1417. #define ADL_OD6_CAPABILITY_FANSPEED_IN_RPM 0x00000080
  1418. // @}
  1419. /// \defgroup define_overdrive6_supported_states
  1420. /// These defines the power states supported by Overdrive 6. It is used by \ref ADL_Overdrive6_Capabilities_Get
  1421. // @{
  1422. /// Indicate that overdrive is supported in the performance state. This is currently the only state supported.
  1423. #define ADL_OD6_SUPPORTEDSTATE_PERFORMANCE 0x00000001
  1424. /// Do not use. Reserved for future use.
  1425. #define ADL_OD6_SUPPORTEDSTATE_POWER_SAVING 0x00000002
  1426. // @}
  1427. /// \defgroup define_overdrive6_getstateinfo
  1428. /// These defines the power states to get information about. It is used by \ref ADL_Overdrive6_StateInfo_Get
  1429. // @{
  1430. /// Get default clocks for the performance state.
  1431. #define ADL_OD6_GETSTATEINFO_DEFAULT_PERFORMANCE 0x00000001
  1432. /// Do not use. Reserved for future use.
  1433. #define ADL_OD6_GETSTATEINFO_DEFAULT_POWER_SAVING 0x00000002
  1434. /// Get clocks for current state. Currently this is the same as \ref ADL_OD6_GETSTATEINFO_CUSTOM_PERFORMANCE
  1435. /// since only performance state is supported.
  1436. #define ADL_OD6_GETSTATEINFO_CURRENT 0x00000003
  1437. /// Get the modified clocks (if any) for the performance state. If clocks were not modified
  1438. /// through Overdrive 6, then this will return the same clocks as \ref ADL_OD6_GETSTATEINFO_DEFAULT_PERFORMANCE.
  1439. #define ADL_OD6_GETSTATEINFO_CUSTOM_PERFORMANCE 0x00000004
  1440. /// Do not use. Reserved for future use.
  1441. #define ADL_OD6_GETSTATEINFO_CUSTOM_POWER_SAVING 0x00000005
  1442. // @}
  1443. /// \defgroup define_overdrive6_getstate and define_overdrive6_getmaxclockadjust
  1444. /// These defines the power states to get information about. It is used by \ref ADL_Overdrive6_StateEx_Get and \ref ADL_Overdrive6_MaxClockAdjust_Get
  1445. // @{
  1446. /// Get default clocks for the performance state. Only performance state is currently supported.
  1447. #define ADL_OD6_STATE_PERFORMANCE 0x00000001
  1448. // @}
  1449. /// \defgroup define_overdrive6_setstate
  1450. /// These define which power state to set customized clocks on. It is used by \ref ADL_Overdrive6_State_Set
  1451. // @{
  1452. /// Set customized clocks for the performance state.
  1453. #define ADL_OD6_SETSTATE_PERFORMANCE 0x00000001
  1454. /// Do not use. Reserved for future use.
  1455. #define ADL_OD6_SETSTATE_POWER_SAVING 0x00000002
  1456. // @}
  1457. /// \defgroup define_overdrive6_thermalcontroller_caps
  1458. /// These defines the capabilities of the GPU thermal controller. It is used by \ref ADL_Overdrive6_ThermalController_Caps
  1459. // @{
  1460. /// GPU thermal controller is supported.
  1461. #define ADL_OD6_TCCAPS_THERMAL_CONTROLLER 0x00000001
  1462. /// GPU fan speed control is supported.
  1463. #define ADL_OD6_TCCAPS_FANSPEED_CONTROL 0x00000002
  1464. /// Fan speed percentage can be read.
  1465. #define ADL_OD6_TCCAPS_FANSPEED_PERCENT_READ 0x00000100
  1466. /// Fan speed can be set by specifying a percentage value.
  1467. #define ADL_OD6_TCCAPS_FANSPEED_PERCENT_WRITE 0x00000200
  1468. /// Fan speed RPM (revolutions-per-minute) can be read.
  1469. #define ADL_OD6_TCCAPS_FANSPEED_RPM_READ 0x00000400
  1470. /// Fan speed can be set by specifying an RPM value.
  1471. #define ADL_OD6_TCCAPS_FANSPEED_RPM_WRITE 0x00000800
  1472. // @}
  1473. /// \defgroup define_overdrive6_fanspeed_type
  1474. /// These defines the fan speed type being reported. It is used by \ref ADL_Overdrive6_FanSpeed_Get
  1475. // @{
  1476. /// Fan speed reported in percentage.
  1477. #define ADL_OD6_FANSPEED_TYPE_PERCENT 0x00000001
  1478. /// Fan speed reported in RPM.
  1479. #define ADL_OD6_FANSPEED_TYPE_RPM 0x00000002
  1480. /// Fan speed has been customized by the user, and fan is not running in automatic mode.
  1481. #define ADL_OD6_FANSPEED_USER_DEFINED 0x00000100
  1482. // @}
  1483. /// \defgroup define_overdrive_EventCounter_type
  1484. /// These defines the EventCounter type being reported. It is used by \ref ADL2_OverdriveN_CountOfEvents_Get ,can be used on older OD version supported ASICs also.
  1485. // @{
  1486. #define ADL_ODN_EVENTCOUNTER_THERMAL 0
  1487. #define ADL_ODN_EVENTCOUNTER_VPURECOVERY 1
  1488. // @}
  1489. ///////////////////////////////////////////////////////////////////////////
  1490. // ADLODNControlType Enumeration
  1491. ///////////////////////////////////////////////////////////////////////////
  1492. enum ADLODNControlType
  1493. {
  1494. ODNControlType_Current = 0,
  1495. ODNControlType_Default,
  1496. ODNControlType_Auto,
  1497. ODNControlType_Manual
  1498. };
  1499. enum ADLODNDPMMaskType
  1500. {
  1501. ADL_ODN_DPM_CLOCK = 1 << 0,
  1502. ADL_ODN_DPM_VDDC = 1 << 1,
  1503. ADL_ODN_DPM_MASK = 1 << 2,
  1504. };
  1505. //ODN features Bits for ADLODNCapabilitiesX2
  1506. enum ADLODNFeatureControl
  1507. {
  1508. ADL_ODN_SCLK_DPM = 1 << 0,
  1509. ADL_ODN_MCLK_DPM = 1 << 1,
  1510. ADL_ODN_SCLK_VDD = 1 << 2,
  1511. ADL_ODN_MCLK_VDD = 1 << 3,
  1512. ADL_ODN_FAN_SPEED_MIN = 1 << 4,
  1513. ADL_ODN_FAN_SPEED_TARGET = 1 << 5,
  1514. ADL_ODN_ACOUSTIC_LIMIT_SCLK = 1 << 6,
  1515. ADL_ODN_TEMPERATURE_FAN_MAX = 1 << 7,
  1516. ADL_ODN_TEMPERATURE_SYSTEM = 1 << 8,
  1517. ADL_ODN_POWER_LIMIT = 1 << 9,
  1518. ADL_ODN_SCLK_AUTO_LIMIT = 1 << 10,
  1519. ADL_ODN_MCLK_AUTO_LIMIT = 1 << 11,
  1520. ADL_ODN_SCLK_DPM_MASK_ENABLE = 1 << 12,
  1521. ADL_ODN_MCLK_DPM_MASK_ENABLE = 1 << 13,
  1522. ADL_ODN_MCLK_UNDERCLOCK_ENABLE = 1 << 14,
  1523. ADL_ODN_SCLK_DPM_THROTTLE_NOTIFY = 1 << 15,
  1524. ADL_ODN_POWER_UTILIZATION = 1 << 16,
  1525. ADL_ODN_PERF_TUNING_SLIDER = 1 << 17,
  1526. ADL_ODN_REMOVE_WATTMAN_PAGE = 1 << 31 // Internal Only
  1527. };
  1528. //If any new feature is added, PPLIB only needs to add ext feature ID and Item ID(Seeting ID). These IDs should match the drive defined in CWDDEPM.h
  1529. enum ADLODNExtFeatureControl
  1530. {
  1531. ADL_ODN_EXT_FEATURE_MEMORY_TIMING_TUNE = 1 << 0,
  1532. ADL_ODN_EXT_FEATURE_FAN_ZERO_RPM_CONTROL = 1 << 1,
  1533. ADL_ODN_EXT_FEATURE_AUTO_UV_ENGINE = 1 << 2, //Auto under voltage
  1534. ADL_ODN_EXT_FEATURE_AUTO_OC_ENGINE = 1 << 3, //Auto OC Enine
  1535. ADL_ODN_EXT_FEATURE_AUTO_OC_MEMORY = 1 << 4, //Auto OC memory
  1536. ADL_ODN_EXT_FEATURE_FAN_CURVE = 1 << 5 //Fan curve
  1537. };
  1538. //If any new feature is added, PPLIB only needs to add ext feature ID and Item ID(Seeting ID).These IDs should match the drive defined in CWDDEPM.h
  1539. enum ADLODNExtSettingId
  1540. {
  1541. ADL_ODN_PARAMETER_AC_TIMING = 0,
  1542. ADL_ODN_PARAMETER_FAN_ZERO_RPM_CONTROL,
  1543. ADL_ODN_PARAMETER_AUTO_UV_ENGINE,
  1544. ADL_ODN_PARAMETER_AUTO_OC_ENGINE,
  1545. ADL_ODN_PARAMETER_AUTO_OC_MEMORY,
  1546. ADL_ODN_PARAMETER_FAN_CURVE_TEMPERATURE_1,
  1547. ADL_ODN_PARAMETER_FAN_CURVE_SPEED_1,
  1548. ADL_ODN_PARAMETER_FAN_CURVE_TEMPERATURE_2,
  1549. ADL_ODN_PARAMETER_FAN_CURVE_SPEED_2,
  1550. ADL_ODN_PARAMETER_FAN_CURVE_TEMPERATURE_3,
  1551. ADL_ODN_PARAMETER_FAN_CURVE_SPEED_3,
  1552. ADL_ODN_PARAMETER_FAN_CURVE_TEMPERATURE_4,
  1553. ADL_ODN_PARAMETER_FAN_CURVE_SPEED_4,
  1554. ADL_ODN_PARAMETER_FAN_CURVE_TEMPERATURE_5,
  1555. ADL_ODN_PARAMETER_FAN_CURVE_SPEED_5,
  1556. ADL_ODN_POWERGAUGE,
  1557. ODN_COUNT
  1558. } ;
  1559. //OD8 Capability features bits
  1560. enum ADLOD8FeatureControl
  1561. {
  1562. ADL_OD8_GFXCLK_LIMITS = 1 << 0,
  1563. ADL_OD8_GFXCLK_CURVE = 1 << 1,
  1564. ADL_OD8_UCLK_MAX = 1 << 2,
  1565. ADL_OD8_POWER_LIMIT = 1 << 3,
  1566. ADL_OD8_ACOUSTIC_LIMIT_SCLK = 1 << 4, //FanMaximumRpm
  1567. ADL_OD8_FAN_SPEED_MIN = 1 << 5, //FanMinimumPwm
  1568. ADL_OD8_TEMPERATURE_FAN = 1 << 6, //FanTargetTemperature
  1569. ADL_OD8_TEMPERATURE_SYSTEM = 1 << 7, //MaxOpTemp
  1570. ADL_OD8_MEMORY_TIMING_TUNE = 1 << 8,
  1571. ADL_OD8_FAN_ZERO_RPM_CONTROL = 1 << 9 ,
  1572. ADL_OD8_AUTO_UV_ENGINE = 1 << 10, //Auto under voltage
  1573. ADL_OD8_AUTO_OC_ENGINE = 1 << 11, //Auto overclock engine
  1574. ADL_OD8_AUTO_OC_MEMORY = 1 << 12, //Auto overclock memory
  1575. ADL_OD8_FAN_CURVE = 1 << 13, //Fan curve
  1576. ADL_OD8_WS_AUTO_FAN_ACOUSTIC_LIMIT = 1 << 14, //Workstation Manual Fan controller
  1577. ADL_OD8_POWER_GAUGE = 1 << 15 //Power Gauge
  1578. };
  1579. typedef enum _ADLOD8SettingId
  1580. {
  1581. OD8_GFXCLK_FMAX = 0,
  1582. OD8_GFXCLK_FMIN,
  1583. OD8_GFXCLK_FREQ1,
  1584. OD8_GFXCLK_VOLTAGE1,
  1585. OD8_GFXCLK_FREQ2,
  1586. OD8_GFXCLK_VOLTAGE2,
  1587. OD8_GFXCLK_FREQ3,
  1588. OD8_GFXCLK_VOLTAGE3,
  1589. OD8_UCLK_FMAX,
  1590. OD8_POWER_PERCENTAGE,
  1591. OD8_FAN_MIN_SPEED,
  1592. OD8_FAN_ACOUSTIC_LIMIT,
  1593. OD8_FAN_TARGET_TEMP,
  1594. OD8_OPERATING_TEMP_MAX,
  1595. OD8_AC_TIMING,
  1596. OD8_FAN_ZERORPM_CONTROL,
  1597. OD8_AUTO_UV_ENGINE_CONTROL,
  1598. OD8_AUTO_OC_ENGINE_CONTROL,
  1599. OD8_AUTO_OC_MEMORY_CONTROL,
  1600. OD8_FAN_CURVE_TEMPERATURE_1,
  1601. OD8_FAN_CURVE_SPEED_1,
  1602. OD8_FAN_CURVE_TEMPERATURE_2,
  1603. OD8_FAN_CURVE_SPEED_2,
  1604. OD8_FAN_CURVE_TEMPERATURE_3,
  1605. OD8_FAN_CURVE_SPEED_3,
  1606. OD8_FAN_CURVE_TEMPERATURE_4,
  1607. OD8_FAN_CURVE_SPEED_4,
  1608. OD8_FAN_CURVE_TEMPERATURE_5,
  1609. OD8_FAN_CURVE_SPEED_5,
  1610. OD8_WS_FAN_AUTO_FAN_ACOUSTIC_LIMIT,
  1611. OD8_POWER_GAUGE, //Starting from this is new features with new capabilities and new interface for limits.
  1612. OD8_COUNT
  1613. } ADLOD8SettingId;
  1614. //Define Performance Metrics Log max sensors number
  1615. #define ADL_PMLOG_MAX_SENSORS 256
  1616. typedef enum _ADLSensorType
  1617. {
  1618. SENSOR_MAXTYPES = 0,
  1619. PMLOG_CLK_GFXCLK = 1,
  1620. PMLOG_CLK_MEMCLK = 2,
  1621. PMLOG_CLK_SOCCLK = 3,
  1622. PMLOG_CLK_UVDCLK1 = 4,
  1623. PMLOG_CLK_UVDCLK2 = 5,
  1624. PMLOG_CLK_VCECLK = 6,
  1625. PMLOG_CLK_VCNCLK = 7,
  1626. PMLOG_TEMPERATURE_EDGE = 8,
  1627. PMLOG_TEMPERATURE_MEM = 9,
  1628. PMLOG_TEMPERATURE_VRVDDC = 10,
  1629. PMLOG_TEMPERATURE_VRMVDD = 11,
  1630. PMLOG_TEMPERATURE_LIQUID = 12,
  1631. PMLOG_TEMPERATURE_PLX = 13,
  1632. PMLOG_FAN_RPM = 14,
  1633. PMLOG_FAN_PERCENTAGE = 15,
  1634. PMLOG_SOC_VOLTAGE = 16,
  1635. PMLOG_SOC_POWER = 17,
  1636. PMLOG_SOC_CURRENT = 18,
  1637. PMLOG_INFO_ACTIVITY_GFX = 19,
  1638. PMLOG_INFO_ACTIVITY_MEM = 20,
  1639. PMLOG_GFX_VOLTAGE = 21,
  1640. PMLOG_MEM_VOLTAGE = 22,
  1641. PMLOG_ASIC_POWER = 23,
  1642. PMLOG_TEMPERATURE_VRSOC = 24,
  1643. PMLOG_TEMPERATURE_VRMVDD0 = 25,
  1644. PMLOG_TEMPERATURE_VRMVDD1 = 26,
  1645. PMLOG_TEMPERATURE_HOTSPOT = 27,
  1646. PMLOG_TEMPERATURE_GFX = 28,
  1647. PMLOG_TEMPERATURE_SOC = 29,
  1648. PMLOG_GFX_POWER = 30,
  1649. PMLOG_GFX_CURRENT = 31,
  1650. PMLOG_TEMPERATURE_CPU = 32,
  1651. PMLOG_CPU_POWER = 33,
  1652. PMLOG_CLK_CPUCLK = 34,
  1653. PMLOG_THROTTLER_STATUS = 35,
  1654. PMLOG_CLK_VCN1CLK1 = 36,
  1655. PMLOG_CLK_VCN1CLK2 = 37,
  1656. PMLOG_SMART_POWERSHIFT_CPU = 38,
  1657. PMLOG_SMART_POWERSHIFT_DGPU = 39,
  1658. PMLOG_MAX_SENSORS_REAL
  1659. } ADLSensorType;
  1660. //Throttle Status
  1661. typedef enum _ADL_THROTTLE_NOTIFICATION
  1662. {
  1663. ADL_PMLOG_THROTTLE_POWER = 1 << 0,
  1664. ADL_PMLOG_THROTTLE_THERMAL = 1 << 1,
  1665. ADL_PMLOG_THROTTLE_CURRENT = 1 << 2,
  1666. } ADL_THROTTLE_NOTIFICATION;
  1667. typedef enum _ADL_PMLOG_SENSORS
  1668. {
  1669. ADL_SENSOR_MAXTYPES = 0,
  1670. ADL_PMLOG_CLK_GFXCLK = 1,
  1671. ADL_PMLOG_CLK_MEMCLK = 2,
  1672. ADL_PMLOG_CLK_SOCCLK = 3,
  1673. ADL_PMLOG_CLK_UVDCLK1 = 4,
  1674. ADL_PMLOG_CLK_UVDCLK2 = 5,
  1675. ADL_PMLOG_CLK_VCECLK = 6,
  1676. ADL_PMLOG_CLK_VCNCLK = 7,
  1677. ADL_PMLOG_TEMPERATURE_EDGE = 8,
  1678. ADL_PMLOG_TEMPERATURE_MEM = 9,
  1679. ADL_PMLOG_TEMPERATURE_VRVDDC = 10,
  1680. ADL_PMLOG_TEMPERATURE_VRMVDD = 11,
  1681. ADL_PMLOG_TEMPERATURE_LIQUID = 12,
  1682. ADL_PMLOG_TEMPERATURE_PLX = 13,
  1683. ADL_PMLOG_FAN_RPM = 14,
  1684. ADL_PMLOG_FAN_PERCENTAGE = 15,
  1685. ADL_PMLOG_SOC_VOLTAGE = 16,
  1686. ADL_PMLOG_SOC_POWER = 17,
  1687. ADL_PMLOG_SOC_CURRENT = 18,
  1688. ADL_PMLOG_INFO_ACTIVITY_GFX = 19,
  1689. ADL_PMLOG_INFO_ACTIVITY_MEM = 20,
  1690. ADL_PMLOG_GFX_VOLTAGE = 21,
  1691. ADL_PMLOG_MEM_VOLTAGE = 22,
  1692. ADL_PMLOG_ASIC_POWER = 23,
  1693. ADL_PMLOG_TEMPERATURE_VRSOC = 24,
  1694. ADL_PMLOG_TEMPERATURE_VRMVDD0 = 25,
  1695. ADL_PMLOG_TEMPERATURE_VRMVDD1 = 26,
  1696. ADL_PMLOG_TEMPERATURE_HOTSPOT = 27,
  1697. ADL_PMLOG_TEMPERATURE_GFX = 28,
  1698. ADL_PMLOG_TEMPERATURE_SOC = 29,
  1699. ADL_PMLOG_GFX_POWER = 30,
  1700. ADL_PMLOG_GFX_CURRENT = 31,
  1701. ADL_PMLOG_TEMPERATURE_CPU = 32,
  1702. ADL_PMLOG_CPU_POWER = 33,
  1703. ADL_PMLOG_CLK_CPUCLK = 34,
  1704. ADL_PMLOG_THROTTLER_STATUS = 35,
  1705. ADL_PMLOG_CLK_VCN1CLK1 = 36,
  1706. ADL_PMLOG_CLK_VCN1CLK2 = 37,
  1707. ADL_PMLOG_SMART_POWERSHIFT_CPU = 38,
  1708. ADL_PMLOG_SMART_POWERSHIFT_DGPU = 39
  1709. } ADL_PMLOG_SENSORS;
  1710. /// \defgroup define_ecc_mode_states
  1711. /// These defines the ECC(Error Correction Code) state. It is used by \ref ADL_Workstation_ECC_Get,ADL_Workstation_ECC_Set
  1712. // @{
  1713. /// Error Correction is OFF.
  1714. #define ECC_MODE_OFF 0
  1715. /// Error Correction is ECCV2.
  1716. #define ECC_MODE_ON 2
  1717. /// Error Correction is HBM.
  1718. #define ECC_MODE_HBM 3
  1719. // @}
  1720. /// \defgroup define_board_layout_flags
  1721. /// These defines are the board layout flags state which indicates what are the valid properties of \ref ADLBoardLayoutInfo . It is used by \ref ADL_Adapter_BoardLayout_Get
  1722. // @{
  1723. /// Indicates the number of slots is valid.
  1724. #define ADL_BLAYOUT_VALID_NUMBER_OF_SLOTS 0x1
  1725. /// Indicates the slot sizes are valid. Size of the slot consists of the length and width.
  1726. #define ADL_BLAYOUT_VALID_SLOT_SIZES 0x2
  1727. /// Indicates the connector offsets are valid.
  1728. #define ADL_BLAYOUT_VALID_CONNECTOR_OFFSETS 0x4
  1729. /// Indicates the connector lengths is valid.
  1730. #define ADL_BLAYOUT_VALID_CONNECTOR_LENGTHS 0x8
  1731. // @}
  1732. /// \defgroup define_max_constants
  1733. /// These defines are the maximum value constants.
  1734. // @{
  1735. /// Indicates the Maximum supported slots on board.
  1736. #define ADL_ADAPTER_MAX_SLOTS 4
  1737. /// Indicates the Maximum supported connectors on slot.
  1738. #define ADL_ADAPTER_MAX_CONNECTORS 10
  1739. /// Indicates the Maximum supported properties of connection
  1740. #define ADL_MAX_CONNECTION_TYPES 32
  1741. /// Indicates the Maximum relative address link count.
  1742. #define ADL_MAX_RELATIVE_ADDRESS_LINK_COUNT 15
  1743. /// Indicates the Maximum size of EDID data block size
  1744. #define ADL_MAX_DISPLAY_EDID_DATA_SIZE 1024
  1745. /// Indicates the Maximum count of Error Records.
  1746. #define ADL_MAX_ERROR_RECORDS_COUNT 256
  1747. /// Indicates the maximum number of power states supported
  1748. #define ADL_MAX_POWER_POLICY 6
  1749. // @}
  1750. /// \defgroup define_connection_types
  1751. /// These defines are the connection types constants which indicates what are the valid connection type of given connector. It is used by \ref ADL_Adapter_SupportedConnections_Get
  1752. // @{
  1753. /// Indicates the VGA connection type is valid.
  1754. #define ADL_CONNECTION_TYPE_VGA 0
  1755. /// Indicates the DVI_I connection type is valid.
  1756. #define ADL_CONNECTION_TYPE_DVI 1
  1757. /// Indicates the DVI_SL connection type is valid.
  1758. #define ADL_CONNECTION_TYPE_DVI_SL 2
  1759. /// Indicates the HDMI connection type is valid.
  1760. #define ADL_CONNECTION_TYPE_HDMI 3
  1761. /// Indicates the DISPLAY PORT connection type is valid.
  1762. #define ADL_CONNECTION_TYPE_DISPLAY_PORT 4
  1763. /// Indicates the Active dongle DP->DVI(single link) connection type is valid.
  1764. #define ADL_CONNECTION_TYPE_ACTIVE_DONGLE_DP_DVI_SL 5
  1765. /// Indicates the Active dongle DP->DVI(double link) connection type is valid.
  1766. #define ADL_CONNECTION_TYPE_ACTIVE_DONGLE_DP_DVI_DL 6
  1767. /// Indicates the Active dongle DP->HDMI connection type is valid.
  1768. #define ADL_CONNECTION_TYPE_ACTIVE_DONGLE_DP_HDMI 7
  1769. /// Indicates the Active dongle DP->VGA connection type is valid.
  1770. #define ADL_CONNECTION_TYPE_ACTIVE_DONGLE_DP_VGA 8
  1771. /// Indicates the Passive dongle DP->HDMI connection type is valid.
  1772. #define ADL_CONNECTION_TYPE_PASSIVE_DONGLE_DP_HDMI 9
  1773. /// Indicates the Active dongle DP->VGA connection type is valid.
  1774. #define ADL_CONNECTION_TYPE_PASSIVE_DONGLE_DP_DVI 10
  1775. /// Indicates the MST type is valid.
  1776. #define ADL_CONNECTION_TYPE_MST 11
  1777. /// Indicates the active dongle, all types.
  1778. #define ADL_CONNECTION_TYPE_ACTIVE_DONGLE 12
  1779. /// Indicates the Virtual Connection Type.
  1780. #define ADL_CONNECTION_TYPE_VIRTUAL 13
  1781. /// Macros for generating bitmask from index.
  1782. #define ADL_CONNECTION_BITMAST_FROM_INDEX(index) (1 << index)
  1783. // @}
  1784. /// \defgroup define_connection_properties
  1785. /// These defines are the connection properties which indicates what are the valid properties of given connection type. It is used by \ref ADL_Adapter_SupportedConnections_Get
  1786. // @{
  1787. /// Indicates the property Bitrate is valid.
  1788. #define ADL_CONNECTION_PROPERTY_BITRATE 0x1
  1789. /// Indicates the property number of lanes is valid.
  1790. #define ADL_CONNECTION_PROPERTY_NUMBER_OF_LANES 0x2
  1791. /// Indicates the property 3D caps is valid.
  1792. #define ADL_CONNECTION_PROPERTY_3DCAPS 0x4
  1793. /// Indicates the property output bandwidth is valid.
  1794. #define ADL_CONNECTION_PROPERTY_OUTPUT_BANDWIDTH 0x8
  1795. /// Indicates the property colordepth is valid.
  1796. #define ADL_CONNECTION_PROPERTY_COLORDEPTH 0x10
  1797. // @}
  1798. /// \defgroup define_lanecount_constants
  1799. /// These defines are the Lane count constants which will be used in DP & etc.
  1800. // @{
  1801. /// Indicates if lane count is unknown
  1802. #define ADL_LANECOUNT_UNKNOWN 0
  1803. /// Indicates if lane count is 1
  1804. #define ADL_LANECOUNT_ONE 1
  1805. /// Indicates if lane count is 2
  1806. #define ADL_LANECOUNT_TWO 2
  1807. /// Indicates if lane count is 4
  1808. #define ADL_LANECOUNT_FOUR 4
  1809. /// Indicates if lane count is 8
  1810. #define ADL_LANECOUNT_EIGHT 8
  1811. /// Indicates default value of lane count
  1812. #define ADL_LANECOUNT_DEF ADL_LANECOUNT_FOUR
  1813. // @}
  1814. /// \defgroup define_linkrate_constants
  1815. /// These defines are the link rate constants which will be used in DP & etc.
  1816. // @{
  1817. /// Indicates if link rate is unknown
  1818. #define ADL_LINK_BITRATE_UNKNOWN 0
  1819. /// Indicates if link rate is 1.62Ghz
  1820. #define ADL_LINK_BITRATE_1_62_GHZ 0x06
  1821. /// Indicates if link rate is 2.7Ghz
  1822. #define ADL_LINK_BITRATE_2_7_GHZ 0x0A
  1823. /// Indicates if link rate is 5.4Ghz
  1824. #define ADL_LINK_BITRATE_5_4_GHZ 0x14
  1825. /// Indicates if link rate is 8.1Ghz
  1826. #define ADL_LINK_BITRATE_8_1_GHZ 0x1E
  1827. /// Indicates default value of link rate
  1828. #define ADL_LINK_BITRATE_DEF ADL_LINK_BITRATE_2_7_GHZ
  1829. // @}
  1830. /// \defgroup define_colordepth_constants
  1831. /// These defines are the color depth constants which will be used in DP & etc.
  1832. // @{
  1833. #define ADL_CONNPROP_S3D_ALTERNATE_TO_FRAME_PACK 0x00000001
  1834. // @}
  1835. /// \defgroup define_colordepth_constants
  1836. /// These defines are the color depth constants which will be used in DP & etc.
  1837. // @{
  1838. /// Indicates if color depth is unknown
  1839. #define ADL_COLORDEPTH_UNKNOWN 0
  1840. /// Indicates if color depth is 666
  1841. #define ADL_COLORDEPTH_666 1
  1842. /// Indicates if color depth is 888
  1843. #define ADL_COLORDEPTH_888 2
  1844. /// Indicates if color depth is 101010
  1845. #define ADL_COLORDEPTH_101010 3
  1846. /// Indicates if color depth is 121212
  1847. #define ADL_COLORDEPTH_121212 4
  1848. /// Indicates if color depth is 141414
  1849. #define ADL_COLORDEPTH_141414 5
  1850. /// Indicates if color depth is 161616
  1851. #define ADL_COLORDEPTH_161616 6
  1852. /// Indicates default value of color depth
  1853. #define ADL_COLOR_DEPTH_DEF ADL_COLORDEPTH_888
  1854. // @}
  1855. /// \defgroup define_emulation_status
  1856. /// These defines are the status of emulation
  1857. // @{
  1858. /// Indicates if real device is connected.
  1859. #define ADL_EMUL_STATUS_REAL_DEVICE_CONNECTED 0x1
  1860. /// Indicates if emulated device is presented.
  1861. #define ADL_EMUL_STATUS_EMULATED_DEVICE_PRESENT 0x2
  1862. /// Indicates if emulated device is used.
  1863. #define ADL_EMUL_STATUS_EMULATED_DEVICE_USED 0x4
  1864. /// In case when last active real/emulated device used (when persistence is enabled but no emulation enforced then persistence will use last connected/emulated device).
  1865. #define ADL_EMUL_STATUS_LAST_ACTIVE_DEVICE_USED 0x8
  1866. // @}
  1867. /// \defgroup define_emulation_mode
  1868. /// These defines are the modes of emulation
  1869. // @{
  1870. /// Indicates if no emulation is used
  1871. #define ADL_EMUL_MODE_OFF 0
  1872. /// Indicates if emulation is used when display connected
  1873. #define ADL_EMUL_MODE_ON_CONNECTED 1
  1874. /// Indicates if emulation is used when display dis connected
  1875. #define ADL_EMUL_MODE_ON_DISCONNECTED 2
  1876. /// Indicates if emulation is used always
  1877. #define ADL_EMUL_MODE_ALWAYS 3
  1878. // @}
  1879. /// \defgroup define_emulation_query
  1880. /// These defines are the modes of emulation
  1881. // @{
  1882. /// Indicates Data from real device
  1883. #define ADL_QUERY_REAL_DATA 0
  1884. /// Indicates Emulated data
  1885. #define ADL_QUERY_EMULATED_DATA 1
  1886. /// Indicates Data currently in use
  1887. #define ADL_QUERY_CURRENT_DATA 2
  1888. // @}
  1889. /// \defgroup define_persistence_state
  1890. /// These defines are the states of persistence
  1891. // @{
  1892. /// Indicates persistence is disabled
  1893. #define ADL_EDID_PERSISTANCE_DISABLED 0
  1894. /// Indicates persistence is enabled
  1895. #define ADL_EDID_PERSISTANCE_ENABLED 1
  1896. // @}
  1897. /// \defgroup define_connector_types Connector Type
  1898. /// defines for ADLConnectorInfo.iType
  1899. // @{
  1900. /// Indicates unknown Connector type
  1901. #define ADL_CONNECTOR_TYPE_UNKNOWN 0
  1902. /// Indicates VGA Connector type
  1903. #define ADL_CONNECTOR_TYPE_VGA 1
  1904. /// Indicates DVI-D Connector type
  1905. #define ADL_CONNECTOR_TYPE_DVI_D 2
  1906. /// Indicates DVI-I Connector type
  1907. #define ADL_CONNECTOR_TYPE_DVI_I 3
  1908. /// Indicates Active Dongle-NA Connector type
  1909. #define ADL_CONNECTOR_TYPE_ATICVDONGLE_NA 4
  1910. /// Indicates Active Dongle-JP Connector type
  1911. #define ADL_CONNECTOR_TYPE_ATICVDONGLE_JP 5
  1912. /// Indicates Active Dongle-NONI2C Connector type
  1913. #define ADL_CONNECTOR_TYPE_ATICVDONGLE_NONI2C 6
  1914. /// Indicates Active Dongle-NONI2C-D Connector type
  1915. #define ADL_CONNECTOR_TYPE_ATICVDONGLE_NONI2C_D 7
  1916. /// Indicates HDMI-Type A Connector type
  1917. #define ADL_CONNECTOR_TYPE_HDMI_TYPE_A 8
  1918. /// Indicates HDMI-Type B Connector type
  1919. #define ADL_CONNECTOR_TYPE_HDMI_TYPE_B 9
  1920. /// Indicates Display port Connector type
  1921. #define ADL_CONNECTOR_TYPE_DISPLAYPORT 10
  1922. /// Indicates EDP Connector type
  1923. #define ADL_CONNECTOR_TYPE_EDP 11
  1924. /// Indicates MiniDP Connector type
  1925. #define ADL_CONNECTOR_TYPE_MINI_DISPLAYPORT 12
  1926. /// Indicates Virtual Connector type
  1927. #define ADL_CONNECTOR_TYPE_VIRTUAL 13
  1928. // @}
  1929. /// \defgroup define_freesync_usecase
  1930. /// These defines are to specify use cases in which FreeSync should be enabled
  1931. /// They are a bit mask. To specify FreeSync for more than one use case, the input value
  1932. /// should be set to include multiple bits set
  1933. // @{
  1934. /// Indicates FreeSync is enabled for Static Screen case
  1935. #define ADL_FREESYNC_USECASE_STATIC 0x1
  1936. /// Indicates FreeSync is enabled for Video use case
  1937. #define ADL_FREESYNC_USECASE_VIDEO 0x2
  1938. /// Indicates FreeSync is enabled for Gaming use case
  1939. #define ADL_FREESYNC_USECASE_GAMING 0x4
  1940. // @}
  1941. /// \defgroup define_freesync_caps
  1942. /// These defines are used to retrieve FreeSync display capabilities.
  1943. /// GPU support flag also indicates whether the display is
  1944. /// connected to a GPU that actually supports FreeSync
  1945. // @{
  1946. #define ADL_FREESYNC_CAP_SUPPORTED (1 << 0)
  1947. #define ADL_FREESYNC_CAP_GPUSUPPORTED (1 << 1)
  1948. #define ADL_FREESYNC_CAP_DISPLAYSUPPORTED (1 << 2)
  1949. #define ADL_FREESYNC_CAP_CURRENTMODESUPPORTED (1 << 3)
  1950. #define ADL_FREESYNC_CAP_NOCFXORCFXSUPPORTED (1 << 4)
  1951. #define ADL_FREESYNC_CAP_NOGENLOCKORGENLOCKSUPPORTED (1 << 5)
  1952. #define ADL_FREESYNC_CAP_BORDERLESSWINDOWSUPPORTED (1 << 6)
  1953. // @}
  1954. /// \defgroup define_MST_CommandLine_execute
  1955. // @{
  1956. /// Indicates the MST command line for branch message if the bit is set. Otherwise, it is display message
  1957. #define ADL_MST_COMMANDLINE_PATH_MSG 0x1
  1958. /// Indicates the MST command line to send message in broadcast way it the bit is set
  1959. #define ADL_MST_COMMANDLINE_BROADCAST 0x2
  1960. // @}
  1961. /// \defgroup define_Adapter_CloneTypes_Get
  1962. // @{
  1963. /// Indicates there is crossGPU clone with non-AMD dispalys
  1964. #define ADL_CROSSGPUDISPLAYCLONE_AMD_WITH_NONAMD 0x1
  1965. /// Indicates there is crossGPU clone
  1966. #define ADL_CROSSGPUDISPLAYCLONE 0x2
  1967. // @}
  1968. /// \defgroup define_D3DKMT_HANDLE
  1969. // @{
  1970. /// Handle can be used to create Device Handle when using CreateDevice()
  1971. typedef unsigned int ADL_D3DKMT_HANDLE;
  1972. // @}
  1973. // End Bracket for Constants and Definitions. Add new groups ABOVE this line!
  1974. // @}
  1975. typedef enum _ADL_RAS_ERROR_INJECTION_MODE
  1976. {
  1977. ADL_RAS_ERROR_INJECTION_MODE_SINGLE = 1,
  1978. ADL_RAS_ERROR_INJECTION_MODE_MULTIPLE = 2
  1979. }ADL_RAS_ERROR_INJECTION_MODE;
  1980. typedef enum _ADL_RAS_BLOCK_ID
  1981. {
  1982. ADL_RAS_BLOCK_ID_UMC = 0,
  1983. ADL_RAS_BLOCK_ID_SDMA,
  1984. ADL_RAS_BLOCK_ID_GFX_HUB,
  1985. ADL_RAS_BLOCK_ID_MMHUB,
  1986. ADL_RAS_BLOCK_ID_ATHUB,
  1987. ADL_RAS_BLOCK_ID_PCIE_BIF,
  1988. ADL_RAS_BLOCK_ID_HDP,
  1989. ADL_RAS_BLOCK_ID_XGMI_WAFL,
  1990. ADL_RAS_BLOCK_ID_DF,
  1991. ADL_RAS_BLOCK_ID_SMN,
  1992. ADL_RAS_BLOCK_ID_SEM,
  1993. ADL_RAS_BLOCK_ID_MP0,
  1994. ADL_RAS_BLOCK_ID_MP1,
  1995. ADL_RAS_BLOCK_ID_FUSE
  1996. }ADL_RAS_BLOCK_ID;
  1997. typedef enum _ADL_MEM_SUB_BLOCK_ID
  1998. {
  1999. ADL_RAS__UMC_HBM = 0,
  2000. ADL_RAS__UMC_SRAM = 1
  2001. }ADL_MEM_SUB_BLOCK_ID;
  2002. typedef enum _ADL_RAS_ERROR_TYPE
  2003. {
  2004. ADL_RAS_ERROR__NONE = 0,
  2005. ADL_RAS_ERROR__PARITY = 1,
  2006. ADL_RAS_ERROR__SINGLE_CORRECTABLE = 2,
  2007. ADL_RAS_ERROR__PARITY_SINGLE_CORRECTABLE = 3,
  2008. ADL_RAS_ERROR__MULTI_UNCORRECTABLE = 4,
  2009. ADL_RAS_ERROR__PARITY_MULTI_UNCORRECTABLE = 5,
  2010. ADL_RAS_ERROR__SINGLE_CORRECTABLE_MULTI_UNCORRECTABLE = 6,
  2011. ADL_RAS_ERROR__PARITY_SINGLE_CORRECTABLE_MULTI_UNCORRECTABLE = 7,
  2012. ADL_RAS_ERROR__POISON = 8,
  2013. ADL_RAS_ERROR__PARITY_POISON = 9,
  2014. ADL_RAS_ERROR__SINGLE_CORRECTABLE_POISON = 10,
  2015. ADL_RAS_ERROR__PARITY_SINGLE_CORRECTABLE_POISON = 11,
  2016. ADL_RAS_ERROR__MULTI_UNCORRECTABLE_POISON = 12,
  2017. ADL_RAS_ERROR__PARITY_MULTI_UNCORRECTABLE_POISON = 13,
  2018. ADL_RAS_ERROR__SINGLE_CORRECTABLE_MULTI_UNCORRECTABLE_POISON = 14,
  2019. ADL_RAS_ERROR__PARITY_SINGLE_CORRECTABLE_MULTI_UNCORRECTABLE_POISON = 15
  2020. }ADL_RAS_ERROR_TYPE;
  2021. typedef enum _ADL_RAS_INJECTION_METHOD
  2022. {
  2023. ADL_RAS_ERROR__UMC_METH_COHERENT = 0,
  2024. ADL_RAS_ERROR__UMC_METH_SINGLE_SHOT = 1,
  2025. ADL_RAS_ERROR__UMC_METH_PERSISTENT = 2,
  2026. ADL_RAS_ERROR__UMC_METH_PERSISTENT_DISABLE = 3
  2027. }ADL_RAS_INJECTION_METHOD;
  2028. // Driver event types
  2029. typedef enum _ADL_DRIVER_EVENT_TYPE
  2030. {
  2031. ADL_EVENT_ID_AUTO_FEATURE_COMPLETED = 30,
  2032. ADL_EVENT_ID_FEATURE_AVAILABILITY = 31,
  2033. } ADL_DRIVER_EVENT_TYPE;
  2034. //UIFeature Ids
  2035. typedef enum _ADL_UIFEATURES_GROUP
  2036. {
  2037. ADL_UIFEATURES_GROUP_DVR = 0,
  2038. ADL_UIFEATURES_GROUP_TURBOSYNC = 1,
  2039. ADL_UIFEATURES_GROUP_FRAMEMETRICSMONITOR = 2,
  2040. ADL_UIFEATURES_GROUP_FRTC = 3,
  2041. ADL_UIFEATURES_GROUP_XVISION = 4,
  2042. ADL_UIFEATURES_GROUP_BLOCKCHAIN = 5,
  2043. ADL_UIFEATURES_GROUP_GAMEINTELLIGENCE = 6,
  2044. ADL_UIFEATURES_GROUP_CHILL = 7,
  2045. ADL_UIFEATURES_GROUP_DELAG = 8,
  2046. ADL_UIFEATURES_GROUP_BOOST = 9,
  2047. ADL_UIFEATURES_GROUP_USU = 10,
  2048. ADL_UIFEATURES_GROUP_XGMI = 11
  2049. }ADL_UIFEATURES_GROUP;
  2050. #endif /* ADL_DEFINES_H_ */