From 7753263c50d17696e487e188c1ef73df31c8ecff Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 13 Apr 2012 10:40:05 +0200 Subject: net mii: Add mii_open/mii_close functions Some phys need board specific fixups. To be able to do this from board code add mii_open/mii_close functions so that the board can use the regular mii_read/mii_write functions. Signed-off-by: Sascha Hauer --- include/miidev.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/miidev.h b/include/miidev.h index 8cd4c45000..622784f681 100644 --- a/include/miidev.h +++ b/include/miidev.h @@ -43,6 +43,7 @@ struct mii_device { struct eth_device *edev; struct cdev cdev; + struct list_head list; }; int mii_register(struct mii_device *dev); @@ -65,4 +66,8 @@ static int inline mii_read(struct mii_device *dev, int addr, int reg) { return dev->read(dev, addr, reg); } + +struct mii_device *mii_open(const char *name); +void mii_close(struct mii_device *mdev); + #endif /* __MIIDEV_H__ */ -- cgit v1.2.3