# HG changeset patch # User moel.mich # Date 1266832622 0 # Node ID 0e62c377c08c3fd9c34a2d2c7ae7564b40cebb95 # Parent 8e2563e2ee69c8db1cbe73e40acb5e9d8e666da2 Fintek super I/O chips with base address 0x..5 are detected now as well. Set Pack = 1 for NVAPI struct interop (should fix GPU enumeration). diff -r 8e2563e2ee69 -r 0e62c377c08c Hardware/LPC/LPCGroup.cs --- a/Hardware/LPC/LPCGroup.cs Sun Feb 21 21:41:22 2010 +0000 +++ b/Hardware/LPC/LPCGroup.cs Mon Feb 22 09:57:02 2010 +0000 @@ -206,17 +206,24 @@ if (chip != Chip.Unknown) { Select(logicalDeviceNumber); - ushort address = ReadWord(BASE_ADDRESS_REGISTER); + ushort address = ReadWord(BASE_ADDRESS_REGISTER); Thread.Sleep(1); ushort verify = ReadWord(BASE_ADDRESS_REGISTER); - + ushort vendorID = 0; if (chip == Chip.F71862 || chip == Chip.F71882 || chip == Chip.F71889) vendorID = ReadWord(FINTEK_VENDOR_ID_REGISTER); WinbondFintekExit(); - if (address != verify || address < 0x100 || (address & 0xF007) != 0) + if (address != verify) + return; + + // some Fintek chips have address register offset 0x05 added already + if ((address & 0x07) == 0x05) + address &= 0xFFF8; + + if (address < 0x100 || (address & 0xF007) != 0) return; switch (chip) { diff -r 8e2563e2ee69 -r 0e62c377c08c Hardware/Nvidia/NVAPI.cs --- a/Hardware/Nvidia/NVAPI.cs Sun Feb 21 21:41:22 2010 +0000 +++ b/Hardware/Nvidia/NVAPI.cs Mon Feb 22 09:57:02 2010 +0000 @@ -122,7 +122,7 @@ UNKNOWN = -1 }; - [StructLayout(LayoutKind.Sequential)] + [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct NvSensor { public NvThermalController Controller; public int DefaultMinTemp; @@ -131,7 +131,7 @@ public NvThermalTarget Target; } - [StructLayout(LayoutKind.Sequential)] + [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct NvGPUThermalSettings { public int Version; public int Count; @@ -140,12 +140,12 @@ public NvSensor[] Sensor; } - [StructLayout(LayoutKind.Sequential)] + [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct NvDisplayHandle { private int handle; } - [StructLayout(LayoutKind.Sequential)] + [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct NvPhysicalGpuHandle { private int handle; } diff -r 8e2563e2ee69 -r 0e62c377c08c OpenHardwareMonitor.csproj --- a/OpenHardwareMonitor.csproj Sun Feb 21 21:41:22 2010 +0000 +++ b/OpenHardwareMonitor.csproj Mon Feb 22 09:57:02 2010 +0000 @@ -4,7 +4,7 @@ Debug AnyCPU {F5E0C1F7-9E9B-46F2-AC88-8C9C1C923880} - 9.0.30729 + 9.0.21022 2.0 WinExe false @@ -68,7 +68,6 @@ - @@ -124,12 +123,15 @@ AboutBox.cs + Designer MainForm.cs + Designer PlotPanel.cs + Designer diff -r 8e2563e2ee69 -r 0e62c377c08c Properties/AssemblyInfo.cs --- a/Properties/AssemblyInfo.cs Sun Feb 21 21:41:22 2010 +0000 +++ b/Properties/AssemblyInfo.cs Mon Feb 22 09:57:02 2010 +0000 @@ -69,5 +69,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.1.23.0")] -[assembly: AssemblyFileVersion("0.1.23.0")] +[assembly: AssemblyVersion("0.1.23.1")] +[assembly: AssemblyFileVersion("0.1.23.1")]