pcwd_pci.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672
  1. /*
  2. * Berkshire PCI-PC Watchdog Card Driver
  3. *
  4. * (c) Copyright 2003 Wim Van Sebroeck <wim@iguana.be>.
  5. *
  6. * Based on source code of the following authors:
  7. * Ken Hollis <kenji@bitgate.com>,
  8. * Lindsay Harris <lindsay@bluegum.com>,
  9. * Alan Cox <alan@redhat.com>,
  10. * Matt Domsch <Matt_Domsch@dell.com>,
  11. * Rob Radez <rob@osinvestor.com>
  12. *
  13. * This program is free software; you can redistribute it and/or
  14. * modify it under the terms of the GNU General Public License
  15. * as published by the Free Software Foundation; either version
  16. * 2 of the License, or (at your option) any later version.
  17. *
  18. * Neither Wim Van Sebroeck nor Iguana vzw. admit liability nor
  19. * provide warranty for any of this software. This material is
  20. * provided "AS-IS" and at no charge.
  21. */
  22. /*
  23. * A bells and whistles driver is available from http://www.pcwd.de/
  24. * More info available at http://www.berkprod.com/ or http://www.pcwatchdog.com/
  25. */
  26. /*
  27. * Includes, defines, variables, module parameters, ...
  28. */
  29. #include <linux/config.h>
  30. #include <linux/module.h>
  31. #include <linux/moduleparam.h>
  32. #include <linux/types.h>
  33. #include <linux/delay.h>
  34. #include <linux/miscdevice.h>
  35. #include <linux/watchdog.h>
  36. #include <linux/notifier.h>
  37. #include <linux/reboot.h>
  38. #include <linux/init.h>
  39. #include <linux/fs.h>
  40. #include <linux/pci.h>
  41. #include <linux/ioport.h>
  42. #include <linux/spinlock.h>
  43. #include <asm/uaccess.h>
  44. #include <asm/io.h>
  45. /* Module and version information */
  46. #define WATCHDOG_VERSION "1.01"
  47. #define WATCHDOG_DATE "15 Mar 2005"
  48. #define WATCHDOG_DRIVER_NAME "PCI-PC Watchdog"
  49. #define WATCHDOG_NAME "pcwd_pci"
  50. #define PFX WATCHDOG_NAME ": "
  51. #define DRIVER_VERSION WATCHDOG_DRIVER_NAME " driver, v" WATCHDOG_VERSION " (" WATCHDOG_DATE ")\n"
  52. /* Stuff for the PCI ID's */
  53. #ifndef PCI_VENDOR_ID_QUICKLOGIC
  54. #define PCI_VENDOR_ID_QUICKLOGIC 0x11e3
  55. #endif
  56. #ifndef PCI_DEVICE_ID_WATCHDOG_PCIPCWD
  57. #define PCI_DEVICE_ID_WATCHDOG_PCIPCWD 0x5030
  58. #endif
  59. /*
  60. * These are the defines that describe the control status bits for the
  61. * PCI-PC Watchdog card.
  62. */
  63. #define WD_PCI_WTRP 0x01 /* Watchdog Trip status */
  64. #define WD_PCI_HRBT 0x02 /* Watchdog Heartbeat */
  65. #define WD_PCI_TTRP 0x04 /* Temperature Trip status */
  66. /* according to documentation max. time to process a command for the pci
  67. * watchdog card is 100 ms, so we give it 150 ms to do it's job */
  68. #define PCI_COMMAND_TIMEOUT 150
  69. /* Watchdog's internal commands */
  70. #define CMD_GET_STATUS 0x04
  71. #define CMD_GET_FIRMWARE_VERSION 0x08
  72. #define CMD_READ_WATCHDOG_TIMEOUT 0x18
  73. #define CMD_WRITE_WATCHDOG_TIMEOUT 0x19
  74. /* We can only use 1 card due to the /dev/watchdog restriction */
  75. static int cards_found;
  76. /* internal variables */
  77. static int temp_panic;
  78. static unsigned long is_active;
  79. static char expect_release;
  80. static struct {
  81. int supports_temp; /* Wether or not the card has a temperature device */
  82. int boot_status; /* The card's boot status */
  83. unsigned long io_addr; /* The cards I/O address */
  84. spinlock_t io_lock;
  85. struct pci_dev *pdev;
  86. } pcipcwd_private;
  87. /* module parameters */
  88. #define WATCHDOG_HEARTBEAT 2 /* 2 sec default heartbeat */
  89. static int heartbeat = WATCHDOG_HEARTBEAT;
  90. module_param(heartbeat, int, 0);
  91. MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (0<heartbeat<65536, default=" __MODULE_STRING(WATCHDOG_HEARTBEAT) ")");
  92. static int nowayout = WATCHDOG_NOWAYOUT;
  93. module_param(nowayout, int, 0);
  94. MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=CONFIG_WATCHDOG_NOWAYOUT)");
  95. /*
  96. * Internal functions
  97. */
  98. static int send_command(int cmd, int *msb, int *lsb)
  99. {
  100. int got_response, count;
  101. spin_lock(&pcipcwd_private.io_lock);
  102. /* If a command requires data it should be written first.
  103. * Data for commands with 8 bits of data should be written to port 4.
  104. * Commands with 16 bits of data, should be written as LSB to port 4
  105. * and MSB to port 5.
  106. * After the required data has been written then write the command to
  107. * port 6. */
  108. outb_p(*lsb, pcipcwd_private.io_addr + 4);
  109. outb_p(*msb, pcipcwd_private.io_addr + 5);
  110. outb_p(cmd, pcipcwd_private.io_addr + 6);
  111. /* wait till the pci card processed the command, signaled by
  112. * the WRSP bit in port 2 and give it a max. timeout of
  113. * PCI_COMMAND_TIMEOUT to process */
  114. got_response = inb_p(pcipcwd_private.io_addr + 2) & 0x40;
  115. for (count = 0; (count < PCI_COMMAND_TIMEOUT) && (!got_response); count++) {
  116. mdelay(1);
  117. got_response = inb_p(pcipcwd_private.io_addr + 2) & 0x40;
  118. }
  119. if (got_response) {
  120. /* read back response */
  121. *lsb = inb_p(pcipcwd_private.io_addr + 4);
  122. *msb = inb_p(pcipcwd_private.io_addr + 5);
  123. /* clear WRSP bit */
  124. inb_p(pcipcwd_private.io_addr + 6);
  125. }
  126. spin_unlock(&pcipcwd_private.io_lock);
  127. return got_response;
  128. }
  129. static int pcipcwd_start(void)
  130. {
  131. int stat_reg;
  132. spin_lock(&pcipcwd_private.io_lock);
  133. outb_p(0x00, pcipcwd_private.io_addr + 3);
  134. udelay(1000);
  135. stat_reg = inb_p(pcipcwd_private.io_addr + 2);
  136. spin_unlock(&pcipcwd_private.io_lock);
  137. if (stat_reg & 0x10) {
  138. printk(KERN_ERR PFX "Card timer not enabled\n");
  139. return -1;
  140. }
  141. return 0;
  142. }
  143. static int pcipcwd_stop(void)
  144. {
  145. int stat_reg;
  146. spin_lock(&pcipcwd_private.io_lock);
  147. outb_p(0xA5, pcipcwd_private.io_addr + 3);
  148. udelay(1000);
  149. outb_p(0xA5, pcipcwd_private.io_addr + 3);
  150. udelay(1000);
  151. stat_reg = inb_p(pcipcwd_private.io_addr + 2);
  152. spin_unlock(&pcipcwd_private.io_lock);
  153. if (!(stat_reg & 0x10)) {
  154. printk(KERN_ERR PFX "Card did not acknowledge disable attempt\n");
  155. return -1;
  156. }
  157. return 0;
  158. }
  159. static int pcipcwd_keepalive(void)
  160. {
  161. /* Re-trigger watchdog by writing to port 0 */
  162. outb_p(0x42, pcipcwd_private.io_addr);
  163. return 0;
  164. }
  165. static int pcipcwd_set_heartbeat(int t)
  166. {
  167. int t_msb = t / 256;
  168. int t_lsb = t % 256;
  169. if ((t < 0x0001) || (t > 0xFFFF))
  170. return -EINVAL;
  171. /* Write new heartbeat to watchdog */
  172. send_command(CMD_WRITE_WATCHDOG_TIMEOUT, &t_msb, &t_lsb);
  173. heartbeat = t;
  174. return 0;
  175. }
  176. static int pcipcwd_get_status(int *status)
  177. {
  178. int new_status;
  179. *status=0;
  180. new_status = inb_p(pcipcwd_private.io_addr + 1);
  181. if (new_status & WD_PCI_WTRP)
  182. *status |= WDIOF_CARDRESET;
  183. if (new_status & WD_PCI_TTRP) {
  184. *status |= WDIOF_OVERHEAT;
  185. if (temp_panic)
  186. panic(PFX "Temperature overheat trip!\n");
  187. }
  188. return 0;
  189. }
  190. static int pcipcwd_clear_status(void)
  191. {
  192. outb_p(0x01, pcipcwd_private.io_addr + 1);
  193. return 0;
  194. }
  195. static int pcipcwd_get_temperature(int *temperature)
  196. {
  197. *temperature = 0;
  198. if (!pcipcwd_private.supports_temp)
  199. return -ENODEV;
  200. /*
  201. * Convert celsius to fahrenheit, since this was
  202. * the decided 'standard' for this return value.
  203. */
  204. *temperature = ((inb_p(pcipcwd_private.io_addr)) * 9 / 5) + 32;
  205. return 0;
  206. }
  207. /*
  208. * /dev/watchdog handling
  209. */
  210. static ssize_t pcipcwd_write(struct file *file, const char __user *data,
  211. size_t len, loff_t *ppos)
  212. {
  213. /* See if we got the magic character 'V' and reload the timer */
  214. if (len) {
  215. if (!nowayout) {
  216. size_t i;
  217. /* note: just in case someone wrote the magic character
  218. * five months ago... */
  219. expect_release = 0;
  220. /* scan to see whether or not we got the magic character */
  221. for (i = 0; i != len; i++) {
  222. char c;
  223. if(get_user(c, data+i))
  224. return -EFAULT;
  225. if (c == 'V')
  226. expect_release = 42;
  227. }
  228. }
  229. /* someone wrote to us, we should reload the timer */
  230. pcipcwd_keepalive();
  231. }
  232. return len;
  233. }
  234. static int pcipcwd_ioctl(struct inode *inode, struct file *file,
  235. unsigned int cmd, unsigned long arg)
  236. {
  237. void __user *argp = (void __user *)arg;
  238. int __user *p = argp;
  239. static struct watchdog_info ident = {
  240. .options = WDIOF_OVERHEAT |
  241. WDIOF_CARDRESET |
  242. WDIOF_KEEPALIVEPING |
  243. WDIOF_SETTIMEOUT |
  244. WDIOF_MAGICCLOSE,
  245. .firmware_version = 1,
  246. .identity = WATCHDOG_DRIVER_NAME,
  247. };
  248. switch (cmd) {
  249. case WDIOC_GETSUPPORT:
  250. return copy_to_user(argp, &ident,
  251. sizeof (ident)) ? -EFAULT : 0;
  252. case WDIOC_GETSTATUS:
  253. {
  254. int status;
  255. pcipcwd_get_status(&status);
  256. return put_user(status, p);
  257. }
  258. case WDIOC_GETBOOTSTATUS:
  259. return put_user(pcipcwd_private.boot_status, p);
  260. case WDIOC_GETTEMP:
  261. {
  262. int temperature;
  263. if (pcipcwd_get_temperature(&temperature))
  264. return -EFAULT;
  265. return put_user(temperature, p);
  266. }
  267. case WDIOC_KEEPALIVE:
  268. pcipcwd_keepalive();
  269. return 0;
  270. case WDIOC_SETOPTIONS:
  271. {
  272. int new_options, retval = -EINVAL;
  273. if (get_user (new_options, p))
  274. return -EFAULT;
  275. if (new_options & WDIOS_DISABLECARD) {
  276. pcipcwd_stop();
  277. retval = 0;
  278. }
  279. if (new_options & WDIOS_ENABLECARD) {
  280. pcipcwd_start();
  281. retval = 0;
  282. }
  283. if (new_options & WDIOS_TEMPPANIC) {
  284. temp_panic = 1;
  285. retval = 0;
  286. }
  287. return retval;
  288. }
  289. case WDIOC_SETTIMEOUT:
  290. {
  291. int new_heartbeat;
  292. if (get_user(new_heartbeat, p))
  293. return -EFAULT;
  294. if (pcipcwd_set_heartbeat(new_heartbeat))
  295. return -EINVAL;
  296. pcipcwd_keepalive();
  297. /* Fall */
  298. }
  299. case WDIOC_GETTIMEOUT:
  300. return put_user(heartbeat, p);
  301. default:
  302. return -ENOIOCTLCMD;
  303. }
  304. }
  305. static int pcipcwd_open(struct inode *inode, struct file *file)
  306. {
  307. /* /dev/watchdog can only be opened once */
  308. if (test_and_set_bit(0, &is_active))
  309. return -EBUSY;
  310. /* Activate */
  311. pcipcwd_start();
  312. pcipcwd_keepalive();
  313. return nonseekable_open(inode, file);
  314. }
  315. static int pcipcwd_release(struct inode *inode, struct file *file)
  316. {
  317. /*
  318. * Shut off the timer.
  319. */
  320. if (expect_release == 42) {
  321. pcipcwd_stop();
  322. } else {
  323. printk(KERN_CRIT PFX "Unexpected close, not stopping watchdog!\n");
  324. pcipcwd_keepalive();
  325. }
  326. expect_release = 0;
  327. clear_bit(0, &is_active);
  328. return 0;
  329. }
  330. /*
  331. * /dev/temperature handling
  332. */
  333. static ssize_t pcipcwd_temp_read(struct file *file, char __user *data,
  334. size_t len, loff_t *ppos)
  335. {
  336. int temperature;
  337. if (pcipcwd_get_temperature(&temperature))
  338. return -EFAULT;
  339. if (copy_to_user (data, &temperature, 1))
  340. return -EFAULT;
  341. return 1;
  342. }
  343. static int pcipcwd_temp_open(struct inode *inode, struct file *file)
  344. {
  345. if (!pcipcwd_private.supports_temp)
  346. return -ENODEV;
  347. return nonseekable_open(inode, file);
  348. }
  349. static int pcipcwd_temp_release(struct inode *inode, struct file *file)
  350. {
  351. return 0;
  352. }
  353. /*
  354. * Notify system
  355. */
  356. static int pcipcwd_notify_sys(struct notifier_block *this, unsigned long code, void *unused)
  357. {
  358. if (code==SYS_DOWN || code==SYS_HALT) {
  359. /* Turn the WDT off */
  360. pcipcwd_stop();
  361. }
  362. return NOTIFY_DONE;
  363. }
  364. /*
  365. * Kernel Interfaces
  366. */
  367. static struct file_operations pcipcwd_fops = {
  368. .owner = THIS_MODULE,
  369. .llseek = no_llseek,
  370. .write = pcipcwd_write,
  371. .ioctl = pcipcwd_ioctl,
  372. .open = pcipcwd_open,
  373. .release = pcipcwd_release,
  374. };
  375. static struct miscdevice pcipcwd_miscdev = {
  376. .minor = WATCHDOG_MINOR,
  377. .name = "watchdog",
  378. .fops = &pcipcwd_fops,
  379. };
  380. static struct file_operations pcipcwd_temp_fops = {
  381. .owner = THIS_MODULE,
  382. .llseek = no_llseek,
  383. .read = pcipcwd_temp_read,
  384. .open = pcipcwd_temp_open,
  385. .release = pcipcwd_temp_release,
  386. };
  387. static struct miscdevice pcipcwd_temp_miscdev = {
  388. .minor = TEMP_MINOR,
  389. .name = "temperature",
  390. .fops = &pcipcwd_temp_fops,
  391. };
  392. static struct notifier_block pcipcwd_notifier = {
  393. .notifier_call = pcipcwd_notify_sys,
  394. };
  395. /*
  396. * Init & exit routines
  397. */
  398. static inline void check_temperature_support(void)
  399. {
  400. if (inb_p(pcipcwd_private.io_addr) != 0xF0)
  401. pcipcwd_private.supports_temp = 1;
  402. }
  403. static int __devinit pcipcwd_card_init(struct pci_dev *pdev,
  404. const struct pci_device_id *ent)
  405. {
  406. int ret = -EIO;
  407. int got_fw_rev, fw_rev_major, fw_rev_minor;
  408. char fw_ver_str[20];
  409. char option_switches;
  410. cards_found++;
  411. if (cards_found == 1)
  412. printk(KERN_INFO PFX DRIVER_VERSION);
  413. if (cards_found > 1) {
  414. printk(KERN_ERR PFX "This driver only supports 1 device\n");
  415. return -ENODEV;
  416. }
  417. if (pci_enable_device(pdev)) {
  418. printk(KERN_ERR PFX "Not possible to enable PCI Device\n");
  419. return -ENODEV;
  420. }
  421. if (pci_resource_start(pdev, 0) == 0x0000) {
  422. printk(KERN_ERR PFX "No I/O-Address for card detected\n");
  423. ret = -ENODEV;
  424. goto err_out_disable_device;
  425. }
  426. pcipcwd_private.pdev = pdev;
  427. pcipcwd_private.io_addr = pci_resource_start(pdev, 0);
  428. if (pci_request_regions(pdev, WATCHDOG_NAME)) {
  429. printk(KERN_ERR PFX "I/O address 0x%04x already in use\n",
  430. (int) pcipcwd_private.io_addr);
  431. ret = -EIO;
  432. goto err_out_disable_device;
  433. }
  434. /* get the boot_status */
  435. pcipcwd_get_status(&pcipcwd_private.boot_status);
  436. /* clear the "card caused reboot" flag */
  437. pcipcwd_clear_status();
  438. /* disable card */
  439. pcipcwd_stop();
  440. /* Check whether or not the card supports the temperature device */
  441. check_temperature_support();
  442. /* Get the Firmware Version */
  443. got_fw_rev = send_command(CMD_GET_FIRMWARE_VERSION, &fw_rev_major, &fw_rev_minor);
  444. if (got_fw_rev) {
  445. sprintf(fw_ver_str, "%u.%02u", fw_rev_major, fw_rev_minor);
  446. } else {
  447. sprintf(fw_ver_str, "<card no answer>");
  448. }
  449. /* Get switch settings */
  450. option_switches = inb_p(pcipcwd_private.io_addr + 3);
  451. printk(KERN_INFO PFX "Found card at port 0x%04x (Firmware: %s) %s temp option\n",
  452. (int) pcipcwd_private.io_addr, fw_ver_str,
  453. (pcipcwd_private.supports_temp ? "with" : "without"));
  454. printk(KERN_INFO PFX "Option switches (0x%02x): Temperature Reset Enable=%s, Power On Delay=%s\n",
  455. option_switches,
  456. ((option_switches & 0x10) ? "ON" : "OFF"),
  457. ((option_switches & 0x08) ? "ON" : "OFF"));
  458. if (pcipcwd_private.boot_status & WDIOF_CARDRESET)
  459. printk(KERN_INFO PFX "Previous reset was caused by the Watchdog card\n");
  460. if (pcipcwd_private.boot_status & WDIOF_OVERHEAT)
  461. printk(KERN_INFO PFX "Card sensed a CPU Overheat\n");
  462. if (pcipcwd_private.boot_status == 0)
  463. printk(KERN_INFO PFX "No previous trip detected - Cold boot or reset\n");
  464. /* Check that the heartbeat value is within it's range ; if not reset to the default */
  465. if (pcipcwd_set_heartbeat(heartbeat)) {
  466. pcipcwd_set_heartbeat(WATCHDOG_HEARTBEAT);
  467. printk(KERN_INFO PFX "heartbeat value must be 0<heartbeat<65536, using %d\n",
  468. WATCHDOG_HEARTBEAT);
  469. }
  470. ret = register_reboot_notifier(&pcipcwd_notifier);
  471. if (ret != 0) {
  472. printk(KERN_ERR PFX "cannot register reboot notifier (err=%d)\n",
  473. ret);
  474. goto err_out_release_region;
  475. }
  476. if (pcipcwd_private.supports_temp) {
  477. ret = misc_register(&pcipcwd_temp_miscdev);
  478. if (ret != 0) {
  479. printk(KERN_ERR PFX "cannot register miscdev on minor=%d (err=%d)\n",
  480. TEMP_MINOR, ret);
  481. goto err_out_unregister_reboot;
  482. }
  483. }
  484. ret = misc_register(&pcipcwd_miscdev);
  485. if (ret != 0) {
  486. printk(KERN_ERR PFX "cannot register miscdev on minor=%d (err=%d)\n",
  487. WATCHDOG_MINOR, ret);
  488. goto err_out_misc_deregister;
  489. }
  490. printk(KERN_INFO PFX "initialized. heartbeat=%d sec (nowayout=%d)\n",
  491. heartbeat, nowayout);
  492. return 0;
  493. err_out_misc_deregister:
  494. if (pcipcwd_private.supports_temp)
  495. misc_deregister(&pcipcwd_temp_miscdev);
  496. err_out_unregister_reboot:
  497. unregister_reboot_notifier(&pcipcwd_notifier);
  498. err_out_release_region:
  499. pci_release_regions(pdev);
  500. err_out_disable_device:
  501. pci_disable_device(pdev);
  502. return ret;
  503. }
  504. static void __devexit pcipcwd_card_exit(struct pci_dev *pdev)
  505. {
  506. /* Stop the timer before we leave */
  507. if (!nowayout)
  508. pcipcwd_stop();
  509. /* Deregister */
  510. misc_deregister(&pcipcwd_miscdev);
  511. if (pcipcwd_private.supports_temp)
  512. misc_deregister(&pcipcwd_temp_miscdev);
  513. unregister_reboot_notifier(&pcipcwd_notifier);
  514. pci_release_regions(pdev);
  515. pci_disable_device(pdev);
  516. cards_found--;
  517. }
  518. static struct pci_device_id pcipcwd_pci_tbl[] = {
  519. { PCI_VENDOR_ID_QUICKLOGIC, PCI_DEVICE_ID_WATCHDOG_PCIPCWD,
  520. PCI_ANY_ID, PCI_ANY_ID, },
  521. { 0 }, /* End of list */
  522. };
  523. MODULE_DEVICE_TABLE(pci, pcipcwd_pci_tbl);
  524. static struct pci_driver pcipcwd_driver = {
  525. .name = WATCHDOG_NAME,
  526. .id_table = pcipcwd_pci_tbl,
  527. .probe = pcipcwd_card_init,
  528. .remove = __devexit_p(pcipcwd_card_exit),
  529. };
  530. static int __init pcipcwd_init_module(void)
  531. {
  532. spin_lock_init (&pcipcwd_private.io_lock);
  533. return pci_register_driver(&pcipcwd_driver);
  534. }
  535. static void __exit pcipcwd_cleanup_module(void)
  536. {
  537. pci_unregister_driver(&pcipcwd_driver);
  538. }
  539. module_init(pcipcwd_init_module);
  540. module_exit(pcipcwd_cleanup_module);
  541. MODULE_AUTHOR("Wim Van Sebroeck <wim@iguana.be>");
  542. MODULE_DESCRIPTION("Berkshire PCI-PC Watchdog driver");
  543. MODULE_LICENSE("GPL");
  544. MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR);
  545. MODULE_ALIAS_MISCDEV(TEMP_MINOR);