51 DBGC (
mii,
"MII %p could not read BMCR: %s\n",
59 DBGC (
mii,
"MII %p could not write BMCR: %s\n",
64 DBGC (
mii,
"MII %p restarted autonegotiation\n",
mii );
82 DBGC (
mii,
"MII %p could not write BMCR: %s\n",
94 DBGC (
mii,
"MII %p could not read BMCR: %s\n",
111 DBGC (
mii,
"MII %p reset after %dms\n",
mii, i );
115 DBGC (
mii,
"MII %p timed out waiting for reset\n",
mii );
140 DBGC (
mii,
"MII %p link %s (BMSR %#04x)\n",
141 mii, (
link ?
"up" :
"down" ), bmsr );
165 if ( (
id > 0x0000 ) && (
id < 0xffff ) ) {
166 DBGC (
mii,
"MII %p found PHY at address %d\n",
172 DBGC (
mii,
"MII %p failed to find an address\n",
mii );
struct arbelprm_rc_send_wqe rc
static struct mii_phy mii
uint64_t address
Base address.
#define ENOENT
No such file or directory.
void netdev_link_down(struct net_device *netdev)
Mark network device as having link down.
int mii_restart(struct mii_device *mii)
Restart autonegotiation.
#define MII_RESET_MAX_WAIT_MS
Maximum time to wait for a reset, in milliseconds.
static void netdev_link_up(struct net_device *netdev)
Mark network device as having link up.
static struct net_device * netdev
u32 link
Link to next descriptor.
uint8_t id
Request identifier.
char * strerror(int errno)
Retrieve string representation of error number.
Media Independent Interface.
int mii_reset(struct mii_device *mii)
Reset MII device.
int mii_check_link(struct mii_device *mii, struct net_device *netdev)
Update link status via MII.
int mii_find(struct mii_device *mii)
Find PHY address.
void mdelay(unsigned long msecs)
Delay for a fixed number of milliseconds.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
#define MII_MAX_PHY_ADDRESS
Maximum PHY address.
static int mii_read(int phy_id, int location)
static int mii_write(struct mii_device *mii, unsigned int reg, unsigned int data)
Write to MII register.
#define ETIMEDOUT
Connection timed out.