-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ieee802_3_miim
crate for MIIM support, and allow MAC to borrow or own Mii
#45
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
datdenkikniet
force-pushed
the
more_smi
branch
3 times, most recently
from
June 13, 2022 09:45
273b56d
to
62db215
Compare
datdenkikniet
changed the title
Re-add
Re-add Jun 13, 2022
StationManagement
trait, and allow MAC to ignore, borrow, or own SMIStationManagement
trait, and allow MAC to borrow or own SMI
datdenkikniet
force-pushed
the
more_smi
branch
5 times, most recently
from
June 13, 2022 12:19
8c7e37d
to
85be644
Compare
datdenkikniet
force-pushed
the
more_smi
branch
2 times, most recently
from
July 15, 2022 13:41
2244066
to
3929610
Compare
datdenkikniet
changed the title
Re-add
Add Aug 3, 2022
StationManagement
trait, and allow MAC to borrow or own SMIieee802_3_miim
crate for MIIM support, and allow MAC to borrow or own SMI
Re-add StationManagement trait Implement StationManagement for `Smi` and `EthernetMAC<OwnedSmi>` Add basic driver for `LAN87XXA` based phys, based on `StationManagement` trait
Add some docs and make LAN87XXA phy implmementation a bit more clear
Make `mac` a bit more encapsulated to avoid polluting `lib` scope
…T PHY will be supported
Remove type state and just have another type for owned SMI
datdenkikniet
force-pushed
the
more_smi
branch
2 times, most recently
from
August 5, 2022 13:53
4dc3dac
to
34b8581
Compare
…cess to the entirety of the MAC peripheral for the duration of SMI accesses
datdenkikniet
changed the title
Add
Add Aug 5, 2022
ieee802_3_miim
crate for MIIM support, and allow MAC to borrow or own SMIieee802_3_miim
crate for MIIM support, and allow MAC to borrow or own Mii
korken89
approved these changes
Aug 6, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Instead of "forcing" users to implement their own PHYs based on
Smi
, and keeping track of Mdio/Mdc pins manually, this API allows one to choose between the different ways of obtaining control over the MAC's SMI.I've removed the
smi
feature because it makes little sense to me to have one to begin with, as most users will always want to interact with SMI, and if not they can continue usingnew
to avoid it.We start using the
ieee802_3_miim
crate (authored by me) for Miim (previously: StationManagement) and PHY configuration support.Additionally, this PR splits up the code for the MAC and DMA into seperate modules for easier oversight.