Mercurial > vordog
comparison vordog.h @ 0:71475f5afa92
Watchdog for Vortex86 6071 on FreeBSD
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 08 Jul 2008 09:57:54 +0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:71475f5afa92 |
---|---|
1 #ifndef __VORDOG_H_ | |
2 #define __VORDOG_H_ | |
3 | |
4 #include <sys/ioccom.h> | |
5 | |
6 #define VDT_4MS 0x00 | |
7 #define VDT_1S 0x01 | |
8 #define VDT_1M 0x02 | |
9 #define VDT_1H 0x03 | |
10 | |
11 typedef struct vordog_cfg { | |
12 int init_val; | |
13 int unit; | |
14 } * vordog_cfg_t; | |
15 | |
16 #define VDCTL_ENABLE _IOW('E', 0, struct vordog_cfg) | |
17 #define VDCTL_RESET _IO('R', 0) | |
18 #define VDCTL_DISABLE _IO('D', 0) | |
19 | |
20 #endif /* __VORDOG_H_ */ |