dpaa2-eth: define a global ptp_qoriq structure pointer
authorYangbo Lu <yangbo.lu@nxp.com>
Fri, 18 Sep 2020 09:07:59 +0000 (17:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2020 21:32:48 +0000 (14:32 -0700)
commitd21c784c785c63a0b731e7516a9eb94cd68a646b
treecc083e6f76a57fd8ef266943f3f01921744ea314
parent23cd4f27f1d6d19aae7bbf0ff44b9b88036a6f96
dpaa2-eth: define a global ptp_qoriq structure pointer

Define a global ptp_qoriq structure pointer, and export to use.
The ptp clock operations will be used in dpaa2-eth driver.
For example, supporting one step timestamping needs to write
current time to hardware frame annotation before sending and
then hardware inserts the delay time on frame during sending.
So in driver, at least clock gettime operation will be needed
to make sure right time is written to hardware frame annotation
for one step timestamping.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h
drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.h