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