]> git.baikalelectronics.ru Git - kernel.git/commit
net: aquantia: PTP skeleton declarations and callbacks
authorEgor Pomozov <epomozov@marvell.com>
Tue, 22 Oct 2019 09:53:22 +0000 (09:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Oct 2019 16:51:22 +0000 (09:51 -0700)
commit73e4c49d60b2b2f0c9ca749dd905307d041cbd92
tree3f67f59a6b1b423617015de7026f72e5b736e01f
parent6034781f1b34b194b5fc9832984029e43964854a
net: aquantia: PTP skeleton declarations and callbacks

Here we add basic function for PTP clock register/unregister.
We also declare FW/HW capability bits used to control PTP feature on device.

PTP device is created if network card has appropriate FW that has PTP
enabled in config. HW supports timestamping for PTPv2 802.AS1 and
PTPv2 IPv4 UDP packets.

It also supports basic PTP callbacks for getting/setting time, adjusting
frequency and time as well.

Signed-off-by: Egor Pomozov <epomozov@marvell.com>
Co-developed-by: Sergey Samoilenko <sergey.samoilenko@aquantia.com>
Signed-off-by: Sergey Samoilenko <sergey.samoilenko@aquantia.com>
Co-developed-by: Dmitry Bezrukov <dmitry.bezrukov@aquantia.com>
Signed-off-by: Dmitry Bezrukov <dmitry.bezrukov@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/Makefile
drivers/net/ethernet/aquantia/atlantic/aq_nic.c
drivers/net/ethernet/aquantia/atlantic/aq_nic.h
drivers/net/ethernet/aquantia/atlantic/aq_ptp.c [new file with mode: 0644]
drivers/net/ethernet/aquantia/atlantic/aq_ptp.h [new file with mode: 0644]
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.h