| David Daney | 0ca2997 | 2012-05-02 15:16:38 +0000 | [diff] [blame] | 1 | /* | 
 | 2 |  * MDIO bus multiplexer framwork. | 
 | 3 |  * | 
 | 4 |  * This file is subject to the terms and conditions of the GNU General Public | 
 | 5 |  * License.  See the file "COPYING" in the main directory of this archive | 
 | 6 |  * for more details. | 
 | 7 |  * | 
 | 8 |  * Copyright (C) 2011, 2012 Cavium, Inc. | 
 | 9 |  */ | 
 | 10 | #ifndef __LINUX_MDIO_MUX_H | 
 | 11 | #define __LINUX_MDIO_MUX_H | 
 | 12 | #include <linux/device.h> | 
| Pramod Kumar | f20e665 | 2016-06-10 11:03:45 +0530 | [diff] [blame] | 13 | #include <linux/phy.h> | 
| David Daney | 0ca2997 | 2012-05-02 15:16:38 +0000 | [diff] [blame] | 14 |  | 
 | 15 | int mdio_mux_init(struct device *dev, | 
 | 16 | 		  int (*switch_fn) (int cur, int desired, void *data), | 
 | 17 | 		  void **mux_handle, | 
| Pramod Kumar | f20e665 | 2016-06-10 11:03:45 +0530 | [diff] [blame] | 18 | 		  void *data, | 
 | 19 | 		  struct mii_bus *mux_bus); | 
| David Daney | 0ca2997 | 2012-05-02 15:16:38 +0000 | [diff] [blame] | 20 |  | 
 | 21 | void mdio_mux_uninit(void *mux_handle); | 
 | 22 |  | 
 | 23 | #endif /* __LINUX_MDIO_MUX_H */ |