Florian Fainelli | 648ea01 | 2017-02-04 13:02:44 -0800 | [diff] [blame] | 1 | /* |
| 2 | * mdio-boardinfo.h - board info interface internal to the mdio_bus |
| 3 | * component |
| 4 | */ |
| 5 | |
| 6 | #ifndef __MDIO_BOARD_INFO_H |
| 7 | #define __MDIO_BOARD_INFO_H |
| 8 | |
| 9 | #include <linux/phy.h> |
| 10 | #include <linux/mutex.h> |
| 11 | |
| 12 | struct mdio_board_entry { |
| 13 | struct list_head list; |
| 14 | struct mdio_board_info board_info; |
| 15 | }; |
| 16 | |
Florian Fainelli | d0281a5 | 2017-03-28 12:57:09 -0700 | [diff] [blame] | 17 | void mdiobus_setup_mdiodev_from_board_info(struct mii_bus *bus, |
| 18 | int (*cb) |
| 19 | (struct mii_bus *bus, |
| 20 | struct mdio_board_info *bi)); |
Florian Fainelli | 648ea01 | 2017-02-04 13:02:44 -0800 | [diff] [blame] | 21 | |
| 22 | #endif /* __MDIO_BOARD_INFO_H */ |