mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
pps: add kernel consumer support
Add an optional feature of PPSAPI, kernel consumer support, which uses the added hardpps() function. Signed-off-by: Alexander Gordeev <lasaine@lvk.cs.msu.su> Acked-by: Rodolfo Giometti <giometti@linux.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
e2c18e49a0
commit
717c033669
7 changed files with 220 additions and 2 deletions
|
|
@ -114,11 +114,18 @@ struct pps_fdata {
|
|||
struct pps_ktime timeout;
|
||||
};
|
||||
|
||||
struct pps_bind_args {
|
||||
int tsformat; /* format of time stamps */
|
||||
int edge; /* selected event type */
|
||||
int consumer; /* selected kernel consumer */
|
||||
};
|
||||
|
||||
#include <linux/ioctl.h>
|
||||
|
||||
#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 *)
|
||||
|
||||
#endif /* _PPS_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue