pcwd-watchdog.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Berkshire Products PC Watchdog Card
  2. Support for ISA Cards Revision A and C
  3. Documentation and Driver by Ken Hollis <kenji@bitgate.com>
  4. The PC Watchdog is a card that offers the same type of functionality that
  5. the WDT card does, only it doesn't require an IRQ to run. Furthermore,
  6. the Revision C card allows you to monitor any IO Port to automatically
  7. trigger the card into being reset. This way you can make the card
  8. monitor hard drive status, or anything else you need.
  9. The Watchdog Driver has one basic role: to talk to the card and send
  10. signals to it so it doesn't reset your computer ... at least during
  11. normal operation.
  12. The Watchdog Driver will automatically find your watchdog card, and will
  13. attach a running driver for use with that card. After the watchdog
  14. drivers have initialized, you can then talk to the card using the PC
  15. Watchdog program, available from http://ftp.bitgate.com/pcwd/.
  16. I suggest putting a "watchdog -d" before the beginning of an fsck, and
  17. a "watchdog -e -t 1" immediately after the end of an fsck. (Remember
  18. to run the program with an "&" to run it in the background!)
  19. If you want to write a program to be compatible with the PC Watchdog
  20. driver, simply use of modify the watchdog test program:
  21. Documentation/watchdog/src/watchdog-test.c
  22. Other IOCTL functions include:
  23. WDIOC_GETSUPPORT
  24. This returns the support of the card itself. This
  25. returns in structure "PCWDS" which returns:
  26. options = WDIOS_TEMPPANIC
  27. (This card supports temperature)
  28. firmware_version = xxxx
  29. (Firmware version of the card)
  30. WDIOC_GETSTATUS
  31. This returns the status of the card, with the bits of
  32. WDIOF_* bitwise-anded into the value. (The comments
  33. are in linux/pcwd.h)
  34. WDIOC_GETBOOTSTATUS
  35. This returns the status of the card that was reported
  36. at bootup.
  37. WDIOC_GETTEMP
  38. This returns the temperature of the card. (You can also
  39. read /dev/watchdog, which gives a temperature update
  40. every second.)
  41. WDIOC_SETOPTIONS
  42. This lets you set the options of the card. You can either
  43. enable or disable the card this way.
  44. WDIOC_KEEPALIVE
  45. This pings the card to tell it not to reset your computer.
  46. And that's all she wrote!
  47. -- Ken Hollis
  48. (kenji@bitgate.com)
  49. (This documentation may be out of date. Check
  50. http://ftp.bitgate.com/pcwd/ for the absolute latest additions.)