€•&CŒsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ*/translations/zh_CN/watchdog/pcwd-watchdog”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/zh_TW/watchdog/pcwd-watchdog”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/it_IT/watchdog/pcwd-watchdog”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/ja_JP/watchdog/pcwd-watchdog”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/ko_KR/watchdog/pcwd-watchdog”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ*/translations/sp_SP/watchdog/pcwd-watchdog”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ#Berkshire Products PC Watchdog Card”h]”hŒ#Berkshire Products PC Watchdog Card”…””}”(hh¨hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hh£hžhhŸŒD/var/lib/git/docbuild/linux/Documentation/watchdog/pcwd-watchdog.rst”h KubhŒ paragraph”“”)”}”(hŒLast reviewed: 10/05/2007”h]”hŒLast reviewed: 10/05/2007”…””}”(hh¹hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khh£hžhubh¢)”}”(hhh]”(h§)”}”(hŒ'Support for ISA Cards Revision A and C”h]”hŒ'Support for ISA Cards Revision A and C”…””}”(hhÊhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hhÇhžhhŸh¶h Kubh¸)”}”(hŒ:Documentation and Driver by Ken Hollis ”h]”(hŒ(Documentation and Driver by Ken Hollis <”…””}”(hhØhžhhŸNh NubhŒ reference”“”)”}”(hŒkenji@bitgate.com”h]”hŒkenji@bitgate.com”…””}”(hhâhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:kenji@bitgate.com”uh1hàhhØubhŒ>”…””}”(hhØhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K hhÇhžhubhŒ block_quote”“”)”}”(hX/ The PC Watchdog is a card that offers the same type of functionality that the WDT card does, only it doesn't require an IRQ to run. Furthermore, the Revision C card allows you to monitor any IO Port to automatically trigger the card into being reset. This way you can make the card monitor hard drive status, or anything else you need. The Watchdog Driver has one basic role: to talk to the card and send signals to it so it doesn't reset your computer ... at least during normal operation. The Watchdog Driver will automatically find your watchdog card, and will attach a running driver for use with that card. After the watchdog drivers have initialized, you can then talk to the card using a PC Watchdog program. I suggest putting a "watchdog -d" before the beginning of an fsck, and a "watchdog -e -t 1" immediately after the end of an fsck. (Remember to run the program with an "&" to run it in the background!) If you want to write a program to be compatible with the PC Watchdog driver, simply use of modify the watchdog test program: tools/testing/selftests/watchdog/watchdog-test.c Other IOCTL functions include: WDIOC_GETSUPPORT This returns the support of the card itself. This returns in structure "PCWDS" which returns: options = WDIOS_TEMPPANIC (This card supports temperature) firmware_version = xxxx (Firmware version of the card) WDIOC_GETSTATUS This returns the status of the card, with the bits of WDIOF_* bitwise-anded into the value. (The comments are in include/uapi/linux/watchdog.h) WDIOC_GETBOOTSTATUS This returns the status of the card that was reported at bootup. WDIOC_GETTEMP This returns the temperature of the card. (You can also read /dev/watchdog, which gives a temperature update every second.) WDIOC_SETOPTIONS This lets you set the options of the card. You can either enable or disable the card this way. WDIOC_KEEPALIVE This pings the card to tell it not to reset your computer. And that's all she wrote! -- Ken Hollis (kenji@bitgate.com)”h]”(h¸)”}”(hXQThe PC Watchdog is a card that offers the same type of functionality that the WDT card does, only it doesn't require an IRQ to run. Furthermore, the Revision C card allows you to monitor any IO Port to automatically trigger the card into being reset. This way you can make the card monitor hard drive status, or anything else you need.”h]”hXSThe PC Watchdog is a card that offers the same type of functionality that the WDT card does, only it doesn’t require an IRQ to run. Furthermore, the Revision C card allows you to monitor any IO Port to automatically trigger the card into being reset. This way you can make the card monitor hard drive status, or anything else you need.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K hhþubh¸)”}”(hŒšThe Watchdog Driver has one basic role: to talk to the card and send signals to it so it doesn't reset your computer ... at least during normal operation.”h]”hŒœThe Watchdog Driver has one basic role: to talk to the card and send signals to it so it doesn’t reset your computer ... at least during normal operation.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khhþubh¸)”}”(hŒáThe Watchdog Driver will automatically find your watchdog card, and will attach a running driver for use with that card. After the watchdog drivers have initialized, you can then talk to the card using a PC Watchdog program.”h]”hŒáThe Watchdog Driver will automatically find your watchdog card, and will attach a running driver for use with that card. After the watchdog drivers have initialized, you can then talk to the card using a PC Watchdog program.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khhþubh¸)”}”(hŒÉI suggest putting a "watchdog -d" before the beginning of an fsck, and a "watchdog -e -t 1" immediately after the end of an fsck. (Remember to run the program with an "&" to run it in the background!)”h]”hŒÕI suggest putting a “watchdog -d†before the beginning of an fsck, and a “watchdog -e -t 1†immediately after the end of an fsck. (Remember to run the program with an “&†to run it in the background!)”…””}”(hj,hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khhþubh¸)”}”(hŒ­If you want to write a program to be compatible with the PC Watchdog driver, simply use of modify the watchdog test program: tools/testing/selftests/watchdog/watchdog-test.c”h]”hŒ­If you want to write a program to be compatible with the PC Watchdog driver, simply use of modify the watchdog test program: tools/testing/selftests/watchdog/watchdog-test.c”…””}”(hj:hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khhþubh¸)”}”(hŒOther IOCTL functions include:”h]”hŒOther IOCTL functions include:”…””}”(hjHhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K$hhþubhý)”}”(hXáWDIOC_GETSUPPORT This returns the support of the card itself. This returns in structure "PCWDS" which returns: options = WDIOS_TEMPPANIC (This card supports temperature) firmware_version = xxxx (Firmware version of the card) WDIOC_GETSTATUS This returns the status of the card, with the bits of WDIOF_* bitwise-anded into the value. (The comments are in include/uapi/linux/watchdog.h) WDIOC_GETBOOTSTATUS This returns the status of the card that was reported at bootup. WDIOC_GETTEMP This returns the temperature of the card. (You can also read /dev/watchdog, which gives a temperature update every second.) WDIOC_SETOPTIONS This lets you set the options of the card. You can either enable or disable the card this way. WDIOC_KEEPALIVE This pings the card to tell it not to reset your computer. ”h]”hŒdefinition_list”“”)”}”(hhh]”(hŒdefinition_list_item”“”)”}”(hXWDIOC_GETSUPPORT This returns the support of the card itself. This returns in structure "PCWDS" which returns: options = WDIOS_TEMPPANIC (This card supports temperature) firmware_version = xxxx (Firmware version of the card) ”h]”(hŒterm”“”)”}”(hŒWDIOC_GETSUPPORT”h]”hŒWDIOC_GETSUPPORT”…””}”(hjghžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jehŸh¶h K-hjaubhŒ definition”“”)”}”(hhh]”(h¸)”}”(hŒ^This returns the support of the card itself. This returns in structure "PCWDS" which returns:”h]”hŒbThis returns the support of the card itself. This returns in structure “PCWDS†which returns:”…””}”(hjzhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K'hjwubhý)”}”(hŒ†options = WDIOS_TEMPPANIC (This card supports temperature) firmware_version = xxxx (Firmware version of the card) ”h]”j[)”}”(hhh]”(j`)”}”(hŒ:options = WDIOS_TEMPPANIC (This card supports temperature)”h]”(jf)”}”(hŒoptions = WDIOS_TEMPPANIC”h]”hŒoptions = WDIOS_TEMPPANIC”…””}”(hj“hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jehŸh¶h K*hjubjv)”}”(hhh]”h¸)”}”(hŒ (This card supports temperature)”h]”hŒ (This card supports temperature)”…””}”(hj¤hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K+hj¡ubah}”(h]”h ]”h"]”h$]”h&]”uh1juhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j_hŸh¶h K*hjŒubj`)”}”(hŒ7firmware_version = xxxx (Firmware version of the card) ”h]”(jf)”}”(hŒfirmware_version = xxxx”h]”hŒfirmware_version = xxxx”…””}”(hjÂhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jehŸh¶h K-hj¾ubjv)”}”(hhh]”h¸)”}”(hŒ(Firmware version of the card)”h]”hŒ(Firmware version of the card)”…””}”(hjÓhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K-hjÐubah}”(h]”h ]”h"]”h$]”h&]”uh1juhj¾ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j_hŸh¶h K-hjŒubeh}”(h]”h ]”h"]”h$]”h&]”uh1jZhjˆubah}”(h]”h ]”h"]”h$]”h&]”uh1hühŸh¶h K*hjwubeh}”(h]”h ]”h"]”h$]”h&]”uh1juhjaubeh}”(h]”h ]”h"]”h$]”h&]”uh1j_hŸh¶h K-hj\ubj`)”}”(hŒ¡WDIOC_GETSTATUS This returns the status of the card, with the bits of WDIOF_* bitwise-anded into the value. (The comments are in include/uapi/linux/watchdog.h) ”h]”(jf)”}”(hŒWDIOC_GETSTATUS”h]”hŒWDIOC_GETSTATUS”…””}”(hj hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jehŸh¶h K2hjubjv)”}”(hhh]”h¸)”}”(hŒThis returns the status of the card, with the bits of WDIOF_* bitwise-anded into the value. (The comments are in include/uapi/linux/watchdog.h)”h]”hŒThis returns the status of the card, with the bits of WDIOF_* bitwise-anded into the value. (The comments are in include/uapi/linux/watchdog.h)”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K0hjubah}”(h]”h ]”h"]”h$]”h&]”uh1juhjubeh}”(h]”h ]”h"]”h$]”h&]”uh1j_hŸh¶h K2hj\ubj`)”}”(hŒUWDIOC_GETBOOTSTATUS This returns the status of the card that was reported at bootup. ”h]”(jf)”}”(hŒWDIOC_GETBOOTSTATUS”h]”hŒWDIOC_GETBOOTSTATUS”…””}”(hj8hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jehŸh¶h K6hj4ubjv)”}”(hhh]”h¸)”}”(hŒ@This returns the status of the card that was reported at bootup.”h]”hŒ@This returns the status of the card that was reported at bootup.”…””}”(hjIhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K5hjFubah}”(h]”h ]”h"]”h$]”h&]”uh1juhj4ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j_hŸh¶h K6hj\ubj`)”}”(hŒ‹WDIOC_GETTEMP This returns the temperature of the card. (You can also read /dev/watchdog, which gives a temperature update every second.) ”h]”(jf)”}”(hŒ WDIOC_GETTEMP”h]”hŒ WDIOC_GETTEMP”…””}”(hjghžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jehŸh¶h K;hjcubjv)”}”(hhh]”h¸)”}”(hŒ|This returns the temperature of the card. (You can also read /dev/watchdog, which gives a temperature update every second.)”h]”hŒ|This returns the temperature of the card. (You can also read /dev/watchdog, which gives a temperature update every second.)”…””}”(hjxhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K9hjuubah}”(h]”h ]”h"]”h$]”h&]”uh1juhjcubeh}”(h]”h ]”h"]”h$]”h&]”uh1j_hŸh¶h K;hj\ubj`)”}”(hŒqWDIOC_SETOPTIONS This lets you set the options of the card. You can either enable or disable the card this way. ”h]”(jf)”}”(hŒWDIOC_SETOPTIONS”h]”hŒWDIOC_SETOPTIONS”…””}”(hj–hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jehŸh¶h K?hj’ubjv)”}”(hhh]”h¸)”}”(hŒ_This lets you set the options of the card. You can either enable or disable the card this way.”h]”hŒ_This lets you set the options of the card. You can either enable or disable the card this way.”…””}”(hj§hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K>hj¤ubah}”(h]”h ]”h"]”h$]”h&]”uh1juhj’ubeh}”(h]”h ]”h"]”h$]”h&]”uh1j_hŸh¶h K?hj\ubj`)”}”(hŒKWDIOC_KEEPALIVE This pings the card to tell it not to reset your computer. ”h]”(jf)”}”(hŒWDIOC_KEEPALIVE”h]”hŒWDIOC_KEEPALIVE”…””}”(hjÅhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jehŸh¶h KBhjÁubjv)”}”(hhh]”h¸)”}”(hŒ:This pings the card to tell it not to reset your computer.”h]”hŒ:This pings the card to tell it not to reset your computer.”…””}”(hjÖhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KBhjÓubah}”(h]”h ]”h"]”h$]”h&]”uh1juhjÁubeh}”(h]”h ]”h"]”h$]”h&]”uh1j_hŸh¶h KBhj\ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jZhjVubah}”(h]”h ]”h"]”h$]”h&]”uh1hühŸh¶h K&hhþubh¸)”}”(hŒAnd that's all she wrote!”h]”hŒAnd that’s all she wrote!”…””}”(hjühžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KDhhþubhŒ attribution”“”)”}”(hŒKen Hollis (kenji@bitgate.com)”h]”(hŒ Ken Hollis (”…””}”(hj hžhhŸNh Nubhá)”}”(hŒkenji@bitgate.com”h]”hŒkenji@bitgate.com”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”Œmailto:kenji@bitgate.com”uh1hàhj ubhŒ)”…””}”(hj hžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1j hŸh¶h KFhhþubeh}”(h]”h ]”h"]”h$]”h&]”uh1hühŸh¶h K hhÇhžhubeh}”(h]”Œ&support-for-isa-cards-revision-a-and-c”ah ]”h"]”Œ&support for isa cards revision a and c”ah$]”h&]”uh1h¡hh£hžhhŸh¶h Kubeh}”(h]”Œ#berkshire-products-pc-watchdog-card”ah ]”h"]”Œ#berkshire products pc watchdog card”ah$]”h&]”uh1h¡hhhžhhŸh¶h Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”h¶uh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(h¦NŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jgŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”h¶Œ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(jAj>j9j6uŒ nametypes”}”(jA‰j9‰uh}”(j>h£j6hÇuŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nhžhub.