Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** |
| 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> |
| 22 | enum { |
| 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 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), |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 29 | 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 Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 34 | 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) | SOF_TIMESTAMPING_LAST |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | }; |
| 40 | struct hwtstamp_config { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 41 | int flags; |
| 42 | int tx_type; |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 44 | int rx_filter; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 45 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 46 | enum hwtstamp_tx_types { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | HWTSTAMP_TX_OFF, |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 49 | HWTSTAMP_TX_ON, |
| 50 | HWTSTAMP_TX_ONESTEP_SYNC, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 51 | }; |
| 52 | enum hwtstamp_rx_filters { |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 54 | HWTSTAMP_FILTER_NONE, |
| 55 | HWTSTAMP_FILTER_ALL, |
| 56 | HWTSTAMP_FILTER_SOME, |
| 57 | HWTSTAMP_FILTER_PTP_V1_L4_EVENT, |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 59 | HWTSTAMP_FILTER_PTP_V1_L4_SYNC, |
| 60 | HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ, |
| 61 | HWTSTAMP_FILTER_PTP_V2_L4_EVENT, |
| 62 | HWTSTAMP_FILTER_PTP_V2_L4_SYNC, |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 64 | HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ, |
| 65 | HWTSTAMP_FILTER_PTP_V2_L2_EVENT, |
| 66 | HWTSTAMP_FILTER_PTP_V2_L2_SYNC, |
| 67 | HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ, |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 69 | HWTSTAMP_FILTER_PTP_V2_EVENT, |
| 70 | HWTSTAMP_FILTER_PTP_V2_SYNC, |
| 71 | HWTSTAMP_FILTER_PTP_V2_DELAY_REQ, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 72 | }; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 74 | #endif |