Chinaunix首页 | 论坛 | 博客
  • 博客访问: 236966
  • 博文数量: 72
  • 博客积分: 2592
  • 博客等级: 少校
  • 技术积分: 834
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-28 00:16
文章分类

全部博文(72)

文章存档

2014年(1)

2012年(1)

2011年(6)

2010年(12)

2009年(19)

2008年(28)

2007年(4)

2005年(1)

我的朋友

分类: LINUX

2008-10-25 21:43:43

               Last updated: 2008-11-03

Dear all:

  I haven't found a tool in linux to detect the temperature of GM965. So I just take some sources and try to write it to do it.
  First, I try libpciaccess and learn from xf86-video-intel code. But I found the "pci_device_find_by_slot" function can't find the correct "Device 0"'s base_addr and size. So I search some code about the process of "MCHBAR", because I found the "Device 0 MCHBAR" contains "Thermal Sensor" Regs in Intel GM965 datasheet.
  And I found coreboot's inteltool. At that time, I don't get the trac version code, so the inteltool code which I used is a bit old.
  I focus on the "print_mchbar" funcion, and make a small revise on it to support GM965.
  Then I can dump the MCHBAR Regs in GM965.
  The other thing is much more easy, and I had a little trouble in transfering the TR1's value to Centigrade degree value. I just test the value some time and use a Magic number based on experience.
 
  Now it seems to work.
  Hope you like it.

  Thank you for your orignal work, Stefan Reinauer.
  Let's GNU/Linux.



Updated version: Add GM945 detect support, make a little adjustment of temprature report.


2008-11-03 Updated version:

Use Intel's offical datasheet formula to transfer display.

阅读(1025) | 评论(0) | 转发(0) |
0

上一篇:城市启蒙

下一篇:热爱终极 歌词

给主人留下些什么吧!~~