1 /* $NetBSD: wdogvar.h,v 1.7 2015/09/07 03:49:45 dholland Exp $ */ 2 3 #ifndef _SH3_WDOGVAR_H_ 4 #define _SH3_WDOGVAR_H_ 5 6 #include <sys/ioccom.h> 7 8 #define WDOGF_OPEN 1 9 10 #define SIORESETWDOG _IO('S', 0x0) 11 #define SIOSTARTWDOG _IO('S', 0x1) 12 #define SIOSTOPWDOG _IO('S', 0x2) 13 #define SIOSETWDOG _IOW('S', 0x3, int) 14 #define SIOWDOGSETMODE _IOW('S', 0x4, int) 15 16 #define WDOGM_RESET 1 17 #define WDOGM_INTR 2 18 19 #ifdef _KERNEL 20 extern unsigned int maxwdog; 21 extern void wdog_wr_cnt(unsigned char); 22 extern void wdog_wr_csr(unsigned char); 23 #endif 24 25 #endif /* !_SH3_WDOGVAR_H_ */ 26