ADL (AMD Display Library) Public APIs  Version 17.1
lnx.h
Go to the documentation of this file.
1 
7 
15 
16 #ifndef __LNX_H__
17 #define __LNX_H__
18 
19 
20 #include "adl_structures.h"
21 //#include "amd_only/amd_lnx.h"
22 
23 #ifndef ADL_EXTERNC
24 #ifdef __cplusplus
25 #define ADL_EXTERNC extern "C"
26 #else
27 #define ADL_EXTERNC
28 #endif
29 #endif
30 
33 
46 ADL_EXTERNC int EXPOSED ADL2_DesktopConfig_Get(ADL_CONTEXT_HANDLE context,int iAdapterIndex, int* lpDesktopConfig);
47 
58 ADL_EXTERNC int EXPOSED ADL_DesktopConfig_Get(int iAdapterIndex, int* lpDesktopConfig);
59 
72 ADL_EXTERNC int EXPOSED ADL2_DesktopConfig_Set(ADL_CONTEXT_HANDLE context,int iAdapterIndex, int iDesktopConfig);
73 
84 ADL_EXTERNC int EXPOSED ADL_DesktopConfig_Set(int iAdapterIndex, int iDesktopConfig);
85 
98 ADL_EXTERNC int EXPOSED ADL2_NumberOfDisplayEnable_Get(ADL_CONTEXT_HANDLE context,int iAdapterIndex, int *lpNumberOfDisplays);
99 
110 ADL_EXTERNC int EXPOSED ADL_NumberOfDisplayEnable_Get(int iAdapterIndex, int *lpNumberOfDisplays);
111 
127 ADL_EXTERNC int EXPOSED ADL2_DisplayEnable_Set(ADL_CONTEXT_HANDLE context,int iAdapterIndex, int *lpDisplayIndexList, int iDisplayListSize, int bPersistOnly);
128 
142 ADL_EXTERNC int EXPOSED ADL_DisplayEnable_Set(int iAdapterIndex, int *lpDisplayIndexList, int iDisplayListSize, int bPersistOnly);
143 
160 ADL_EXTERNC int EXPOSED ADL2_Display_IdentifyDisplay(ADL_CONTEXT_HANDLE context,int iAdapterIndex, int iDisplayIndex, int iDisplayControllerIndex, int iShow, int iDisplayNum, int iPosX, int iPosY);
161 
176 ADL_EXTERNC int EXPOSED ADL_Display_IdentifyDisplay(int iAdapterIndex, int iDisplayIndex, int iDisplayControllerIndex, int iShow, int iDisplayNum, int iPosX, int iPosY);
177 
191 ADL_EXTERNC int EXPOSED ADL2_Display_LUTColor_Set(ADL_CONTEXT_HANDLE context,int iAdapterIndex, int iDisplayIndex, ADLGamma adlGamma);
192 
204 ADL_EXTERNC int EXPOSED ADL_Display_LUTColor_Set(int iAdapterIndex, int iDisplayIndex, ADLGamma adlGamma);
205 
222 ADL_EXTERNC int EXPOSED ADL2_Display_LUTColor_Get(ADL_CONTEXT_HANDLE context,int iAdapterIndex, int iDisplayIndex, ADLGamma *lpGammaCurrent, ADLGamma *lpGammaDefault, ADLGamma *lpGammaMin, ADLGamma *lpGammaMax);
223 
238 ADL_EXTERNC int EXPOSED ADL_Display_LUTColor_Get(int iAdapterIndex, int iDisplayIndex, ADLGamma *lpGammaCurrent, ADLGamma *lpGammaDefault, ADLGamma *lpGammaMin, ADLGamma *lpGammaMax);
239 
252 ADL_EXTERNC int EXPOSED ADL2_Adapter_XScreenInfo_Get(ADL_CONTEXT_HANDLE context,LPXScreenInfo lpXScreenInfo, int iInputSize);
253 
264 ADL_EXTERNC int EXPOSED ADL_Adapter_XScreenInfo_Get(LPXScreenInfo lpXScreenInfo, int iInputSize);
265 
279 ADL_EXTERNC int EXPOSED ADL2_Display_XrandrDisplayName_Get(ADL_CONTEXT_HANDLE context,int iAdapterIndex, int iDisplayIndex, char* lpXrandrDisplayName, int iBuffSize);
280 
292 ADL_EXTERNC int EXPOSED ADL_Display_XrandrDisplayName_Get(int iAdapterIndex, int iDisplayIndex, char* lpXrandrDisplayName, int iBuffSize);
293 
294 
295 
313 ADL_EXTERNC int EXPOSED ADL2_Adapter_Tear_Free_Set(ADL_CONTEXT_HANDLE context,int iAdapter, int iRequested, int* pStatus);
314 
330 ADL_EXTERNC int EXPOSED ADL_Adapter_Tear_Free_Set(int iAdapter, int iRequested, int* pStatus);
331 
350 ADL_EXTERNC int EXPOSED ADL2_Adapter_Tear_Free_Get(ADL_CONTEXT_HANDLE context,int iAdapter, int * pDefault, int * pRequested, int * pStatus);
351 
368 ADL_EXTERNC int EXPOSED ADL_Adapter_Tear_Free_Get(int iAdapter, int * pDefault, int * pRequested, int * pStatus);
369 
386 
399 
410 
429 ADL_EXTERNC int EXPOSED ADL2_Adapter_ConfigMemory_Get(ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iScreenWidth, int iScreenHeight, int displayFeatureMask, int numDisplays, ADLMemoryDisplayFeatures * displayFeatureList, int *iNumMemTypes, ADLMemoryRequired **lppMemRequired);
430 
447 ADL_EXTERNC int EXPOSED ADL_Adapter_ConfigMemory_Get(int iAdapterIndex, int iScreenWidth, int iScreenHeight, int displayFeatureMask, int numDisplays, ADLMemoryDisplayFeatures * displayFeatureList, int *iNumMemTypes, ADLMemoryRequired **lppMemRequired);
448 
449 
451 
452 #endif /*__LNX_H__ */
ADL_Adapter_XScreenInfo_Get
int ADL_Adapter_XScreenInfo_Get(LPXScreenInfo lpXScreenInfo, int iInputSize)
Function to retrieve all X Screen information for all OS-known adapters.
ADL2_Display_IdentifyDisplay
int ADL2_Display_IdentifyDisplay(ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, int iDisplayControllerIndex, int iShow, int iDisplayNum, int iPosX, int iPosY)
Function to set the desktop configuration.
XScreenInfo
Structure containing information about the Linux X screen information.
Definition: adl_structures.h:107
ADL2_Display_LUTColor_Get
int ADL2_Display_LUTColor_Get(ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLGamma *lpGammaCurrent, ADLGamma *lpGammaDefault, ADLGamma *lpGammaMin, ADLGamma *lpGammaMax)
Function to get the current value of gamma for a LUT (controller).
ADLMemoryRequired
Structure containing information about memory required by type.
Definition: adl_structures.h:316
ADL2_Adapter_ConfigMemory_Get
int ADL2_Adapter_ConfigMemory_Get(ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iScreenWidth, int iScreenHeight, int displayFeatureMask, int numDisplays, ADLMemoryDisplayFeatures *displayFeatureList, int *iNumMemTypes, ADLMemoryRequired **lppMemRequired)
Function to get the memory configuration of an adapter.
ADL_Display_LUTColor_Get
int ADL_Display_LUTColor_Get(int iAdapterIndex, int iDisplayIndex, ADLGamma *lpGammaCurrent, ADLGamma *lpGammaDefault, ADLGamma *lpGammaMin, ADLGamma *lpGammaMax)
Function to get the current value of gamma for a LUT (controller).
adl_structures.h
This file contains the structure declarations that are used by the public ADL interfaces for Linux an...
ADL2_Adapter_Tear_Free_Set
int ADL2_Adapter_Tear_Free_Set(ADL_CONTEXT_HANDLE context, int iAdapter, int iRequested, int *pStatus)
Set the requested tear free desktop setting.
ADL2_Adapter_Tear_Free_Get
int ADL2_Adapter_Tear_Free_Get(ADL_CONTEXT_HANDLE context, int iAdapter, int *pDefault, int *pRequested, int *pStatus)
Get the requested tear free desktop setting and current status.
ADL_Display_LUTColor_Set
int ADL_Display_LUTColor_Set(int iAdapterIndex, int iDisplayIndex, ADLGamma adlGamma)
Function to set the current gamma value for a LUT (controller).
ADL2_Display_XrandrDisplayName_Get
int ADL2_Display_XrandrDisplayName_Get(ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, char *lpXrandrDisplayName, int iBuffSize)
Function to retrieve the name of the Xrandr display.
ADL_Adapter_Tear_Free_Set
int ADL_Adapter_Tear_Free_Set(int iAdapter, int iRequested, int *pStatus)
Set the requested tear free desktop setting.
ADL_DisplayEnable_Set
int ADL_DisplayEnable_Set(int iAdapterIndex, int *lpDisplayIndexList, int iDisplayListSize, int bPersistOnly)
Function to dynamically enable displays on a GPU.
ADL_Adapter_Tear_Free_Get
int ADL_Adapter_Tear_Free_Get(int iAdapter, int *pDefault, int *pRequested, int *pStatus)
Get the requested tear free desktop setting and current status.
ADL_Display_XrandrDisplayName_Get
int ADL_Display_XrandrDisplayName_Get(int iAdapterIndex, int iDisplayIndex, char *lpXrandrDisplayName, int iBuffSize)
Function to retrieve the name of the Xrandr display.
ADLGamma
Structure containing information controller Gamma settings.
Definition: adl_structures.h:469
ADL2_NumberOfDisplayEnable_Get
int ADL2_NumberOfDisplayEnable_Get(ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpNumberOfDisplays)
Function to retrieve the number of enabled displays.
ADL2_Adapter_XScreenInfo_Get
int ADL2_Adapter_XScreenInfo_Get(ADL_CONTEXT_HANDLE context, LPXScreenInfo lpXScreenInfo, int iInputSize)
Function to retrieve all X Screen information for all OS-known adapters.
ADLMemoryDisplayFeatures
Structure containing information about the features associated with a display.
Definition: adl_structures.h:330
ADL_Adapter_ConfigMemory_Get
int ADL_Adapter_ConfigMemory_Get(int iAdapterIndex, int iScreenWidth, int iScreenHeight, int displayFeatureMask, int numDisplays, ADLMemoryDisplayFeatures *displayFeatureList, int *iNumMemTypes, ADLMemoryRequired **lppMemRequired)
Function to get the memory configuration of an adapter.
ADL_Adapter_MemoryInfo_Get
int ADL_Adapter_MemoryInfo_Get(int iAdapterIndex, ADLMemoryInfo *lpMemoryInfo)
Function to retrieve memory information from the adapter.
iAdapterIndex
int int iAdapterIndex
Definition: radeonusbled.h:92
ADLMemoryInfo
Structure containing information about the ASIC memory.
Definition: adl_structures.h:299
ADL_CONTEXT_HANDLE
void * ADL_CONTEXT_HANDLE
Handle to ADL client context.
Definition: adl_structures.h:2336
ADL2_DisplayEnable_Set
int ADL2_DisplayEnable_Set(ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpDisplayIndexList, int iDisplayListSize, int bPersistOnly)
Function to dynamically enable displays on a GPU.
ADL_DesktopConfig_Set
int ADL_DesktopConfig_Set(int iAdapterIndex, int iDesktopConfig)
Function to set the Desktop Configuration.
ADL_DesktopConfig_Get
int ADL_DesktopConfig_Get(int iAdapterIndex, int *lpDesktopConfig)
Function to get the Desktop Configuration.
ADL2_Adapter_Tear_Free_Cap
int ADL2_Adapter_Tear_Free_Cap(ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpTFCap)
Functions to retreive Tear Free setting capabilities of the system.
ADL2_DesktopConfig_Get
int ADL2_DesktopConfig_Get(ADL_CONTEXT_HANDLE context, int iAdapterIndex, int *lpDesktopConfig)
Function to get the Desktop Configuration.
ADL2_Adapter_MemoryInfo_Get
int ADL2_Adapter_MemoryInfo_Get(ADL_CONTEXT_HANDLE context, int iAdapterIndex, ADLMemoryInfo *lpMemoryInfo)
Function to retrieve memory information from the adapter.
ADL_EXTERNC
#define ADL_EXTERNC
Definition: lnx.h:27
ADL2_Display_LUTColor_Set
int ADL2_Display_LUTColor_Set(ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDisplayIndex, ADLGamma adlGamma)
Function to set the current gamma value for a LUT (controller).
ADL_NumberOfDisplayEnable_Get
int ADL_NumberOfDisplayEnable_Get(int iAdapterIndex, int *lpNumberOfDisplays)
Function to retrieve the number of enabled displays.
ADL2_DesktopConfig_Set
int ADL2_DesktopConfig_Set(ADL_CONTEXT_HANDLE context, int iAdapterIndex, int iDesktopConfig)
Function to set the Desktop Configuration.
ADL_Display_IdentifyDisplay
int ADL_Display_IdentifyDisplay(int iAdapterIndex, int iDisplayIndex, int iDisplayControllerIndex, int iShow, int iDisplayNum, int iPosX, int iPosY)
Function to set the desktop configuration.

Copyright © 2009-2020 Advanced Micro Devices, Inc. All rights reserved.