Skip to content
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

Support ethernet driver: fxmac for PhytiumPi #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

elliott10
Copy link

@elliott10 elliott10 commented Jan 23, 2025

Added ethernet driver: fxmac for PhytiumPi
Added feature: fxmac
Implemented NIC fxmac interface: FXmacDriver

Related PR: arceos-org/arceos#222

@elliott10
Copy link
Author

Added interface of crate crate_interface for fxmac net driver

pub fn init(mapped_regs: usize) -> DevResult<Self> {
info!("FXmacNic init @ {:#x}", mapped_regs);
let rx_buffer_queue = VecDeque::with_capacity(QS);
let hwaddr: [u8; 6] = [0x98, 0x0e, 0x24, 0x00, 0x11, 0x0];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we avoid hardcoding MAC address?

@@ -0,0 +1,139 @@
use crate::{EthernetAddress, NetBufPtr, NetDriverOps};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Organize crates Import order: first core/alloc, then external crates, then crate::*/super::*.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants