mdio-i2c.h 422 B

123456789101112131415161718192021222324
  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. struct device;
  10. struct i2c_adapter;
  11. struct mii_bus;
  12. enum mdio_i2c_proto {
  13. MDIO_I2C_NONE,
  14. MDIO_I2C_MARVELL_C22,
  15. MDIO_I2C_C45,
  16. MDIO_I2C_ROLLBALL,
  17. };
  18. struct mii_bus *mdio_i2c_alloc(struct device *parent, struct i2c_adapter *i2c,
  19. enum mdio_i2c_proto protocol);
  20. #endif