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