Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
4573b0be
Commit
4573b0be
authored
Jan 26, 2013
by
Danilo Sabato
Committed by
Alessandro Rubini
Feb 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-bare-linux: added define and struct for adj_freq (from linux/timex.h)
parent
7263af2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
0 deletions
+58
-0
bare-linux.h
arch-bare-linux/bare-linux.h
+58
-0
No files found.
arch-bare-linux/bare-linux.h
View file @
4573b0be
...
...
@@ -86,3 +86,61 @@ struct bare_timeval {
#ifndef NULL
#define NULL 0
#endif
/* from linux/timex.h */
/*
* Mode codes (timex.mode)
*/
#define ADJ_OFFSET 0x0001
/* time offset */
#define ADJ_FREQUENCY 0x0002
/* frequency offset */
#define ADJ_MAXERROR 0x0004
/* maximum time error */
#define ADJ_ESTERROR 0x0008
/* estimated time error */
#define ADJ_STATUS 0x0010
/* clock status */
#define ADJ_TIMECONST 0x0020
/* pll time constant */
#define ADJ_TAI 0x0080
/* set TAI offset */
#define ADJ_MICRO 0x1000
/* select microsecond resolution */
#define ADJ_NANO 0x2000
/* select nanosecond resolution */
#define ADJ_TICK 0x4000
/* tick value */
#define ADJ_OFFSET_SINGLESHOT 0x8001
/* old-fashioned adjtime */
#define ADJ_OFFSET_SS_READ 0xa001
/* read-only adjtime */
/* xntp 3.4 compatibility names */
#define MOD_OFFSET ADJ_OFFSET
#define MOD_FREQUENCY ADJ_FREQUENCY
#define MOD_MAXERROR ADJ_MAXERROR
#define MOD_ESTERROR ADJ_ESTERROR
#define MOD_STATUS ADJ_STATUS
#define MOD_TIMECONST ADJ_TIMECONST
struct
bare_timex
{
unsigned
int
modes
;
/* mode selector */
long
offset
;
/* time offset (usec) */
long
freq
;
/* frequency offset (scaled ppm) */
long
maxerror
;
/* maximum error (usec) */
long
esterror
;
/* estimated error (usec) */
int
status
;
/* clock command/status */
long
constant
;
/* pll time constant */
long
precision
;
/* clock precision (usec) (read only) */
long
tolerance
;
/* clock frequency tolerance (ppm)
* (read only)
*/
struct
bare_timeval
time
;
/* (read only) */
long
tick
;
/* (modified) usecs between clock ticks */
long
ppsfreq
;
/* pps frequency (scaled ppm) (ro) */
long
jitter
;
/* pps jitter (us) (ro) */
int
shift
;
/* interval duration (s) (shift) (ro) */
long
stabil
;
/* pps stability (scaled ppm) (ro) */
long
jitcnt
;
/* jitter limit exceeded (ro) */
long
calcnt
;
/* calibration intervals (ro) */
long
errcnt
;
/* calibration errors (ro) */
long
stbcnt
;
/* stability limit exceeded (ro) */
int
tai
;
/* TAI offset (ro) */
int
:
32
;
int
:
32
;
int
:
32
;
int
:
32
;
int
:
32
;
int
:
32
;
int
:
32
;
int
:
32
;
int
:
32
;
int
:
32
;
int
:
32
;
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment