diff options
author | Daniel Pieczko <dpieczko@solarflare.com> | 2013-11-21 12:11:25 -0500 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2013-12-12 17:07:11 -0500 |
commit | 9ec0659595c8020f1efa55aa00870e8773f8ee89 (patch) | |
tree | d4b4fc24a45ac681182b426b68445fbb94702ed2 /drivers/net/ethernet/sfc/nic.h | |
parent | a6f73460b592404cca4ceafa69a835a61cdc20d8 (diff) |
sfc: split setup of hardware timestamping into NIC-type operation
I added efx_ptp_get_mode() to avoid moving the definition for
efx_ptp_data, since the current PTP mode is needed for
siena.c:siena_set_ptp_hwtstamp.
[bwh: Also move the rx_filters mask, and add kernel-doc]
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/nic.h')
-rw-r--r-- | drivers/net/ethernet/sfc/nic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/nic.h b/drivers/net/ethernet/sfc/nic.h index 25178536f053..999ef285662d 100644 --- a/drivers/net/ethernet/sfc/nic.h +++ b/drivers/net/ethernet/sfc/nic.h | |||
@@ -561,6 +561,9 @@ int efx_ptp_set_ts_config(struct efx_nic *efx, struct ifreq *ifr); | |||
561 | int efx_ptp_get_ts_config(struct efx_nic *efx, struct ifreq *ifr); | 561 | int efx_ptp_get_ts_config(struct efx_nic *efx, struct ifreq *ifr); |
562 | void efx_ptp_get_ts_info(struct efx_nic *efx, struct ethtool_ts_info *ts_info); | 562 | void efx_ptp_get_ts_info(struct efx_nic *efx, struct ethtool_ts_info *ts_info); |
563 | bool efx_ptp_is_ptp_tx(struct efx_nic *efx, struct sk_buff *skb); | 563 | bool efx_ptp_is_ptp_tx(struct efx_nic *efx, struct sk_buff *skb); |
564 | int efx_ptp_get_mode(struct efx_nic *efx); | ||
565 | int efx_ptp_change_mode(struct efx_nic *efx, bool enable_wanted, | ||
566 | unsigned int new_mode); | ||
564 | int efx_ptp_tx(struct efx_nic *efx, struct sk_buff *skb); | 567 | int efx_ptp_tx(struct efx_nic *efx, struct sk_buff *skb); |
565 | void efx_ptp_event(struct efx_nic *efx, efx_qword_t *ev); | 568 | void efx_ptp_event(struct efx_nic *efx, efx_qword_t *ev); |
566 | void efx_ptp_start_datapath(struct efx_nic *efx); | 569 | void efx_ptp_start_datapath(struct efx_nic *efx); |