mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
Cross-merge networking fixes after downstream PR (net-7.1-rc6). Conflicts: drivers/net/phy/air_en8811h.cd895767c33("net: phy: air_en8811h: add AN8811HB MCU assert/deassert support")dddfadd751("net: phy: Add Airoha phy library for shared code")5226bb6634("net: phy: air_phy_lib: Factorize BuckPBus register accessors")e08f0ea6da("net: phy: Rename Airoha common BuckPBus register accessors") net/sched/sch_netem.ca2f6ed7b48("net/sched: netem: add per-impairment extended statistics")9552b11e3e("net/sched: fix packet loop on netem when duplicate is on") Adjacent changes: drivers/dpll/zl3073x/core.cc1224569ce("dpll: zl3073x: make frequency monitor a per-device attribute")54e65df8cf("dpll: zl3073x: report FFO as DPLL vs input reference offset") net/iucv/af_iucv.c347fdd4df8("af_iucv: convert to getsockopt_iter")3589d20a66("net/iucv: fix locking in .getsockopt") Signed-off-by: Jakub Kicinski <kuba@kernel.org>
42 lines
1.3 KiB
C
42 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2026 Airoha Technology Corp.
|
|
* Copyright (C) 2026 Collabora Ltd.
|
|
* Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
|
|
*/
|
|
|
|
#ifndef __AIR_PHY_LIB_H
|
|
#define __AIR_PHY_LIB_H
|
|
|
|
#include <linux/phy.h>
|
|
|
|
#define AIR_EXT_PAGE_ACCESS 0x1f
|
|
|
|
#define AIR_PHY_PAGE_STANDARD 0x0000
|
|
#define AIR_PHY_PAGE_EXTENDED_1 0x0001
|
|
#define AIR_PHY_PAGE_EXTENDED_4 0x0004
|
|
|
|
/* MII Registers Page 4*/
|
|
#define AIR_BPBUS_MODE 0x10
|
|
#define AIR_BPBUS_MODE_ADDR_FIXED 0x0000
|
|
#define AIR_BPBUS_MODE_ADDR_INCR BIT(15)
|
|
#define AIR_BPBUS_WR_ADDR_HIGH 0x11
|
|
#define AIR_BPBUS_WR_ADDR_LOW 0x12
|
|
#define AIR_BPBUS_WR_DATA_HIGH 0x13
|
|
#define AIR_BPBUS_WR_DATA_LOW 0x14
|
|
#define AIR_BPBUS_RD_ADDR_HIGH 0x15
|
|
#define AIR_BPBUS_RD_ADDR_LOW 0x16
|
|
#define AIR_BPBUS_RD_DATA_HIGH 0x17
|
|
#define AIR_BPBUS_RD_DATA_LOW 0x18
|
|
|
|
int air_phy_buckpbus_reg_modify(struct phy_device *phydev, u32 pbus_address,
|
|
u32 mask, u32 set);
|
|
int air_phy_buckpbus_reg_read(struct phy_device *phydev, u32 pbus_address,
|
|
u32 *pbus_data);
|
|
int air_phy_buckpbus_reg_write(struct phy_device *phydev, u32 pbus_address,
|
|
u32 pbus_data);
|
|
int air_phy_read_page(struct phy_device *phydev);
|
|
int air_phy_write_page(struct phy_device *phydev, int page);
|
|
|
|
#endif /* __AIR_PHY_LIB_H */
|