Skip to content

Commit

Permalink
Added OD8 API and support for the 6000 series cards/drivers.
Browse files Browse the repository at this point in the history
  • Loading branch information
nalilord committed Jan 14, 2021
1 parent 42ae4eb commit 70f02fa
Show file tree
Hide file tree
Showing 10 changed files with 4,501 additions and 3,739 deletions.
265 changes: 193 additions & 72 deletions Common/adl.pas

Large diffs are not rendered by default.

3,996 changes: 1,978 additions & 2,018 deletions Common/adl_defines.pas

Large diffs are not rendered by default.

53 changes: 44 additions & 9 deletions Common/adl_sdk.pas
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ interface

type
ADL_MAIN_MALLOC_CALLBACK = function(v1: Integer): Pointer; stdcall;

ADL_MAIN_CONTROL_CREATE = function(v1: ADL_MAIN_MALLOC_CALLBACK; iActiveOnly: Integer): Integer; stdcall;
ADL_MAIN_CONTROL_DESTROY = function: Integer; stdcall;

Expand All @@ -34,6 +33,8 @@ interface
ADL_ADAPTER_MEMORYINFO_GET = function(iNum: Integer; var lpMemoryInfo: TADLMemoryInfo): Integer; stdcall;
ADL_ADAPTER_CONFIGMEMORY_GET = function(iAdapterIndex: Integer; iScreenWidth, iScreenHeight, displayFeatureMask, numDisplays: Integer; var displayFeatureList: TADLMemoryDisplayFeatures; var iNumMemTypes: Integer; var lppMemRequired: LPADLMemoryRequired): Integer; stdcall;

ADL_ADAPTERX2_CAPS = function(iAdapterIndex: Integer; var iCaps: Integer): Integer; stdcall;

ADL_OVERDRIVE_CAPS = function(iAdapterIndex: Integer; var iSupported: Integer; var iEnabled: Integer; var iVersion: Integer): Integer; stdcall;

ADL_OVERDRIVE5_THERMALDEVICES_ENUM = function(iAdapterIndex: Integer; iThermalControllerIndex: Integer; var lpThermalControllerInfo: TADLThermalControllerInfo): Integer; stdcall;
Expand All @@ -50,19 +51,53 @@ interface
ADL_OVERDRIVE5_POWERCONTROL_GET = function(iAdapterIndex: Integer; var lpCurrentValue: Integer; var lpDefaultValue: Integer): Integer; stdcall;
ADL_OVERDRIVE5_POWERCONTROL_SET = function(iAdapterIndex: Integer; iValue: Integer): Integer; stdcall;

