project:cfg:BoardConfig_IPC: Added fastboot BoardConfig file and firmware post-scripts, distinguishing between the BoardConfigs for Luckfox Pico Pro and Luckfox Pico Max. project:app: Added fastboot_client and rk_smart_door for quick boot applications; updated rkipc app to adapt to the latest media library. media:samples: Added more usage examples. media:rockit: Fixed bugs; removed support for retrieving data frames from VPSS. media:isp: Updated rkaiq library and related tools to support connection to RKISP_Tuner. sysdrv:Makefile: Added support for compiling drv_ko on Luckfox Pico Ultra W using Ubuntu; added support for custom root filesystem. sysdrv:tools:board: Updated Buildroot optional mirror sources, updated some software versions, and stored device tree files and configuration files that undergo multiple modifications for U-Boot and kernel separately. sysdrv:source:mcu: Used RISC-V MCU SDK with RT-Thread system, mainly for initializing camera AE during quick boot. sysdrv:source:uboot: Added support for fastboot; added high baud rate DDR bin for serial firmware upgrades. sysdrv:source:kernel: Upgraded to version 5.10.160; increased NPU frequency for RV1106G3; added support for fastboot. Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
47 lines
2.0 KiB
C
47 lines
2.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/****************************************************************************
|
|
* Driver for Solarflare network controllers and boards
|
|
* Copyright 2005-2006 Fen Systems Ltd.
|
|
* Copyright 2006-2013 Solarflare Communications Inc.
|
|
* Copyright 2019-2020 Xilinx Inc.
|
|
*/
|
|
|
|
#ifndef EFX_PTP_H
|
|
#define EFX_PTP_H
|
|
|
|
#include <linux/net_tstamp.h>
|
|
#include "net_driver.h"
|
|
|
|
struct ethtool_ts_info;
|
|
int efx_ptp_probe(struct efx_nic *efx, struct efx_channel *channel);
|
|
void efx_ptp_defer_probe_with_channel(struct efx_nic *efx);
|
|
struct efx_channel *efx_ptp_channel(struct efx_nic *efx);
|
|
void efx_ptp_update_channel(struct efx_nic *efx, struct efx_channel *channel);
|
|
void efx_ptp_remove(struct efx_nic *efx);
|
|
int efx_ptp_set_ts_config(struct efx_nic *efx, struct ifreq *ifr);
|
|
int efx_ptp_get_ts_config(struct efx_nic *efx, struct ifreq *ifr);
|
|
void efx_ptp_get_ts_info(struct efx_nic *efx, struct ethtool_ts_info *ts_info);
|
|
bool efx_ptp_is_ptp_tx(struct efx_nic *efx, struct sk_buff *skb);
|
|
int efx_ptp_get_mode(struct efx_nic *efx);
|
|
int efx_ptp_change_mode(struct efx_nic *efx, bool enable_wanted,
|
|
unsigned int new_mode);
|
|
int efx_ptp_tx(struct efx_nic *efx, struct sk_buff *skb);
|
|
void efx_ptp_event(struct efx_nic *efx, efx_qword_t *ev);
|
|
size_t efx_ptp_describe_stats(struct efx_nic *efx, u8 *strings);
|
|
size_t efx_ptp_update_stats(struct efx_nic *efx, u64 *stats);
|
|
void efx_time_sync_event(struct efx_channel *channel, efx_qword_t *ev);
|
|
void __efx_rx_skb_attach_timestamp(struct efx_channel *channel,
|
|
struct sk_buff *skb);
|
|
static inline void efx_rx_skb_attach_timestamp(struct efx_channel *channel,
|
|
struct sk_buff *skb)
|
|
{
|
|
if (channel->sync_events_state == SYNC_EVENTS_VALID)
|
|
__efx_rx_skb_attach_timestamp(channel, skb);
|
|
}
|
|
void efx_ptp_start_datapath(struct efx_nic *efx);
|
|
void efx_ptp_stop_datapath(struct efx_nic *efx);
|
|
bool efx_ptp_use_mac_tx_timestamps(struct efx_nic *efx);
|
|
ktime_t efx_ptp_nic_to_kernel_time(struct efx_tx_queue *tx_queue);
|
|
|
|
#endif /* EFX_PTP_H */
|