cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

aq_phy.h (888B)


      1/* SPDX-License-Identifier: GPL-2.0-only */
      2/* Atlantic Network Driver
      3 *
      4 * Copyright (C) 2018-2019 aQuantia Corporation
      5 * Copyright (C) 2019-2020 Marvell International Ltd.
      6 */
      7
      8#ifndef AQ_PHY_H
      9#define AQ_PHY_H
     10
     11#include <linux/mdio.h>
     12
     13#include "hw_atl/hw_atl_llh.h"
     14#include "hw_atl/hw_atl_llh_internal.h"
     15#include "aq_hw_utils.h"
     16#include "aq_hw.h"
     17
     18#define HW_ATL_PHY_ID_MAX 32U
     19
     20bool aq_mdio_busy_wait(struct aq_hw_s *aq_hw);
     21
     22u16 aq_mdio_read_word(struct aq_hw_s *aq_hw, u16 mmd, u16 addr);
     23
     24void aq_mdio_write_word(struct aq_hw_s *aq_hw, u16 mmd, u16 addr, u16 data);
     25
     26u16 aq_phy_read_reg(struct aq_hw_s *aq_hw, u16 mmd, u16 address);
     27
     28void aq_phy_write_reg(struct aq_hw_s *aq_hw, u16 mmd, u16 address, u16 data);
     29
     30bool aq_phy_init_phy_id(struct aq_hw_s *aq_hw);
     31
     32bool aq_phy_init(struct aq_hw_s *aq_hw);
     33
     34void aq_phy_disable_ptp(struct aq_hw_s *aq_hw);
     35
     36#endif /* AQ_PHY_H */