22 #include <sys/types.h> 25 #include <sys/ioctl.h> 37 #define ERROR_NOSUPPORT -1 39 #define WATCHDOG_IOCTL_BASE 'W' 40 #define WDIOC_GETSUPPORT _IOR(WATCHDOG_IOCTL_BASE, 0, struct watchdog_info) 41 #define WDIOC_SETTIMEOUT _IOWR(WATCHDOG_IOCTL_BASE, 6, int) 42 #define WDIOC_GETTIMEOUT _IOR(WATCHDOG_IOCTL_BASE, 7, int) 43 #define WDIOS_DISABLECARD 0x0001 44 #define WDIOS_ENABLECARD 0x0002 45 #define WDIOC_SETOPTIONS _IOR(WATCHDOG_IOCTL_BASE, 4, int) 46 #define WDIOC_KEEPALIVE _IOR(WATCHDOG_IOCTL_BASE, 5, int)
int EnableWtd(int TimeOut_s)
使能看门狗设备
unsigned int firmware_version
该卡的固定卡版本
Definition: tq_wdg.h:33
unsigned char identity[32]
板21的信息
Definition: tq_wdg.h:34
看门狗信息结构体
Definition: tq_wdg.h:30
unsigned int options
卡/驱动程序支持的选项19
Definition: tq_wdg.h:32
int DisableWtd(int fd)
关闭看门狗