gpio: rcar: Fix runtime PM imbalance on error
[linux/fpc-iii.git] / drivers / net / ethernet / aquantia / atlantic / aq_phy.h
blob84b72ad04a4ab887ede2b9a8c7362281b57f9bb0
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* aQuantia Corporation Network Driver
3 * Copyright (C) 2018-2019 aQuantia Corporation. All rights reserved
4 */
6 #ifndef AQ_PHY_H
7 #define AQ_PHY_H
9 #include <linux/mdio.h>
11 #include "hw_atl/hw_atl_llh.h"
12 #include "hw_atl/hw_atl_llh_internal.h"
13 #include "aq_hw_utils.h"
14 #include "aq_hw.h"
16 #define HW_ATL_PHY_ID_MAX 32U
18 bool aq_mdio_busy_wait(struct aq_hw_s *aq_hw);
20 u16 aq_mdio_read_word(struct aq_hw_s *aq_hw, u16 mmd, u16 addr);
22 void aq_mdio_write_word(struct aq_hw_s *aq_hw, u16 mmd, u16 addr, u16 data);
24 u16 aq_phy_read_reg(struct aq_hw_s *aq_hw, u16 mmd, u16 address);
26 void aq_phy_write_reg(struct aq_hw_s *aq_hw, u16 mmd, u16 address, u16 data);
28 bool aq_phy_init_phy_id(struct aq_hw_s *aq_hw);
30 bool aq_phy_init(struct aq_hw_s *aq_hw);
32 #endif /* AQ_PHY_H */