Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / linux / mdio / mdio-regmap.h
blob679d9069846b405fdfde1a40146fc2f94df2190f
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Driver for MMIO-Mapped MDIO devices. Some IPs expose internal PHYs or PCS
3 * within the MMIO-mapped area
5 * Copyright (C) 2023 Maxime Chevallier <maxime.chevallier@bootlin.com>
6 */
7 #ifndef MDIO_REGMAP_H
8 #define MDIO_REGMAP_H
10 #include <linux/phy.h>
12 struct device;
13 struct regmap;
15 struct mdio_regmap_config {
16 struct device *parent;
17 struct regmap *regmap;
18 char name[MII_BUS_ID_SIZE];
19 u8 valid_addr;
20 bool autoscan;
23 struct mii_bus *devm_mdio_regmap_register(struct device *dev,
24 const struct mdio_regmap_config *config);
26 #endif