diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-04-30 19:48:45 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-04-30 19:48:45 +0000 |
commit | 9c30ce571e012773c9124d75ff085f96104447e5 (patch) | |
tree | fa4f35e990b8f2443cde9eaca57fc49c9f502ece /sys/sys/timepps.h | |
parent | d5efb9fab4e8a31f1a114be752fb5f4469be343b (diff) | |
download | src-9c30ce571e012773c9124d75ff085f96104447e5.tar.gz src-9c30ce571e012773c9124d75ff085f96104447e5.zip |
Brucifixion ? Yes, out that door, row on the left, one patch each.
Notes
Notes:
svn path=/head/; revision=95817
Diffstat (limited to 'sys/sys/timepps.h')
-rw-r--r-- | sys/sys/timepps.h | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/sys/sys/timepps.h b/sys/sys/timepps.h index a3daaca8b02e..5fe54de978d3 100644 --- a/sys/sys/timepps.h +++ b/sys/sys/timepps.h @@ -16,6 +16,7 @@ #define _SYS_TIMEPPS_H_ #include <sys/ioccom.h> +#include <sys/time.h> #define PPS_API_VERS_1 1 @@ -103,26 +104,26 @@ struct pps_kcbind_args { #define PPS_IOC_KCBIND _IOW('1', 7, struct pps_kcbind_args) #ifdef _KERNEL -struct timehands; -struct timecounter; + struct pps_state { - /* capture information */ - struct timehands *capth; - u_int capgen; - u_int capcount; - /* state information */ - pps_params_t ppsparam; - pps_info_t ppsinfo; - int kcmode; - int ppscap; - struct timecounter *ppstc; - unsigned ppscount[3]; + /* Capture information. */ + struct timehands *capth; + unsigned capgen; + unsigned capcount; + + /* State information. */ + pps_params_t ppsparam; + pps_info_t ppsinfo; + int kcmode; + int ppscap; + struct timecounter *ppstc; + unsigned ppscount[3]; }; void pps_capture(struct pps_state *pps); void pps_event(struct pps_state *pps, int event); void pps_init(struct pps_state *pps); -int pps_ioctl(u_long cmd, caddr_t data, struct pps_state *pps); +int pps_ioctl(unsigned long cmd, caddr_t data, struct pps_state *pps); void hardpps(struct timespec *tsp, long nsec); #else /* !_KERNEL */ @@ -194,5 +195,6 @@ time_pps_kcbind(pps_handle_t handle, const int kernel_consumer, return (ioctl(handle, PPS_IOC_KCBIND, &arg)); } -#endif /* !_KERNEL */ -#endif /* _SYS_TIMEPPS_H_ */ +#endif /* KERNEL */ + +#endif /* !_SYS_TIMEPPS_H_ */ |