diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-13 10:40:05 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-04-24 10:31:47 +0200 |
commit | 7753263c50d17696e487e188c1ef73df31c8ecff (patch) | |
tree | 00284c638de9cbe4fcbf0f88dff0565f5267ec04 /include | |
parent | 6f20c7bc709dd5875b1066d5dae99d52cc18d51c (diff) | |
download | barebox-7753263c50d17696e487e188c1ef73df31c8ecff.tar.gz barebox-7753263c50d17696e487e188c1ef73df31c8ecff.tar.xz |
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/miidev.h | 5 |
1 files changed, 5 insertions, 0 deletions
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__ */ |