blob: 9b4a5bdf1f642362b291f63c0c38844aa4e26cb2 [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 */
Tao Baod7db5942015-01-28 10:07:51 -080024 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),
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 SOF_TIMESTAMPING_SOFTWARE = (1 << 4),
30 SOF_TIMESTAMPING_SYS_HARDWARE = (1 << 5),
31 SOF_TIMESTAMPING_RAW_HARDWARE = (1 << 6),
32 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 */
Tao Baod7db5942015-01-28 10:07:51 -080034 SOF_TIMESTAMPING_TX_SCHED = (1 << 8),
35 SOF_TIMESTAMPING_TX_ACK = (1 << 9),
Christopher Ferris05d08e92016-02-04 13:16:38 -080036 SOF_TIMESTAMPING_OPT_CMSG = (1 << 10),
37 SOF_TIMESTAMPING_OPT_TSONLY = (1 << 11),
Christopher Ferris82d75042015-01-26 10:57:07 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080039 SOF_TIMESTAMPING_OPT_STATS = (1 << 12),
40 SOF_TIMESTAMPING_LAST = SOF_TIMESTAMPING_OPT_STATS,
Christopher Ferris05d08e92016-02-04 13:16:38 -080041 SOF_TIMESTAMPING_MASK = (SOF_TIMESTAMPING_LAST - 1) | SOF_TIMESTAMPING_LAST
Ben Cheng655a7c02013-10-16 16:09:24 -070042};
Christopher Ferris05d08e92016-02-04 13:16:38 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080044#define SOF_TIMESTAMPING_TX_RECORD_MASK (SOF_TIMESTAMPING_TX_HARDWARE | SOF_TIMESTAMPING_TX_SOFTWARE | SOF_TIMESTAMPING_TX_SCHED | SOF_TIMESTAMPING_TX_ACK)
Christopher Ferris106b3a82016-08-24 12:15:38 -070045struct hwtstamp_config {
Tao Baod7db5942015-01-28 10:07:51 -080046 int flags;
47 int tx_type;
Christopher Ferris05d08e92016-02-04 13:16:38 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080049 int rx_filter;
Christopher Ferris106b3a82016-08-24 12:15:38 -070050};
Ben Cheng655a7c02013-10-16 16:09:24 -070051enum hwtstamp_tx_types {
Tao Baod7db5942015-01-28 10:07:51 -080052 HWTSTAMP_TX_OFF,
Christopher Ferris05d08e92016-02-04 13:16:38 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080054 HWTSTAMP_TX_ON,
Christopher Ferris106b3a82016-08-24 12:15:38 -070055 HWTSTAMP_TX_ONESTEP_SYNC,
Ben Cheng655a7c02013-10-16 16:09:24 -070056};
57enum hwtstamp_rx_filters {
Christopher Ferris05d08e92016-02-04 13:16:38 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080059 HWTSTAMP_FILTER_NONE,
Christopher Ferris106b3a82016-08-24 12:15:38 -070060 HWTSTAMP_FILTER_ALL,
Tao Baod7db5942015-01-28 10:07:51 -080061 HWTSTAMP_FILTER_SOME,
62 HWTSTAMP_FILTER_PTP_V1_L4_EVENT,
Christopher Ferris05d08e92016-02-04 13:16:38 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080064 HWTSTAMP_FILTER_PTP_V1_L4_SYNC,
Christopher Ferris106b3a82016-08-24 12:15:38 -070065 HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ,
Tao Baod7db5942015-01-28 10:07:51 -080066 HWTSTAMP_FILTER_PTP_V2_L4_EVENT,
67 HWTSTAMP_FILTER_PTP_V2_L4_SYNC,
Christopher Ferris05d08e92016-02-04 13:16:38 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080069 HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ,
Christopher Ferris106b3a82016-08-24 12:15:38 -070070 HWTSTAMP_FILTER_PTP_V2_L2_EVENT,
Tao Baod7db5942015-01-28 10:07:51 -080071 HWTSTAMP_FILTER_PTP_V2_L2_SYNC,
72 HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ,
Christopher Ferris05d08e92016-02-04 13:16:38 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080074 HWTSTAMP_FILTER_PTP_V2_EVENT,
Christopher Ferris106b3a82016-08-24 12:15:38 -070075 HWTSTAMP_FILTER_PTP_V2_SYNC,
Tao Baod7db5942015-01-28 10:07:51 -080076 HWTSTAMP_FILTER_PTP_V2_DELAY_REQ,
Ben Cheng655a7c02013-10-16 16:09:24 -070077};
Christopher Ferris106b3a82016-08-24 12:15:38 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080079#endif