NetBSD/sys/arch/sh3/include/wdogvar.h
dholland 25d3b9e7cb Final bit of PR 41200: headers that declare ioctls should include sys/ioccom.h.
This covers most if not all of the MD headers.

XXX: a lot of the ioctl definitions in some of these files are cutpasted.
2015-09-07 03:49:44 +00:00

26 lines
556 B
C

/* $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_ */