Is there a low level way to check what the ethernet link status on my zedboard is? I have a running standalone app based on the "lwIP echo server" template, but I don't see a way to check if a cable is connected. I want to check before the app starts the PHY speed autonegotiation or before I start network operations.
First I thought the link-callback functions of lwIP could work, but I realized I was responsible to tell lwIP when the link goes up or down.
Obviously the PHY knows the link status since the link status light lights up and flashes without any software running on the zynq. But I haven't found a way the emacps driver could tell me the status nor is the datasheet of the Marvel PHY openly available to check how the status is accessible.
Any thoughts or ideas?