Merge from vendor branch OPENSSL:
[dragonfly.git] / sys / sys / xrpuio.h
1 /*
2  * ----------------------------------------------------------------------------
3  * "THE BEER-WARE LICENSE" (Revision 42):
4  * <phk@FreeBSD.org> wrote this file.  As long as you retain this notice you
5  * can do whatever you want with this stuff. If we meet some day, and you think
6  * this stuff is worth it, you can buy me a beer in return.   Poul-Henning Kamp
7  * ----------------------------------------------------------------------------
8  *
9  * $FreeBSD: src/sys/sys/xrpuio.h,v 1.2 1999/08/28 00:52:12 peter Exp $
10  * $DragonFly: src/sys/sys/Attic/xrpuio.h,v 1.3 2006/05/20 02:42:13 dillon Exp $
11  *
12  */
13
14 #ifndef _SYS_XRPUIO_H_
15 #define _SYS_XRPUIO_H_
16
17 #ifndef _SYS_TYPES_H_
18 #include <sys/types.h>
19 #endif
20 #ifndef _SYS_IOCCOM_H_
21 #include <sys/ioccom.h>
22 #endif
23
24 #define XRPU_MAX_PPS    16
25 struct xrpu_timecounting {
26
27         /* The timecounter itself */
28         u_int           xt_addr_trigger;
29         u_int           xt_addr_latch;
30         unsigned        xt_mask;
31         u_int32_t       xt_frequency;
32         char            xt_name[16];
33
34         /* The PPS latches */
35         struct {
36                 u_int   xt_addr_assert;
37                 u_int   xt_addr_clear;
38         } xt_pps[XRPU_MAX_PPS];
39 };
40
41 #define XRPU_IOC_TIMECOUNTING _IOW('6', 1, struct xrpu_timecounting)
42
43 #endif /* _SYS_XRPUIO_H_ */