Hardware/ATI/ADL.cs
changeset 247 6dc755f1970e
parent 200 50de2faf3336
child 333 c34cbcc7df66
     1.1 --- a/Hardware/ATI/ADL.cs	Wed Dec 08 19:23:13 2010 +0000
     1.2 +++ b/Hardware/ATI/ADL.cs	Thu Jan 20 21:31:54 2011 +0000
     1.3 @@ -122,6 +122,7 @@
     1.4      public const int ADL_DL_FANCTRL_SUPPORTS_PERCENT_WRITE = 2;
     1.5      public const int ADL_DL_FANCTRL_SUPPORTS_RPM_READ = 4;
     1.6      public const int ADL_DL_FANCTRL_SUPPORTS_RPM_WRITE = 8;
     1.7 +    public const int ADL_DL_FANCTRL_FLAG_USER_DEFINED_SPEED = 1;
     1.8  
     1.9      public const int ATI_VENDOR_ID1 = 1002;
    1.10      public const int ATI_VENDOR_ID2 = 0x1002;
    1.11 @@ -149,6 +150,10 @@
    1.12      public delegate int ADL_Overdrive5_FanSpeedInfo_GetDelegate(
    1.13        int adapterIndex, int thermalControllerIndex,
    1.14        ref ADLFanSpeedInfo fanSpeedInfo);
    1.15 +    public delegate int ADL_Overdrive5_FanSpeedToDefault_SetDelegate(
    1.16 +      int adapterIndex, int thermalControllerIndex);
    1.17 +    public delegate int ADL_Overdrive5_FanSpeed_SetDelegate(int adapterIndex,
    1.18 +      int thermalControllerIndex, ref	ADLFanSpeedValue fanSpeedValue);
    1.19  
    1.20      private static ADL_Main_Control_CreateDelegate
    1.21        _ADL_Main_Control_Create;
    1.22 @@ -173,6 +178,10 @@
    1.23        ADL_Overdrive5_FanSpeed_Get;
    1.24      public static ADL_Overdrive5_FanSpeedInfo_GetDelegate
    1.25        ADL_Overdrive5_FanSpeedInfo_Get;
    1.26 +    public static ADL_Overdrive5_FanSpeedToDefault_SetDelegate
    1.27 +      ADL_Overdrive5_FanSpeedToDefault_Set;
    1.28 +    public static ADL_Overdrive5_FanSpeed_SetDelegate
    1.29 +      ADL_Overdrive5_FanSpeed_Set;
    1.30  
    1.31      private static string dllName;
    1.32  
    1.33 @@ -215,6 +224,10 @@
    1.34          out ADL_Overdrive5_FanSpeed_Get);
    1.35        GetDelegate("ADL_Overdrive5_FanSpeedInfo_Get",
    1.36          out ADL_Overdrive5_FanSpeedInfo_Get);
    1.37 +      GetDelegate("ADL_Overdrive5_FanSpeedToDefault_Set",
    1.38 +        out ADL_Overdrive5_FanSpeedToDefault_Set);
    1.39 +      GetDelegate("ADL_Overdrive5_FanSpeed_Set",
    1.40 +        out ADL_Overdrive5_FanSpeed_Set);
    1.41      }
    1.42  
    1.43      static ADL() {