i5k_amb.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614
  1. /*
  2. * A hwmon driver for the Intel 5000 series chipset FB-DIMM AMB
  3. * temperature sensors
  4. * Copyright (C) 2007 IBM
  5. *
  6. * Author: Darrick J. Wong <djwong@us.ibm.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. */
  22. #include <linux/module.h>
  23. #include <linux/jiffies.h>
  24. #include <linux/hwmon.h>
  25. #include <linux/hwmon-sysfs.h>
  26. #include <linux/err.h>
  27. #include <linux/mutex.h>
  28. #include <linux/delay.h>
  29. #include <linux/log2.h>
  30. #include <linux/pci.h>
  31. #include <linux/platform_device.h>
  32. #define DRVNAME "i5k_amb"
  33. #define I5K_REG_AMB_BASE_ADDR 0x48
  34. #define I5K_REG_AMB_LEN_ADDR 0x50
  35. #define I5K_REG_CHAN0_PRESENCE_ADDR 0x64
  36. #define I5K_REG_CHAN1_PRESENCE_ADDR 0x66
  37. #define AMB_REG_TEMP_MIN_ADDR 0x80
  38. #define AMB_REG_TEMP_MID_ADDR 0x81
  39. #define AMB_REG_TEMP_MAX_ADDR 0x82
  40. #define AMB_REG_TEMP_STATUS_ADDR 0x84
  41. #define AMB_REG_TEMP_ADDR 0x85
  42. #define AMB_CONFIG_SIZE 2048
  43. #define AMB_FUNC_3_OFFSET 768
  44. static unsigned long amb_reg_temp_status(unsigned int amb)
  45. {
  46. return AMB_FUNC_3_OFFSET + AMB_REG_TEMP_STATUS_ADDR +
  47. AMB_CONFIG_SIZE * amb;
  48. }
  49. static unsigned long amb_reg_temp_min(unsigned int amb)
  50. {
  51. return AMB_FUNC_3_OFFSET + AMB_REG_TEMP_MIN_ADDR +
  52. AMB_CONFIG_SIZE * amb;
  53. }
  54. static unsigned long amb_reg_temp_mid(unsigned int amb)
  55. {
  56. return AMB_FUNC_3_OFFSET + AMB_REG_TEMP_MID_ADDR +
  57. AMB_CONFIG_SIZE * amb;
  58. }
  59. static unsigned long amb_reg_temp_max(unsigned int amb)
  60. {
  61. return AMB_FUNC_3_OFFSET + AMB_REG_TEMP_MAX_ADDR +
  62. AMB_CONFIG_SIZE * amb;
  63. }
  64. static unsigned long amb_reg_temp(unsigned int amb)
  65. {
  66. return AMB_FUNC_3_OFFSET + AMB_REG_TEMP_ADDR +
  67. AMB_CONFIG_SIZE * amb;
  68. }
  69. #define MAX_MEM_CHANNELS 4
  70. #define MAX_AMBS_PER_CHANNEL 16
  71. #define MAX_AMBS (MAX_MEM_CHANNELS * \
  72. MAX_AMBS_PER_CHANNEL)
  73. #define CHANNEL_SHIFT 4
  74. #define DIMM_MASK 0xF
  75. /*
  76. * Ugly hack: For some reason the highest bit is set if there
  77. * are _any_ DIMMs in the channel. Attempting to read from
  78. * this "high-order" AMB results in a memory bus error, so
  79. * for now we'll just ignore that top bit, even though that
  80. * might prevent us from seeing the 16th DIMM in the channel.
  81. */
  82. #define REAL_MAX_AMBS_PER_CHANNEL 15
  83. #define KNOBS_PER_AMB 6
  84. static unsigned long amb_num_from_reg(unsigned int byte_num, unsigned int bit)
  85. {
  86. return byte_num * MAX_AMBS_PER_CHANNEL + bit;
  87. }
  88. #define AMB_SYSFS_NAME_LEN 16
  89. struct i5k_device_attribute {
  90. struct sensor_device_attribute s_attr;
  91. char name[AMB_SYSFS_NAME_LEN];
  92. };
  93. struct i5k_amb_data {
  94. struct device *hwmon_dev;
  95. unsigned long amb_base;
  96. unsigned long amb_len;
  97. u16 amb_present[MAX_MEM_CHANNELS];
  98. void __iomem *amb_mmio;
  99. struct i5k_device_attribute *attrs;
  100. unsigned int num_attrs;
  101. unsigned long chipset_id;
  102. };
  103. static ssize_t show_name(struct device *dev, struct device_attribute *devattr,
  104. char *buf)
  105. {
  106. return sprintf(buf, "%s\n", DRVNAME);
  107. }
  108. static DEVICE_ATTR(name, S_IRUGO, show_name, NULL);
  109. static struct platform_device *amb_pdev;
  110. static u8 amb_read_byte(struct i5k_amb_data *data, unsigned long offset)
  111. {
  112. return ioread8(data->amb_mmio + offset);
  113. }
  114. static void amb_write_byte(struct i5k_amb_data *data, unsigned long offset,
  115. u8 val)
  116. {
  117. iowrite8(val, data->amb_mmio + offset);
  118. }
  119. static ssize_t show_amb_alarm(struct device *dev,
  120. struct device_attribute *devattr,
  121. char *buf)
  122. {
  123. struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
  124. struct i5k_amb_data *data = dev_get_drvdata(dev);
  125. if (!(amb_read_byte(data, amb_reg_temp_status(attr->index)) & 0x20) &&
  126. (amb_read_byte(data, amb_reg_temp_status(attr->index)) & 0x8))
  127. return sprintf(buf, "1\n");
  128. else
  129. return sprintf(buf, "0\n");
  130. }
  131. static ssize_t store_amb_min(struct device *dev,
  132. struct device_attribute *devattr,
  133. const char *buf,
  134. size_t count)
  135. {
  136. struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
  137. struct i5k_amb_data *data = dev_get_drvdata(dev);
  138. unsigned long temp = simple_strtoul(buf, NULL, 10) / 500;
  139. if (temp > 255)
  140. temp = 255;
  141. amb_write_byte(data, amb_reg_temp_min(attr->index), temp);
  142. return count;
  143. }
  144. static ssize_t store_amb_mid(struct device *dev,
  145. struct device_attribute *devattr,
  146. const char *buf,
  147. size_t count)
  148. {
  149. struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
  150. struct i5k_amb_data *data = dev_get_drvdata(dev);
  151. unsigned long temp = simple_strtoul(buf, NULL, 10) / 500;
  152. if (temp > 255)
  153. temp = 255;
  154. amb_write_byte(data, amb_reg_temp_mid(attr->index), temp);
  155. return count;
  156. }
  157. static ssize_t store_amb_max(struct device *dev,
  158. struct device_attribute *devattr,
  159. const char *buf,
  160. size_t count)
  161. {
  162. struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
  163. struct i5k_amb_data *data = dev_get_drvdata(dev);
  164. unsigned long temp = simple_strtoul(buf, NULL, 10) / 500;
  165. if (temp > 255)
  166. temp = 255;
  167. amb_write_byte(data, amb_reg_temp_max(attr->index), temp);
  168. return count;
  169. }
  170. static ssize_t show_amb_min(struct device *dev,
  171. struct device_attribute *devattr,
  172. char *buf)
  173. {
  174. struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
  175. struct i5k_amb_data *data = dev_get_drvdata(dev);
  176. return sprintf(buf, "%d\n",
  177. 500 * amb_read_byte(data, amb_reg_temp_min(attr->index)));
  178. }
  179. static ssize_t show_amb_mid(struct device *dev,
  180. struct device_attribute *devattr,
  181. char *buf)
  182. {
  183. struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
  184. struct i5k_amb_data *data = dev_get_drvdata(dev);
  185. return sprintf(buf, "%d\n",
  186. 500 * amb_read_byte(data, amb_reg_temp_mid(attr->index)));
  187. }
  188. static ssize_t show_amb_max(struct device *dev,
  189. struct device_attribute *devattr,
  190. char *buf)
  191. {
  192. struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
  193. struct i5k_amb_data *data = dev_get_drvdata(dev);
  194. return sprintf(buf, "%d\n",
  195. 500 * amb_read_byte(data, amb_reg_temp_max(attr->index)));
  196. }
  197. static ssize_t show_amb_temp(struct device *dev,
  198. struct device_attribute *devattr,
  199. char *buf)
  200. {
  201. struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
  202. struct i5k_amb_data *data = dev_get_drvdata(dev);
  203. return sprintf(buf, "%d\n",
  204. 500 * amb_read_byte(data, amb_reg_temp(attr->index)));
  205. }
  206. static ssize_t show_label(struct device *dev,
  207. struct device_attribute *devattr,
  208. char *buf)
  209. {
  210. struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
  211. return sprintf(buf, "Ch. %d DIMM %d\n", attr->index >> CHANNEL_SHIFT,
  212. attr->index & DIMM_MASK);
  213. }
  214. static int __devinit i5k_amb_hwmon_init(struct platform_device *pdev)
  215. {
  216. int i, j, k, d = 0;
  217. u16 c;
  218. int res = 0;
  219. int num_ambs = 0;
  220. struct i5k_amb_data *data = platform_get_drvdata(pdev);
  221. /* Count the number of AMBs found */
  222. /* ignore the high-order bit, see "Ugly hack" comment above */
  223. for (i = 0; i < MAX_MEM_CHANNELS; i++)
  224. num_ambs += hweight16(data->amb_present[i] & 0x7fff);
  225. /* Set up sysfs stuff */
  226. data->attrs = kzalloc(sizeof(*data->attrs) * num_ambs * KNOBS_PER_AMB,
  227. GFP_KERNEL);
  228. if (!data->attrs)
  229. return -ENOMEM;
  230. data->num_attrs = 0;
  231. for (i = 0; i < MAX_MEM_CHANNELS; i++) {
  232. c = data->amb_present[i];
  233. for (j = 0; j < REAL_MAX_AMBS_PER_CHANNEL; j++, c >>= 1) {
  234. struct i5k_device_attribute *iattr;
  235. k = amb_num_from_reg(i, j);
  236. if (!(c & 0x1))
  237. continue;
  238. d++;
  239. /* sysfs label */
  240. iattr = data->attrs + data->num_attrs;
  241. snprintf(iattr->name, AMB_SYSFS_NAME_LEN,
  242. "temp%d_label", d);
  243. iattr->s_attr.dev_attr.attr.name = iattr->name;
  244. iattr->s_attr.dev_attr.attr.mode = S_IRUGO;
  245. iattr->s_attr.dev_attr.show = show_label;
  246. iattr->s_attr.index = k;
  247. res = device_create_file(&pdev->dev,
  248. &iattr->s_attr.dev_attr);
  249. if (res)
  250. goto exit_remove;
  251. data->num_attrs++;
  252. /* Temperature sysfs knob */
  253. iattr = data->attrs + data->num_attrs;
  254. snprintf(iattr->name, AMB_SYSFS_NAME_LEN,
  255. "temp%d_input", d);
  256. iattr->s_attr.dev_attr.attr.name = iattr->name;
  257. iattr->s_attr.dev_attr.attr.mode = S_IRUGO;
  258. iattr->s_attr.dev_attr.show = show_amb_temp;
  259. iattr->s_attr.index = k;
  260. res = device_create_file(&pdev->dev,
  261. &iattr->s_attr.dev_attr);
  262. if (res)
  263. goto exit_remove;
  264. data->num_attrs++;
  265. /* Temperature min sysfs knob */
  266. iattr = data->attrs + data->num_attrs;
  267. snprintf(iattr->name, AMB_SYSFS_NAME_LEN,
  268. "temp%d_min", d);
  269. iattr->s_attr.dev_attr.attr.name = iattr->name;
  270. iattr->s_attr.dev_attr.attr.mode = S_IWUSR | S_IRUGO;
  271. iattr->s_attr.dev_attr.show = show_amb_min;
  272. iattr->s_attr.dev_attr.store = store_amb_min;
  273. iattr->s_attr.index = k;
  274. res = device_create_file(&pdev->dev,
  275. &iattr->s_attr.dev_attr);
  276. if (res)
  277. goto exit_remove;
  278. data->num_attrs++;
  279. /* Temperature mid sysfs knob */
  280. iattr = data->attrs + data->num_attrs;
  281. snprintf(iattr->name, AMB_SYSFS_NAME_LEN,
  282. "temp%d_mid", d);
  283. iattr->s_attr.dev_attr.attr.name = iattr->name;
  284. iattr->s_attr.dev_attr.attr.mode = S_IWUSR | S_IRUGO;
  285. iattr->s_attr.dev_attr.show = show_amb_mid;
  286. iattr->s_attr.dev_attr.store = store_amb_mid;
  287. iattr->s_attr.index = k;
  288. res = device_create_file(&pdev->dev,
  289. &iattr->s_attr.dev_attr);
  290. if (res)
  291. goto exit_remove;
  292. data->num_attrs++;
  293. /* Temperature max sysfs knob */
  294. iattr = data->attrs + data->num_attrs;
  295. snprintf(iattr->name, AMB_SYSFS_NAME_LEN,
  296. "temp%d_max", d);
  297. iattr->s_attr.dev_attr.attr.name = iattr->name;
  298. iattr->s_attr.dev_attr.attr.mode = S_IWUSR | S_IRUGO;
  299. iattr->s_attr.dev_attr.show = show_amb_max;
  300. iattr->s_attr.dev_attr.store = store_amb_max;
  301. iattr->s_attr.index = k;
  302. res = device_create_file(&pdev->dev,
  303. &iattr->s_attr.dev_attr);
  304. if (res)
  305. goto exit_remove;
  306. data->num_attrs++;
  307. /* Temperature alarm sysfs knob */
  308. iattr = data->attrs + data->num_attrs;
  309. snprintf(iattr->name, AMB_SYSFS_NAME_LEN,
  310. "temp%d_alarm", d);
  311. iattr->s_attr.dev_attr.attr.name = iattr->name;
  312. iattr->s_attr.dev_attr.attr.mode = S_IRUGO;
  313. iattr->s_attr.dev_attr.show = show_amb_alarm;
  314. iattr->s_attr.index = k;
  315. res = device_create_file(&pdev->dev,
  316. &iattr->s_attr.dev_attr);
  317. if (res)
  318. goto exit_remove;
  319. data->num_attrs++;
  320. }
  321. }
  322. res = device_create_file(&pdev->dev, &dev_attr_name);
  323. if (res)
  324. goto exit_remove;
  325. data->hwmon_dev = hwmon_device_register(&pdev->dev);
  326. if (IS_ERR(data->hwmon_dev)) {
  327. res = PTR_ERR(data->hwmon_dev);
  328. goto exit_remove;
  329. }
  330. return res;
  331. exit_remove:
  332. device_remove_file(&pdev->dev, &dev_attr_name);
  333. for (i = 0; i < data->num_attrs; i++)
  334. device_remove_file(&pdev->dev, &data->attrs[i].s_attr.dev_attr);
  335. kfree(data->attrs);
  336. return res;
  337. }
  338. static int __devinit i5k_amb_add(void)
  339. {
  340. int res = -ENODEV;
  341. /* only ever going to be one of these */
  342. amb_pdev = platform_device_alloc(DRVNAME, 0);
  343. if (!amb_pdev)
  344. return -ENOMEM;
  345. res = platform_device_add(amb_pdev);
  346. if (res)
  347. goto err;
  348. return 0;
  349. err:
  350. platform_device_put(amb_pdev);
  351. return res;
  352. }
  353. static int __devinit i5k_find_amb_registers(struct i5k_amb_data *data,
  354. unsigned long devid)
  355. {
  356. struct pci_dev *pcidev;
  357. u32 val32;
  358. int res = -ENODEV;
  359. /* Find AMB register memory space */
  360. pcidev = pci_get_device(PCI_VENDOR_ID_INTEL,
  361. devid,
  362. NULL);
  363. if (!pcidev)
  364. return -ENODEV;
  365. if (pci_read_config_dword(pcidev, I5K_REG_AMB_BASE_ADDR, &val32))
  366. goto out;
  367. data->amb_base = val32;
  368. if (pci_read_config_dword(pcidev, I5K_REG_AMB_LEN_ADDR, &val32))
  369. goto out;
  370. data->amb_len = val32;
  371. /* Is it big enough? */
  372. if (data->amb_len < AMB_CONFIG_SIZE * MAX_AMBS) {
  373. dev_err(&pcidev->dev, "AMB region too small!\n");
  374. goto out;
  375. }
  376. data->chipset_id = devid;
  377. res = 0;
  378. out:
  379. pci_dev_put(pcidev);
  380. return res;
  381. }
  382. static int __devinit i5k_channel_probe(u16 *amb_present, unsigned long dev_id)
  383. {
  384. struct pci_dev *pcidev;
  385. u16 val16;
  386. int res = -ENODEV;
  387. /* Copy the DIMM presence map for these two channels */
  388. pcidev = pci_get_device(PCI_VENDOR_ID_INTEL, dev_id, NULL);
  389. if (!pcidev)
  390. return -ENODEV;
  391. if (pci_read_config_word(pcidev, I5K_REG_CHAN0_PRESENCE_ADDR, &val16))
  392. goto out;
  393. amb_present[0] = val16;
  394. if (pci_read_config_word(pcidev, I5K_REG_CHAN1_PRESENCE_ADDR, &val16))
  395. goto out;
  396. amb_present[1] = val16;
  397. res = 0;
  398. out:
  399. pci_dev_put(pcidev);
  400. return res;
  401. }
  402. static unsigned long i5k_channel_pci_id(struct i5k_amb_data *data,
  403. unsigned long channel)
  404. {
  405. switch (data->chipset_id) {
  406. case PCI_DEVICE_ID_INTEL_5000_ERR:
  407. return PCI_DEVICE_ID_INTEL_5000_FBD0 + channel;
  408. case PCI_DEVICE_ID_INTEL_5400_ERR:
  409. return PCI_DEVICE_ID_INTEL_5400_FBD0 + channel;
  410. default:
  411. BUG();
  412. }
  413. }
  414. static unsigned long chipset_ids[] = {
  415. PCI_DEVICE_ID_INTEL_5000_ERR,
  416. PCI_DEVICE_ID_INTEL_5400_ERR,
  417. 0
  418. };
  419. static struct pci_device_id i5k_amb_ids[] __devinitdata = {
  420. { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5000_ERR) },
  421. { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5400_ERR) },
  422. { 0, }
  423. };
  424. MODULE_DEVICE_TABLE(pci, i5k_amb_ids);
  425. static int __devinit i5k_amb_probe(struct platform_device *pdev)
  426. {
  427. struct i5k_amb_data *data;
  428. struct resource *reso;
  429. int i;
  430. int res = -ENODEV;
  431. data = kzalloc(sizeof(*data), GFP_KERNEL);
  432. if (!data)
  433. return -ENOMEM;
  434. /* Figure out where the AMB registers live */
  435. i = 0;
  436. do {
  437. res = i5k_find_amb_registers(data, chipset_ids[i]);
  438. i++;
  439. } while (res && chipset_ids[i]);
  440. if (res)
  441. goto err;
  442. /* Copy the DIMM presence map for the first two channels */
  443. res = i5k_channel_probe(&data->amb_present[0],
  444. i5k_channel_pci_id(data, 0));
  445. if (res)
  446. goto err;
  447. /* Copy the DIMM presence map for the optional second two channels */
  448. i5k_channel_probe(&data->amb_present[2],
  449. i5k_channel_pci_id(data, 1));
  450. /* Set up resource regions */
  451. reso = request_mem_region(data->amb_base, data->amb_len, DRVNAME);
  452. if (!reso) {
  453. res = -EBUSY;
  454. goto err;
  455. }
  456. data->amb_mmio = ioremap_nocache(data->amb_base, data->amb_len);
  457. if (!data->amb_mmio) {
  458. res = -EBUSY;
  459. goto err_map_failed;
  460. }
  461. platform_set_drvdata(pdev, data);
  462. res = i5k_amb_hwmon_init(pdev);
  463. if (res)
  464. goto err_init_failed;
  465. return res;
  466. err_init_failed:
  467. iounmap(data->amb_mmio);
  468. platform_set_drvdata(pdev, NULL);
  469. err_map_failed:
  470. release_mem_region(data->amb_base, data->amb_len);
  471. err:
  472. kfree(data);
  473. return res;
  474. }
  475. static int __devexit i5k_amb_remove(struct platform_device *pdev)
  476. {
  477. int i;
  478. struct i5k_amb_data *data = platform_get_drvdata(pdev);
  479. hwmon_device_unregister(data->hwmon_dev);
  480. device_remove_file(&pdev->dev, &dev_attr_name);
  481. for (i = 0; i < data->num_attrs; i++)
  482. device_remove_file(&pdev->dev, &data->attrs[i].s_attr.dev_attr);
  483. kfree(data->attrs);
  484. iounmap(data->amb_mmio);
  485. release_mem_region(data->amb_base, data->amb_len);
  486. platform_set_drvdata(pdev, NULL);
  487. kfree(data);
  488. return 0;
  489. }
  490. static struct platform_driver i5k_amb_driver = {
  491. .driver = {
  492. .owner = THIS_MODULE,
  493. .name = DRVNAME,
  494. },
  495. .probe = i5k_amb_probe,
  496. .remove = __devexit_p(i5k_amb_remove),
  497. };
  498. static int __init i5k_amb_init(void)
  499. {
  500. int res;
  501. res = platform_driver_register(&i5k_amb_driver);
  502. if (res)
  503. return res;
  504. res = i5k_amb_add();
  505. if (res)
  506. platform_driver_unregister(&i5k_amb_driver);
  507. return res;
  508. }
  509. static void __exit i5k_amb_exit(void)
  510. {
  511. platform_device_unregister(amb_pdev);
  512. platform_driver_unregister(&i5k_amb_driver);
  513. }
  514. MODULE_AUTHOR("Darrick J. Wong <djwong@us.ibm.com>");
  515. MODULE_DESCRIPTION("Intel 5000 chipset FB-DIMM AMB temperature sensor");
  516. MODULE_LICENSE("GPL");
  517. module_init(i5k_amb_init);
  518. module_exit(i5k_amb_exit);