diff options
author | Mark Starovoytov <mstarovoitov@marvell.com> | 2020-04-30 11:04:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-01 15:37:57 -0700 |
commit | 099d074e3f0cd3f48e57e3349b9f8a25b0e3feb8 (patch) | |
tree | 4d4aeff298962376edce3e5f47a3bf2f0d625eff /drivers/net/ethernet/aquantia/atlantic/aq_hw.h | |
parent | 3d464aadef75415c55a5a4feb611a9bbf034d7d3 (diff) | |
download | linux-stable-099d074e3f0cd3f48e57e3349b9f8a25b0e3feb8.tar.gz linux-stable-099d074e3f0cd3f48e57e3349b9f8a25b0e3feb8.tar.bz2 linux-stable-099d074e3f0cd3f48e57e3349b9f8a25b0e3feb8.zip |
net: atlantic: add hw_soft_reset, hw_prepare to hw_ops
A2 will have a different implementation of these 2 APIs, so
this patch moves them to hw_ops in preparation for A2.
Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Co-developed-by: Dmitry Bezrukov <dbezrukov@marvell.com>
Signed-off-by: Dmitry Bezrukov <dbezrukov@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aquantia/atlantic/aq_hw.h')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_hw.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_hw.h b/drivers/net/ethernet/aquantia/atlantic/aq_hw.h index 7d71bc7dc500..84abce29d590 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_hw.h +++ b/drivers/net/ethernet/aquantia/atlantic/aq_hw.h @@ -182,6 +182,11 @@ struct aq_hw_ops { int (*hw_set_mac_address)(struct aq_hw_s *self, u8 *mac_addr); + int (*hw_soft_reset)(struct aq_hw_s *self); + + int (*hw_prepare)(struct aq_hw_s *self, + const struct aq_fw_ops **fw_ops); + int (*hw_reset)(struct aq_hw_s *self); int (*hw_init)(struct aq_hw_s *self, u8 *mac_addr); |