对于phy芯片的认识

一,关于phy芯片 以RTL8211E(G)为例

PHY是IEEE802.3中定义的一个标准模块,STA(station management entity,管理实体,一般为MAC或CPU)
通过SMI(Serial Manage Interface)对PHY的行为、状态进行管理和控制,
而具体管理和控制动作是通过读写PHY内部的寄存器实现的。

PHY寄存器的地址空间为5位,从0到31最多可以定义32个寄存器
我所讨论的RTL8211EG地址位是由001 - 111,由硬件配置,不同phy芯片配置有所不同,详细需要阅读芯片手册

二,linux内核里关于phy的文件

主要在drivers/net/phy目录下
phy.c 和 phy_device.c文件

推荐网站(作者介绍的十分详细)
http://www.latelee.org/programming-under-linux/linux-phy-state.html

三,关于phy和mac的接口总结

推荐几篇文章 
http://www.cnblogs.com/touchblue/p/3535576.html 
http://blog.chinaunix.net/uid-20528014-id-3050217.html 
MII接口全家福 
http://blog.chinaunix.net/uid-24148050-id-131084.html 
mdio rgmii mac phy简单了解 
http://www.cnblogs.com/zxc2man/p/3769777.html

四,千兆和百兆

1.GMII接口
2.MII接口
3.RGMII接口
posted @ 2018-05-24 16:06  瘋耔  阅读(1300)  评论(0编辑  收藏  举报
跳至侧栏