#include <linux/types.h>
#include "qed.h"
#include "qed_dev_api.h"
#include "qed_hw.h"
#include "qed_l2.h"
#include "qed_mcp.h"
#include "qed_ptp.h"
#include "qed_reg_addr.h"
#define QED_DRIFT_CNTR_TIME_QUANTA_SHIFT …
#define QED_DRIFT_CNTR_ADJUSTMENT_SHIFT …
#define QED_DRIFT_CNTR_DIRECTION_SHIFT …
#define QED_TIMESTAMP_MASK …
#define QED_PTP_UCAST_PARAM_MASK …
static enum qed_resc_lock qed_ptcdev_to_resc(struct qed_hwfn *p_hwfn)
{ … }
static int qed_ptp_res_lock(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt)
{ … }
static int qed_ptp_res_unlock(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt)
{ … }
static int qed_ptp_hw_read_rx_ts(struct qed_dev *cdev, u64 *timestamp)
{ … }
static int qed_ptp_hw_read_tx_ts(struct qed_dev *cdev, u64 *timestamp)
{ … }
static int qed_ptp_hw_read_cc(struct qed_dev *cdev, u64 *phc_cycles)
{ … }
static int qed_ptp_hw_cfg_filters(struct qed_dev *cdev,
enum qed_ptp_filter_type rx_type,
enum qed_ptp_hwtstamp_tx_type tx_type)
{ … }
static int qed_ptp_hw_adjfreq(struct qed_dev *cdev, s32 ppb)
{ … }
static int qed_ptp_hw_enable(struct qed_dev *cdev)
{ … }
static int qed_ptp_hw_disable(struct qed_dev *cdev)
{ … }
const struct qed_eth_ptp_ops qed_ptp_ops_pass = …;