Cosmetic cleanups.
[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.2 2003/06/17 04:28:59 dillon Exp $
11  *
12  */
13
14 #ifndef _SYS_XRPUIO_H_
15 #define _SYS_XRPUIO_H_
16
17 #include <sys/ioccom.h>
18
19 #define XRPU_MAX_PPS    16
20 struct xrpu_timecounting {
21
22         /* The timecounter itself */
23         u_int           xt_addr_trigger;
24         u_int           xt_addr_latch;
25         unsigned        xt_mask;
26         u_int32_t       xt_frequency;
27         char            xt_name[16];
28
29         /* The PPS latches */
30         struct {
31                 u_int   xt_addr_assert;
32                 u_int   xt_addr_clear;
33         } xt_pps[XRPU_MAX_PPS];
34 };
35
36 #define XRPU_IOC_TIMECOUNTING _IOW('6', 1, struct xrpu_timecounting)
37
38 #endif /* _SYS_XRPUIO_H_ */