xref: /openbmc/linux/include/linux/mdio/mdio-i2c.h (revision 09bbedac)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * MDIO I2C bridge
4  *
5  * Copyright (C) 2015 Russell King
6  */
7 #ifndef MDIO_I2C_H
8 #define MDIO_I2C_H
9 
10 struct device;
11 struct i2c_adapter;
12 struct mii_bus;
13 
14 enum mdio_i2c_proto {
15 	MDIO_I2C_NONE,
16 	MDIO_I2C_MARVELL_C22,
17 	MDIO_I2C_C45,
18 	MDIO_I2C_ROLLBALL,
19 };
20 
21 struct mii_bus *mdio_i2c_alloc(struct device *parent, struct i2c_adapter *i2c,
22 			       enum mdio_i2c_proto protocol);
23 
24 #endif
25