blob: 61f5b21b31c7782318c9cf6be916d96e91012747 [file] [log] [blame]
David Daney0ca29972012-05-02 15:16:38 +00001/*
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 Kumarf20e6652016-06-10 11:03:45 +053013#include <linux/phy.h>
David Daney0ca29972012-05-02 15:16:38 +000014
15int mdio_mux_init(struct device *dev,
16 int (*switch_fn) (int cur, int desired, void *data),
17 void **mux_handle,
Pramod Kumarf20e6652016-06-10 11:03:45 +053018 void *data,
19 struct mii_bus *mux_bus);
David Daney0ca29972012-05-02 15:16:38 +000020
21void mdio_mux_uninit(void *mux_handle);
22
23#endif /* __LINUX_MDIO_MUX_H */