aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/gianfar.h
diff options
context:
space:
mode:
authorManfred Rudigier <Manfred.Rudigier@omicron.at>2010-04-08 19:10:35 -0400
committerDavid S. Miller <davem@davemloft.net>2010-04-13 04:41:31 -0400
commitf0ee7acfcdd4169cee2fefc630de72deb5bc34b9 (patch)
tree161b16941b8c11023a9fb24324f22463dd16f163 /drivers/net/gianfar.h
parentcc772ab7cdcaa24d1fae332d92a1602788644f7a (diff)
gianfar: Add hardware TX timestamping support
If a packet has the skb_shared_tx->hardware flag set the device is instructed to generate a TX timestamp and write it back to memory after the frame is transmitted. During the clean_tx_ring operation the timestamp will be extracted and copied into the skb_shared_hwtstamps struct of the skb. TX timestamping is enabled by setting the tx_type to something else than HWTSTAMP_TX_OFF with the SIOCSHWTSTAMP ioctl command. It is only supported by eTSEC devices. Signed-off-by: Manfred Rudigier <manfred.rudigier@omicron.at> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/gianfar.h')
-rw-r--r--drivers/net/gianfar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/gianfar.h b/drivers/net/gianfar.h
index 1ea287cba231..ac4a92e08c09 100644
--- a/drivers/net/gianfar.h
+++ b/drivers/net/gianfar.h
@@ -540,7 +540,7 @@ struct txbd8
540 540
541struct txfcb { 541struct txfcb {
542 u8 flags; 542 u8 flags;
543 u8 reserved; 543 u8 ptp; /* Flag to enable tx timestamping */
544 u8 l4os; /* Level 4 Header Offset */ 544 u8 l4os; /* Level 4 Header Offset */
545 u8 l3os; /* Level 3 Header Offset */ 545 u8 l3os; /* Level 3 Header Offset */
546 u16 phcs; /* Pseudo-header Checksum */ 546 u16 phcs; /* Pseudo-header Checksum */
@@ -1105,6 +1105,7 @@ struct gfar_private {
1105 1105
1106 /* HW time stamping enabled flag */ 1106 /* HW time stamping enabled flag */
1107 int hwts_rx_en; 1107 int hwts_rx_en;
1108 int hwts_tx_en;
1108}; 1109};
1109 1110
1110extern unsigned int ftp_rqfpr[MAX_FILER_IDX + 1]; 1111extern unsigned int ftp_rqfpr[MAX_FILER_IDX + 1];