require '_h2ph_pre.ph';

unless(defined(&_LINUX_WATCHDOG_H)) {
    eval 'sub _LINUX_WATCHDOG_H () {1;}' unless defined(&_LINUX_WATCHDOG_H);
    require 'linux/ioctl.ph';
    eval 'sub WATCHDOG_IOCTL_BASE () {ord(\'W\');}' unless defined(&WATCHDOG_IOCTL_BASE);
    eval 'sub WDIOC_GETSUPPORT () { &_IOR( &WATCHDOG_IOCTL_BASE, 0, \'struct watchdog_info\');}' unless defined(&WDIOC_GETSUPPORT);
    eval 'sub WDIOC_GETSTATUS () { &_IOR( &WATCHDOG_IOCTL_BASE, 1, \'int\');}' unless defined(&WDIOC_GETSTATUS);
    eval 'sub WDIOC_GETBOOTSTATUS () { &_IOR( &WATCHDOG_IOCTL_BASE, 2, \'int\');}' unless defined(&WDIOC_GETBOOTSTATUS);
    eval 'sub WDIOC_GETTEMP () { &_IOR( &WATCHDOG_IOCTL_BASE, 3, \'int\');}' unless defined(&WDIOC_GETTEMP);
    eval 'sub WDIOC_SETOPTIONS () { &_IOR( &WATCHDOG_IOCTL_BASE, 4, \'int\');}' unless defined(&WDIOC_SETOPTIONS);
    eval 'sub WDIOC_KEEPALIVE () { &_IOR( &WATCHDOG_IOCTL_BASE, 5, \'int\');}' unless defined(&WDIOC_KEEPALIVE);
    eval 'sub WDIOF_UNKNOWN () {-1;}' unless defined(&WDIOF_UNKNOWN);
    eval 'sub WDIOS_UNKNOWN () {-1;}' unless defined(&WDIOS_UNKNOWN);
    eval 'sub WDIOF_OVERHEAT () {0x1;}' unless defined(&WDIOF_OVERHEAT);
    eval 'sub WDIOF_FANFAULT () {0x2;}' unless defined(&WDIOF_FANFAULT);
    eval 'sub WDIOF_EXTERN1 () {0x4;}' unless defined(&WDIOF_EXTERN1);
    eval 'sub WDIOF_EXTERN2 () {0x8;}' unless defined(&WDIOF_EXTERN2);
    eval 'sub WDIOF_POWERUNDER () {0x10;}' unless defined(&WDIOF_POWERUNDER);
    eval 'sub WDIOF_CARDRESET () {0x20;}' unless defined(&WDIOF_CARDRESET);
    eval 'sub WDIOF_POWEROVER () {0x40;}' unless defined(&WDIOF_POWEROVER);
    eval 'sub WDIOF_KEEPALIVEPING () {0x8000;}' unless defined(&WDIOF_KEEPALIVEPING);
    eval 'sub WDIOS_DISABLECARD () {0x1;}' unless defined(&WDIOS_DISABLECARD);
    eval 'sub WDIOS_ENABLECARD () {0x2;}' unless defined(&WDIOS_ENABLECARD);
    eval 'sub WDIOS_TEMPPANIC () {0x4;}' unless defined(&WDIOS_TEMPPANIC);
}
1;
