#include <linux/ip.h>
#include <linux/udp.h>
#include <linux/time.h>
#include <linux/ktime.h>
#include <linux/module.h>
#include <linux/net_tstamp.h>
#include <linux/pps_kernel.h>
#include <linux/ptp_clock_kernel.h>
#include "net_driver.h"
#include "efx.h"
#include "mcdi.h"
#include "mcdi_pcol.h"
#include "io.h"
#include "regs.h"
#include "nic.h"
Go to the source code of this file.
#define AVERAGE_LENGTH 16 |
Definition at line 74 of file ptp.c.
#define MAX_EVENT_FRAGS 3 |
Definition at line 53 of file ptp.c.
#define MAX_RECEIVE_EVENTS 8 |
Definition at line 71 of file ptp.c.
#define MAX_SYNCHRONISATION_NS 1000 |
Definition at line 68 of file ptp.c.
#define MAX_SYNCHRONISE_WAIT_MS 2 |
Definition at line 56 of file ptp.c.
#define MC_NANOSECOND_BITS 30 |
#define MIN_SYNCHRONISATION_NS 120 |
Definition at line 65 of file ptp.c.
#define PKT_EVENT_LIFETIME_MS 10 |
Definition at line 77 of file ptp.c.
Value:
MAX_PPB_BITS)) / 1000000000
LL)
Definition at line 159 of file ptp.c.
#define PTP_ADDRESS 0xe0000181 /* 224.0.1.129 */ |
#define PTP_DPORT_OFFSET 22 |
Definition at line 83 of file ptp.c.
#define PTP_EVENT_PORT 319 |
#define PTP_GENERAL_PORT 320 |
#define PTP_MIN_LENGTH 63 |
#define PTP_SYNC_ATTEMPTS 4 |
#define PTP_V1_MIN_LENGTH 64 |
Definition at line 97 of file ptp.c.
#define PTP_V1_SEQUENCE_LENGTH 2 |
Definition at line 91 of file ptp.c.
#define PTP_V1_SEQUENCE_OFFSET 58 |
Definition at line 92 of file ptp.c.
#define PTP_V1_UUID_LENGTH 6 |
Definition at line 88 of file ptp.c.
#define PTP_V1_UUID_OFFSET 50 |
Definition at line 89 of file ptp.c.
#define PTP_V1_VERSION_LENGTH 2 |
Definition at line 85 of file ptp.c.
#define PTP_V1_VERSION_OFFSET 28 |
Definition at line 86 of file ptp.c.
#define PTP_V2_MC_UUID_LENGTH 6 |
#define PTP_V2_MC_UUID_OFFSET 50 |
#define PTP_V2_MIN_LENGTH 63 |
#define PTP_V2_SEQUENCE_LENGTH 2 |
#define PTP_V2_SEQUENCE_OFFSET 58 |
#define PTP_V2_VERSION_LENGTH 1 |
Definition at line 99 of file ptp.c.
#define PTP_V2_VERSION_OFFSET 29 |
#define PTP_VERSION_V2_MASK 0x0f |
#define SYNCHRONISATION_GRANULARITY_NS 200 |
Definition at line 62 of file ptp.c.
#define SYNCHRONISE_PERIOD_NS 250000 |
Definition at line 59 of file ptp.c.
- Enumerator:
PTP_PACKET_STATE_UNMATCHED |
|
PTP_PACKET_STATE_MATCHED |
|
PTP_PACKET_STATE_TIMED_OUT |
|
PTP_PACKET_STATE_MATCH_UNWANTED |
|
Definition at line 132 of file ptp.c.