NetBSD/sys/arch/sh3/include/wdogvar.h

24 lines
526 B
C

/* $NetBSD: wdogvar.h,v 1.4 2002/02/12 15:26:48 uch Exp $ */
#ifndef _SH3_WDOGVAR_H_
#define _SH3_WDOGVAR_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_ */