mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Header file for XRPU devices.
This commit is contained in:
parent
d6324f511d
commit
bd66abc2e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40628
37
sys/sys/xrpuio.h
Normal file
37
sys/sys/xrpuio.h
Normal file
@ -0,0 +1,37 @@
|
||||
/*
|
||||
* ----------------------------------------------------------------------------
|
||||
* "THE BEER-WARE LICENSE" (Revision 42):
|
||||
* <phk@FreeBSD.org> wrote this file. As long as you retain this notice you
|
||||
* can do whatever you want with this stuff. If we meet some day, and you think
|
||||
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
|
||||
* ----------------------------------------------------------------------------
|
||||
*
|
||||
* $Id$
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _SYS_XRPUIO_H_
|
||||
#define _SYS_XRPUIO_H_
|
||||
|
||||
#include <sys/ioccom.h>
|
||||
|
||||
#define XRPU_MAX_PPS 16
|
||||
struct xrpu_timecounting {
|
||||
|
||||
/* The timecounter itself */
|
||||
u_int xt_addr_trigger;
|
||||
u_int xt_addr_latch;
|
||||
unsigned xt_mask;
|
||||
u_int32_t xt_frequency;
|
||||
char xt_name[16];
|
||||
|
||||
/* The PPS latches */
|
||||
struct {
|
||||
u_int xt_addr_assert;
|
||||
u_int xt_addr_clear;
|
||||
} xt_pps[XRPU_MAX_PPS];
|
||||
};
|
||||
|
||||
#define XRPU_IOC_TIMECOUNTING _IOW('6', 1, struct xrpu_timecounting)
|
||||
|
||||
#endif /* _SYS_XRPUIO_H_ */
|
Loading…
Reference in New Issue
Block a user