]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - sys/sys/xrpuio.h
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.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$
10  *
11  */
12
13 #ifndef _SYS_XRPUIO_H_
14 #define _SYS_XRPUIO_H_
15
16 #include <sys/ioccom.h>
17
18 #define XRPU_MAX_PPS    16
19 struct xrpu_timecounting {
20
21         /* The timecounter itself */
22         u_int           xt_addr_trigger;
23         u_int           xt_addr_latch;
24         unsigned        xt_mask;
25         u_int32_t       xt_frequency;
26         char            xt_name[16];
27
28         /* The PPS latches */
29         struct {
30                 u_int   xt_addr_assert;
31                 u_int   xt_addr_clear;
32         } xt_pps[XRPU_MAX_PPS];
33 };
34
35 #define XRPU_IOC_TIMECOUNTING _IOW('6', 1, struct xrpu_timecounting)
36
37 #endif /* _SYS_XRPUIO_H_ */