免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3793 | 回复: 6
打印 上一主题 下一主题

有关intel网卡82571的驱动的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-08-04 10:56 |只看该作者 |倒序浏览
小弟想实现一个功能,就是,将网卡断电,实现power-down的功能,具体实现是修改phy的0号寄存器的第11位,手册上这样说明的
Power Down 11
1b = Power down.
0b = Normal operation.

Power down shuts down the Ethernet
controller except for the MAC interface if
the MAC interface power down bit is set
to 1b. If it equals 0b, then the MAC
interface also shuts down.

现在我的问题是,这个修改对于普通的电口是好用的,但是82571有哪种能插SFP模块的口,对于这种就是不好用了
普通口的media_type是copper,这种口的media_type是fiber,请问这两种有什么区别啊,还是需要额外设置其他的什么位呢
在手册上没看到什么特殊的东西,有个serdes得寄存器,也不知道对这个有没有用
谢谢各位大哥了

论坛徽章:
0
2 [报告]
发表于 2010-08-04 13:30 |只看该作者
copper是电口,fiber是光口
对软件来说区别不大

论坛徽章:
0
3 [报告]
发表于 2010-08-05 08:53 |只看该作者
终于有人回了,但是为什么我修改的功能,对于普通的电口是好用的,但是对于带SFP插槽的就不好用呢

论坛徽章:
0
4 [报告]
发表于 2010-08-05 13:38 |只看该作者
我也不太清楚 再查一下phy的其他寄存器看看

论坛徽章:
0
5 [报告]
发表于 2010-08-05 16:13 |只看该作者
貌似有人有类似的需求,好像是不行,据说是82571是收到光就up了(当然不一定能通),因此除非能对光模块编程关掉发光才行,听说的,不太确认。

论坛徽章:
0
6 [报告]
发表于 2010-08-05 22:51 |只看该作者
光电转换之间貌似有个模块的吧 叫光电转换器
软件不用搭理是硬件的活

论坛徽章:
0
7 [报告]
发表于 2010-08-06 10:49 |只看该作者
The SERDES can be used in SGMII mode to connect to external PHY, either on-board or via the SFP connector
从这句话来看,serdes好像是能控制光口
手册上还有几句话
PHY Power-Down State
The PHY enters a power-down state when none of its clients are enabled. In this case, a link is not
required to be maintained. The following conditions must be met for the PHY to enter this powerdown
state:
• PHY power down is enabled through the EEPROM/NVM PHY Power Down Enable bit.

SerDes Power-Down State
The Serializer/Deserializer (SerDes) enters a power-down state when none of its clients are
enabled. This case does not require a link to be maintained. The following conditions must be met
for the SerDes to enter this power-down state:
• SerDes power down is enabled through the EEPROM SerDes Low Power Enable bit.

Ethernet Controller Power-Down State1
The Ethernet controller enters a global power-down state if all of the following conditions are met:
• The device Dr power down enable EEPROM/NVM bit was set (hardware default value is
disabled).

大概是说三个东西各自控制power-down的方法,也确实在phy的寄存器里边找到了power-down的位,但是serdes寄存器的说明很少,都没有写哪个位是干嘛的,我曾经试过32位,循环往里写1,有时候能断电,估计是组合位,谁有这方面的说明啊,谢谢了啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP