File Index
Files and directories
Sign in
FILE

mdio-regmap.h

File preview with syntax highlighting.

linux-6.19.14/include/linux/mdio/mdio-regmap.h C
 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
 4 *
 5 * Copyright (C) 2023 Maxime Chevallier <maxime.chevallier@bootlin.com>
 6 */
 7#ifndef MDIO_REGMAP_H
 8#define MDIO_REGMAP_H
 9
10#include <linux/phy.h>
11
12struct device;
13struct regmap;
14
15struct 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;
21};
22
23struct mii_bus *devm_mdio_regmap_register(struct device *dev,
24					  const struct mdio_regmap_config *config);
25
26#endif
~/ Read-only file preview.