xref: /netbsd-src/sys/arch/sh3/include/wdogvar.h (revision 3b01aba77a7a698587faaae455bbfe740923c1f5)
1 /* $NetBSD: wdogvar.h,v 1.3 2000/10/31 02:04:13 msaitoh Exp $ */
2 
3 #ifndef _SH3_WDOGVAR_H_
4 #define _SH3_WDOGVAR_H_
5 
6 #define WDOGF_OPEN	1
7 
8 #define SIORESETWDOG	_IO('S', 0x0)
9 #define SIOSTARTWDOG	_IO('S', 0x1)
10 #define SIOSTOPWDOG	_IO('S', 0x2)
11 #define	SIOSETWDOG	_IOW('S', 0x3, int)
12 #define SIOWDOGSETMODE	_IOW('S', 0x4, int)
13 
14 #define WDOGM_RESET	1
15 #define WDOGM_INTR	2
16 
17 #ifdef _KERNEL
18 extern unsigned int maxwdog;
19 extern void wdog_wr_cnt __P((unsigned char));
20 extern void wdog_wr_csr __P((unsigned char));
21 #endif
22 
23 #endif /* !_SH3_WDOGVAR_H_ */
24