From 6804a8c89b8c31c3ef4e7e8ab03b82ebee41dd45 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 19 Apr 2018 12:38:55 +0100 Subject: [mii] Separate concepts of MII interface and MII device We currently have no generic concept of a PHY address, since all existing implementations simply hardcode the PHY address within the MII access methods. A bit-bashing MII interface will need to be provided with an explicit PHY address in order to generate the correct waveform. Allow for this by separating out the concept of a MII device (i.e. a specific PHY address attached to a particular MII interface). Signed-off-by: Michael Brown --- src/drivers/net/velocity.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/drivers/net/velocity.h') diff --git a/src/drivers/net/velocity.h b/src/drivers/net/velocity.h index 04e6a146..84817d1b 100644 --- a/src/drivers/net/velocity.h +++ b/src/drivers/net/velocity.h @@ -326,7 +326,9 @@ struct velocity_nic { /** Registers */ void *regs; /** MII interface */ - struct mii_interface mii; + struct mii_interface mdio; + /** MII device */ + struct mii_device mii; /** Netdev */ struct net_device *netdev; -- cgit v1.2.3-55-g7522