diff options
author | Michael Brown | 2018-04-19 13:38:55 +0200 |
---|---|---|
committer | Michael Brown | 2018-04-19 13:43:06 +0200 |
commit | 6804a8c89b8c31c3ef4e7e8ab03b82ebee41dd45 (patch) | |
tree | ceb234f68817ac16268c97b55771c0e0d16c9e7c /src/drivers/net/realtek.h | |
parent | [velocity] Fix usage of mii_read() and mii_write() (diff) | |
download | ipxe-6804a8c89b8c31c3ef4e7e8ab03b82ebee41dd45.tar.gz ipxe-6804a8c89b8c31c3ef4e7e8ab03b82ebee41dd45.tar.xz ipxe-6804a8c89b8c31c3ef4e7e8ab03b82ebee41dd45.zip |
[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 <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/realtek.h')
-rw-r--r-- | src/drivers/net/realtek.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/net/realtek.h b/src/drivers/net/realtek.h index b1ce7f98..4d13784c 100644 --- a/src/drivers/net/realtek.h +++ b/src/drivers/net/realtek.h @@ -283,7 +283,9 @@ struct realtek_nic { /** Non-volatile options */ struct nvo_block nvo; /** MII interface */ - struct mii_interface mii; + struct mii_interface mdio; + /** MII device */ + struct mii_device mii; /** Legacy datapath mode */ int legacy; |