net/ice/base: add ethertype IPv6 check for dummy packet
[dpdk.git] / drivers / net / ice / base / ice_ptp_consts.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2001-2021 Intel Corporation
3  */
4
5 #ifndef _ICE_PTP_CONSTS_H_
6 #define _ICE_PTP_CONSTS_H_
7
8 /* Constant definitions related to the hardware clock used for PTP 1588
9  * features and functionality.
10  */
11 /* Constants defined for the PTP 1588 clock hardware. */
12
13 /*
14  * struct ice_time_ref_info_e822
15  *
16  * E822 hardware can use different sources as the reference for the PTP
17  * hardware clock. Each clock has different characteristics such as a slightly
18  * different frequency, etc.
19  *
20  * This lookup table defines several constants that depend on the current time
21  * reference. See the struct ice_time_ref_info_e822 for information about the
22  * meaning of each constant.
23  */
24 const struct ice_time_ref_info_e822 e822_time_ref[NUM_ICE_TIME_REF_FREQ] = {
25         /* ICE_TIME_REF_FREQ_25_000 -> 25 MHz */
26         {
27                 /* pll_freq */
28                 823437500, /* 823.4375 MHz PLL */
29                 /* nominal_incval */
30                 0x136e44fabULL,
31                 /* pps_delay */
32                 11,
33         },
34
35         /* ICE_TIME_REF_FREQ_122_880 -> 122.88 MHz */
36         {
37                 /* pll_freq */
38                 783360000, /* 783.36 MHz */
39                 /* nominal_incval */
40                 0x146cc2177ULL,
41                 /* pps_delay */
42                 12,
43         },
44
45         /* ICE_TIME_REF_FREQ_125_000 -> 125 MHz */
46         {
47                 /* pll_freq */
48                 796875000, /* 796.875 MHz */
49                 /* nominal_incval */
50                 0x141414141ULL,
51                 /* pps_delay */
52                 12,
53         },
54
55         /* ICE_TIME_REF_FREQ_153_600 -> 153.6 MHz */
56         {
57                 /* pll_freq */
58                 816000000, /* 816 MHz */
59                 /* nominal_incval */
60                 0x139b9b9baULL,
61                 /* pps_delay */
62                 12,
63         },
64
65         /* ICE_TIME_REF_FREQ_156_250 -> 156.25 MHz */
66         {
67                 /* pll_freq */
68                 830078125, /* 830.78125 MHz */
69                 /* nominal_incval */
70                 0x134679aceULL,
71                 /* pps_delay */
72                 11,
73         },
74
75         /* ICE_TIME_REF_FREQ_245_760 -> 245.76 MHz */
76         {
77                 /* pll_freq */
78                 783360000, /* 783.36 MHz */
79                 /* nominal_incval */
80                 0x146cc2177ULL,
81                 /* pps_delay */
82                 12,
83         },
84 };
85
86 #endif /* _ICE_PTP_CONSTS_H_ */