blob: 06f6cb1efc42480f131d1ac9f6389843704e9932 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _NET_TIMESTAMPING_H
20#define _NET_TIMESTAMPING_H
21#include <linux/socket.h>
22enum {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 SOF_TIMESTAMPING_TX_HARDWARE = (1<<0),
25 SOF_TIMESTAMPING_TX_SOFTWARE = (1<<1),
26 SOF_TIMESTAMPING_RX_HARDWARE = (1<<2),
27 SOF_TIMESTAMPING_RX_SOFTWARE = (1<<3),
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 SOF_TIMESTAMPING_SOFTWARE = (1<<4),
30 SOF_TIMESTAMPING_SYS_HARDWARE = (1<<5),
31 SOF_TIMESTAMPING_RAW_HARDWARE = (1<<6),
Christopher Ferris82d75042015-01-26 10:57:07 -080032 SOF_TIMESTAMPING_OPT_ID = (1<<7),
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris82d75042015-01-26 10:57:07 -080034 SOF_TIMESTAMPING_TX_SCHED = (1<<8),
35 SOF_TIMESTAMPING_TX_ACK = (1<<9),
36 SOF_TIMESTAMPING_LAST = SOF_TIMESTAMPING_TX_ACK,
37 SOF_TIMESTAMPING_MASK = (SOF_TIMESTAMPING_LAST - 1) |
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 SOF_TIMESTAMPING_LAST
Ben Cheng655a7c02013-10-16 16:09:24 -070040};
41struct hwtstamp_config {
Ben Cheng655a7c02013-10-16 16:09:24 -070042 int flags;
Christopher Ferris82d75042015-01-26 10:57:07 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070044 int tx_type;
45 int rx_filter;
46};
Ben Cheng655a7c02013-10-16 16:09:24 -070047enum hwtstamp_tx_types {
Christopher Ferris82d75042015-01-26 10:57:07 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070049 HWTSTAMP_TX_OFF,
50 HWTSTAMP_TX_ON,
51 HWTSTAMP_TX_ONESTEP_SYNC,
Ben Cheng655a7c02013-10-16 16:09:24 -070052};
Christopher Ferris82d75042015-01-26 10:57:07 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070054enum hwtstamp_rx_filters {
55 HWTSTAMP_FILTER_NONE,
56 HWTSTAMP_FILTER_ALL,
Ben Cheng655a7c02013-10-16 16:09:24 -070057 HWTSTAMP_FILTER_SOME,
Christopher Ferris82d75042015-01-26 10:57:07 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070059 HWTSTAMP_FILTER_PTP_V1_L4_EVENT,
60 HWTSTAMP_FILTER_PTP_V1_L4_SYNC,
61 HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ,
Ben Cheng655a7c02013-10-16 16:09:24 -070062 HWTSTAMP_FILTER_PTP_V2_L4_EVENT,
Christopher Ferris82d75042015-01-26 10:57:07 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070064 HWTSTAMP_FILTER_PTP_V2_L4_SYNC,
65 HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ,
66 HWTSTAMP_FILTER_PTP_V2_L2_EVENT,
Ben Cheng655a7c02013-10-16 16:09:24 -070067 HWTSTAMP_FILTER_PTP_V2_L2_SYNC,
Christopher Ferris82d75042015-01-26 10:57:07 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070069 HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ,
70 HWTSTAMP_FILTER_PTP_V2_EVENT,
71 HWTSTAMP_FILTER_PTP_V2_SYNC,
Ben Cheng655a7c02013-10-16 16:09:24 -070072 HWTSTAMP_FILTER_PTP_V2_DELAY_REQ,
Christopher Ferris82d75042015-01-26 10:57:07 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070074};
75#endif