Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
pps.h File Reference
#include <linux/types.h>
#include <linux/ioctl.h>

Go to the source code of this file.

Data Structures

struct  pps_ktime
 
struct  pps_kinfo
 
struct  pps_kparams
 
struct  pps_fdata
 
struct  pps_bind_args
 

Macros

#define PPS_VERSION   "5.3.6"
 
#define PPS_MAX_SOURCES   16 /* should be enough... */
 
#define PPS_API_VERS_1   1
 
#define PPS_API_VERS   PPS_API_VERS_1 /* we use API version 1 */
 
#define PPS_MAX_NAME_LEN   32
 
#define PPS_TIME_INVALID   (1<<0) /* used to specify timeout==NULL */
 
#define PPS_CAPTUREASSERT   0x01 /* capture assert events */
 
#define PPS_CAPTURECLEAR   0x02 /* capture clear events */
 
#define PPS_CAPTUREBOTH   0x03 /* capture assert and clear events */
 
#define PPS_OFFSETASSERT   0x10 /* apply compensation for assert ev. */
 
#define PPS_OFFSETCLEAR   0x20 /* apply compensation for clear ev. */
 
#define PPS_CANWAIT   0x100 /* can we wait for an event? */
 
#define PPS_CANPOLL   0x200 /* bit reserved for future use */
 
#define PPS_ECHOASSERT   0x40 /* feed back assert event to output */
 
#define PPS_ECHOCLEAR   0x80 /* feed back clear event to output */
 
#define PPS_TSFMT_TSPEC   0x1000 /* select timespec format */
 
#define PPS_TSFMT_NTPFP   0x2000 /* select NTP format */
 
#define PPS_KC_HARDPPS   0 /* hardpps() (or equivalent) */
 
#define PPS_KC_HARDPPS_PLL
 
#define PPS_KC_HARDPPS_FLL
 
#define PPS_GETPARAMS   _IOR('p', 0xa1, struct pps_kparams *)
 
#define PPS_SETPARAMS   _IOW('p', 0xa2, struct pps_kparams *)
 
#define PPS_GETCAP   _IOR('p', 0xa3, int *)
 
#define PPS_FETCH   _IOWR('p', 0xa4, struct pps_fdata *)
 
#define PPS_KC_BIND   _IOW('p', 0xa5, struct pps_bind_args *)
 

Macro Definition Documentation

#define PPS_API_VERS   PPS_API_VERS_1 /* we use API version 1 */

Definition at line 39 of file pps.h.

#define PPS_API_VERS_1   1

Definition at line 38 of file pps.h.

#define PPS_CANPOLL   0x200 /* bit reserved for future use */

Definition at line 88 of file pps.h.

#define PPS_CANWAIT   0x100 /* can we wait for an event? */

Definition at line 87 of file pps.h.

#define PPS_CAPTUREASSERT   0x01 /* capture assert events */

Definition at line 80 of file pps.h.

#define PPS_CAPTUREBOTH   0x03 /* capture assert and clear events */

Definition at line 82 of file pps.h.

#define PPS_CAPTURECLEAR   0x02 /* capture clear events */

Definition at line 81 of file pps.h.

#define PPS_ECHOASSERT   0x40 /* feed back assert event to output */

Definition at line 91 of file pps.h.

#define PPS_ECHOCLEAR   0x80 /* feed back clear event to output */

Definition at line 92 of file pps.h.

#define PPS_FETCH   _IOWR('p', 0xa4, struct pps_fdata *)

Definition at line 126 of file pps.h.

#define PPS_GETCAP   _IOR('p', 0xa3, int *)

Definition at line 125 of file pps.h.

#define PPS_GETPARAMS   _IOR('p', 0xa1, struct pps_kparams *)

Definition at line 123 of file pps.h.

#define PPS_KC_BIND   _IOW('p', 0xa5, struct pps_bind_args *)

Definition at line 127 of file pps.h.

#define PPS_KC_HARDPPS   0 /* hardpps() (or equivalent) */

Definition at line 103 of file pps.h.

#define PPS_KC_HARDPPS_FLL
Value:
2 /* hardpps() constrained to
use a frequency-locked loop */

Definition at line 105 of file pps.h.

#define PPS_KC_HARDPPS_PLL
Value:
1 /* hardpps() constrained to
use a phase-locked loop */

Definition at line 104 of file pps.h.

#define PPS_MAX_NAME_LEN   32

Definition at line 40 of file pps.h.

#define PPS_MAX_SOURCES   16 /* should be enough... */

Definition at line 28 of file pps.h.

#define PPS_OFFSETASSERT   0x10 /* apply compensation for assert ev. */

Definition at line 84 of file pps.h.

#define PPS_OFFSETCLEAR   0x20 /* apply compensation for clear ev. */

Definition at line 85 of file pps.h.

#define PPS_SETPARAMS   _IOW('p', 0xa2, struct pps_kparams *)

Definition at line 124 of file pps.h.

#define PPS_TIME_INVALID   (1<<0) /* used to specify timeout==NULL */

Definition at line 58 of file pps.h.

#define PPS_TSFMT_NTPFP   0x2000 /* select NTP format */

Definition at line 96 of file pps.h.

#define PPS_TSFMT_TSPEC   0x1000 /* select timespec format */

Definition at line 95 of file pps.h.

#define PPS_VERSION   "5.3.6"

Definition at line 27 of file pps.h.