summaryrefslogtreecommitdiff
path: root/drivers/net/mscc_eswitch/mscc_miim.h
blob: 0e5d5e3c81195027c7869b7ffbcb3f62ef3eb2cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
 * Copyright (c) 2018 Microsemi Corporation
 */

struct mscc_miim_dev {
	void __iomem *regs;
	void __iomem *phy_regs;
};

int mscc_miim_read(struct mii_dev *bus, int addr, int devad, int reg);
int mscc_miim_write(struct mii_dev *bus, int addr, int devad, int reg, u16 val);