ADL_OVERDRIVE6_FANSPEED_GET = function(iAdapterIndex: Integer; var lpFanSpeedInfo: ADLOD6FanSpeedInfo): Integer; stdcall;
ADL_OVERDRIVE6_THERMALCONTROLLER_CAPS = function(iAdapterIndex: Integer; var lpThermalControllerCaps: ADLOD6ThermalControllerCaps): Integer; stdcall;
ADL_OVERDRIVE6_FANSPEED_GET = function(iAdapterIndex: Integer; var lpFanSpeedInfo: TADLOD6FanSpeedInfo): Integer; stdcall;
ADL_OVERDRIVE6_THERMALCONTROLLER_CAPS = function(iAdapterIndex: Integer; var lpThermalControllerCaps: TADLOD6ThermalControllerCaps): Integer; stdcall;
ADL_OVERDRIVE6_TEMPERATURE_GET = function(iAdapterIndex: Integer; var lpTemperature: Integer): Integer; stdcall;
ADL_OVERDRIVE6_CAPABILITIES_GET = function(iAdapterIndex: Integer; var lpODCapabilities: ADLOD6Capabilities): Integer; stdcall;
ADL_OVERDRIVE6_STATEINFO_GET = function(iAdapterIndex: Integer; iStateType: Integer; var lpStateInfo: ADLOD6StateInfo): Integer; stdcall;
ADL_OVERDRIVE6_CURRENTSTATUS_GET = function(iAdapterIndex: Integer; var lpCurrentStatus: ADLOD6CurrentStatus): Integer; stdcall;
ADL_OVERDRIVE6_CAPABILITIES_GET = function(iAdapterIndex: Integer; var lpODCapabilities: TADLOD6Capabilities): Integer; stdcall;
ADL_OVERDRIVE6_STATEINFO_GET = function(iAdapterIndex: Integer; iStateType: Integer; var lpStateInfo: TADLOD6StateInfo): Integer; stdcall;
ADL_OVERDRIVE6_CURRENTSTATUS_GET = function(iAdapterIndex: Integer; var lpCurrentStatus: TADLOD6CurrentStatus): Integer; stdcall;
ADL_OVERDRIVE6_POWERCONTROL_CAPS = function(iAdapterIndex: Integer; var lpSupported: Integer): Integer; stdcall;
ADL_OVERDRIVE6_POWERCONTROLINFO_GET = function(iAdapterIndex: Integer; var lpPowerControlInfo: ADLOD6PowerControlInfo): Integer; stdcall;
ADL_OVERDRIVE6_POWERCONTROLINFO_GET = function(iAdapterIndex: Integer; var lpPowerControlInfo: TADLOD6PowerControlInfo): Integer; stdcall;
ADL_OVERDRIVE6_POWERCONTROL_GET = function(iAdapterIndex: Integer; var lpCurrentValue: Integer; var lpDefaultValue: Integer): Integer; stdcall;
ADL_OVERDRIVE6_FANSPEED_SET = function(iAdapterIndex: Integer; var lpFanSpeedValue: ADLOD6FanSpeedValue): Integer; stdcall;
ADL_OVERDRIVE6_STATE_SET = function(iAdapterIndex: Integer; iStateType: Integer; var lpStateInfo: ADLOD6StateInfo): Integer; stdcall;
ADL_OVERDRIVE6_FANSPEED_SET = function(iAdapterIndex: Integer; var lpFanSpeedValue: TADLOD6FanSpeedValue): Integer; stdcall;
ADL_OVERDRIVE6_STATE_SET = function(iAdapterIndex: Integer; iStateType: Integer; var lpStateInfo: TADLOD6StateInfo): Integer; stdcall;
ADL_OVERDRIVE6_POWERCONTROL_SET = function(iAdapterIndex: Integer; iValue: Integer): Integer; stdcall;

ADL2_MAIN_CONTROL_CREATE = function(funcMemCallback: ADL_MAIN_MALLOC_CALLBACK; iTypes: Integer; var hContext: Pointer): Integer; stdcall;
ADL2_MAIN_CONTROL_DESTROY = function(hContext: Pointer): Integer; stdcall;

ADL2_ADAPTER_ACTIVE_GET = function(hContext: Pointer; iNum: Integer; var iActive: Integer): Integer; stdcall;

ADL2_OVERDRIVE_CAPS = function(hContext: Pointer; iAdapterIndex: Integer; var iSupported: Integer; var iEnabled: Integer; var iVersion: Integer): Integer; stdcall;
ADL2_OVERDRIVEN_CAPABILITIESX2_GET = function(hContext: Pointer; iAdapterIndex: Integer; var lpCapabilities: TADLODNCapabilitiesX2): Integer; stdcall;
ADL2_OVERDRIVEN_PERFORMANCESTATUS_GET = function(hContext: Pointer; iAdapterIndex: Integer; var lpStatus: ADLODNPerformanceStatus): Integer; stdcall;
ADL2_OVERDRIVEN_FANCONTROL_GET = function(hContext: Pointer; iAdapterIndex: Integer; var lpControl: ADLODNFanControl): Integer; stdcall;
ADL2_OVERDRIVEN_FANCONTROL_SET = function(hContext: Pointer; iAdapterIndex: Integer; var lpControl: ADLODNFanControl): Integer; stdcall;
ADL2_OVERDRIVEN_POWERLIMIT_GET = function(hContext: Pointer; iAdapterIndex: Integer; var lpLimit: ADLODNPowerLimitSetting): Integer; stdcall;
ADL2_OVERDRIVEN_POWERLIMIT_SET = function(hContext: Pointer; iAdapterIndex: Integer; var lpLimit: ADLODNPowerLimitSetting): Integer; stdcall;
ADL2_OVERDRIVEN_TEMPERATURE_GET = function(hContext: Pointer; iAdapterIndex: Integer; iTemperatureType: Integer; var lpTemperature: Integer): Integer; stdcall;
ADL2_OVERDRIVEN_SYSTEMCLOCKSX2_GET = function(hContext: Pointer; iAdapterIndex: Integer; var lpLevels: TADLODNPerformanceLevelsX2): Integer; stdcall;
ADL2_OVERDRIVEN_SYSTEMCLOCKSX2_SET = function(hContext: Pointer; iAdapterIndex: Integer; var lpLevels: TADLODNPerformanceLevelsX2): Integer; stdcall;
ADL2_OVERDRIVEN_MEMORYCLOCKSX2_GET = function(hContext: Pointer; iAdapterIndex: Integer; var lpLevels: TADLODNPerformanceLevelsX2): Integer; stdcall;
ADL2_OVERDRIVEN_MEMORYCLOCKSX2_SET = function(hContext: Pointer; iAdapterIndex: Integer; var lpLevels: TADLODNPerformanceLevelsX2): Integer; stdcall;

