Re: Power off ethernet device

From: Glenn Henshaw
Date: Wed May 28 2008 - 21:41:55 EST



On 28-May-08, at 6:43 AM, Nicola Salvemini wrote:

Hello,

I'm developing some
software on a development board based on AT91SAM9260 processor. I
need to power off the ethernet device, but I need a “low level”
command. I mean that an “ifconfig eth0 down” command is not
suffice to my purpose, I need a command to emulate a cable
disconnection, something to power off the yellow LED on the ethernet
port.

I'd like to implement an "application layer" function that uses some kernel functions (maybe some physical abstract layer function), but I'm not very sure on how to proceed.

What PHY device are you using? Many of them allow the link to be controlled using ioctl commands. Look at mii-tool for examples of how this is done,

--
Glenn Henshaw Logical Outcome Ltd.
e: thraxisp@xxxxxxxxxxxxxxxxx w: www.logicaloutcome.ca



--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html