Cadence Macb ethernet driver

cadence-macb ethernet Rust driver on SiFive FU740 board.

Quick Start

Initialize ethernet driver ``` pub struct MEM; impl MemMapping for MEM { fn dmaalloccoherent(pages: usize) -> usize { ... } fn dmafreecoherent(paddr: usize, pages: usize) { ... } }

let mut macbdevice = cadencemacb::eth_macb::open::(&mac).unwrap(); ```

Sending network packets ``` cadencemacb::ethmacbops::macbsend(&mut macb_device, &packet);

```

Receiving network packets ``` cadencemacb::ethmacbops::macbrecv(&mut macbdevice, &mut rxbuffer);

```

Reference