diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-04-02 00:47:29 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-04-02 00:47:29 +0000 |
commit | 41ee4a283cc74f7c2c7f10261adbacf1df2082e0 (patch) | |
tree | c5b827f9ea7dfe10cd24ab39b93aee782fa318e3 /target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h | |
parent | acbb3e50e7ab64b094c4031b899d8dd104d1c2eb (diff) | |
download | upstream-41ee4a283cc74f7c2c7f10261adbacf1df2082e0.tar.gz upstream-41ee4a283cc74f7c2c7f10261adbacf1df2082e0.tar.bz2 upstream-41ee4a283cc74f7c2c7f10261adbacf1df2082e0.zip |
ar71xx: only allow internal access to the ar7240 switch, export the MDIO bus behind the switch instead
SVN-Revision: 26393
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h index 8a2913f219..bb4cb5ba9f 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h @@ -503,4 +503,12 @@ void ag71xx_ar7240_stop(struct ag71xx *ag); int ag71xx_ar7240_init(struct ag71xx *ag); void ag71xx_ar7240_cleanup(struct ag71xx *ag); +int ag71xx_mdio_mii_read(struct ag71xx_mdio *am, int addr, int reg); +void ag71xx_mdio_mii_write(struct ag71xx_mdio *am, int addr, int reg, u16 val); + +u16 ar7240sw_phy_read(struct mii_bus *mii, unsigned phy_addr, + unsigned reg_addr); +int ar7240sw_phy_write(struct mii_bus *mii, unsigned phy_addr, + unsigned reg_addr, u16 reg_val); + #endif /* _AG71XX_H */ |