Last change
on this file since 703 was 679, checked in by David Azarewicz, 4 years ago |
Merge changes from Paul's uniaud32next branch.
|
File size:
788 bytes
|
Line | |
---|
1 | #ifndef _LINUX_TIMEKEEPING_H
|
---|
2 | #define _LINUX_TIMEKEEPING_H
|
---|
3 |
|
---|
4 | #include <linux/errno.h>
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * struct system_device_crosststamp - system/device cross-timestamp
|
---|
8 | * (syncronized capture)
|
---|
9 | * @device: Device time
|
---|
10 | * @sys_realtime: Realtime simultaneous with device time
|
---|
11 | * @sys_monoraw: Monotonic raw simultaneous with device time
|
---|
12 | */
|
---|
13 | struct system_device_crosststamp {
|
---|
14 | ktime_t device;
|
---|
15 | ktime_t sys_realtime;
|
---|
16 | ktime_t sys_monoraw;
|
---|
17 | };
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Get cross timestamp between system clock and device clock
|
---|
21 | */
|
---|
22 | extern int get_device_system_crosststamp(
|
---|
23 | int (*get_time_fn)(ktime_t *device_time,
|
---|
24 | struct system_counterval_t *system_counterval,
|
---|
25 | void *ctx),
|
---|
26 | void *ctx,
|
---|
27 | struct system_time_snapshot *history,
|
---|
28 | struct system_device_crosststamp *xtstamp);
|
---|
29 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.