1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
3 * Driver for the MDIO interface of Microsemi network switches.
5 * Author: Colin Foster <colin.foster@in-advantage.com>
6 * Copyright (C) 2021 Innovative Advantage
8 #ifndef MDIO_MSCC_MIIM_H
9 #define MDIO_MSCC_MIIM_H
11 #include <linux/device.h>
12 #include <linux/phy.h>
13 #include <linux/regmap.h>
15 int mscc_miim_setup(struct device
*device
, struct mii_bus
**bus
,
16 const char *name
, struct regmap
*mii_regmap
,
17 int status_offset
, bool ignore_read_errors
);