ADL2_OVERDRIVEN_MEMORYTIMINGLEVEL_GET = function(hContext: Pointer; iAdapterIndex: Integer; var lpSupportL: Integer; var lpCurrentValue: Integer; var lpDefaultValue: Integer; var lpNumberLevels: Integer; var lppLevelList: PInteger): Integer; stdcall;
ADL2_OVERDRIVEN_MEMORYTIMINGLEVEL_SET = function(hContext: Pointer; iAdapterIndex: Integer; currentValue: Integer): Integer; stdcall;
ADL2_OVERDRIVEN_ZERORPMFAN_GET = function(hContext: Pointer; iAdapterIndex: Integer; var lpSupport: Integer; var lpCurrentValue: Integer; var lpDefaultValue: Integer): Integer; stdcall;
ADL2_OVERDRIVEN_ZERORPMFAN_SET = function(hContext: Pointer; iAdapterIndex: Integer; currentValue: Integer): Integer; stdcall;

ADL2_OVERDRIVEN_SETTINGSEXT_GET = function(hContext: Pointer; iAdapterIndex: Integer; var lpOverdriveNExtCapabilities: Integer; var lpNumberOfODNExtFeatures: Integer; var lppInitSettingList: PADLODNExtSingleInitSetting; var lppCurrentSettingList: PInteger): Integer; stdcall;
ADL2_OVERDRIVEN_SETTINGSEXT_SET = function(hContext: Pointer; iAdapterIndex: Integer; iNumberOfODNExtFeatures: Integer; var itemValueValidList: Integer; var lpItemValueList: Integer): Integer; stdcall;

ADL2_OVERDRIVE8_INIT_SETTING_GET = function(hContext: Pointer; iAdapterIndex: Integer; var lpSetting: TADLOD8InitSetting): Integer; stdcall;
ADL2_OVERDRIVE8_CURRENT_SETTING_GET = function(hContext: Pointer; iAdapterIndex: Integer; var lpSetting: TADLOD8CurrentSetting): Integer; stdcall;
ADL2_OVERDRIVE8_SETTING_SET = function(hContext: Pointer; iAdapterIndex: Integer; var lpSetting: TADLOD8SetSetting; var lpSettingCurrent: TADLOD8CurrentSetting): Integer; stdcall;
ADL2_NEW_QUERYPMLOGDATA_GET = function(hContext: Pointer; iAdapterIndex: Integer; var lpLog: TADLPMLogDataOutput): Integer; stdcall;

ADL2_OVERDRIVE8_INIT_SETTINGX2_GET = function(hContext: Pointer; iAdapterIndex: Integer; var lpOverdrive8Capabilities: Integer; var lpNumberOfFeatures: Integer; var lppInitSettingList: PADLOD8SingleInitSetting): Integer; stdcall;
ADL2_OVERDRIVE8_CURRENT_SETTINGX2_GET = function(hContext: Pointer; iAdapterIndex: Integer; var lpNumberOfFeatures: Integer; var lppCurrentSettingList: PInteger): Integer; stdcall;

implementation

end.
Loading

0 comments on commit 70f02fa

Please sign in to comment.