@@ -124,10 +124,10 @@ where
124124 // Note: this _must_ happen before configuring the MAC.
125125 // It's not entirely clear why, but no interrupts are
126126 // generated if the order is reversed.
127- let dma = EthernetDMA :: new ( eth_dma, rx_buffer, tx_buffer) ;
127+ let dma = EthernetDMA :: new ( eth_dma, & eth_mac , rx_buffer, tx_buffer) ;
128128
129129 // Configure the ethernet MAC
130- let mac = EthernetMAC :: new ( eth_mac, eth_mmc, clocks) ?;
130+ let mac = EthernetMAC :: new ( eth_mac, eth_mmc, & dma , clocks) ?;
131131
132132 Ok ( ( dma, mac) )
133133}
@@ -182,10 +182,10 @@ where
182182 // Note: this _must_ happen before configuring the MAC.
183183 // It's not entirely clear why, but no interrupts are
184184 // generated if the order is reversed.
185- let dma = EthernetDMA :: new ( eth_dma, rx_buffer, tx_buffer) ;
185+ let dma = EthernetDMA :: new ( eth_dma, & eth_mac , rx_buffer, tx_buffer) ;
186186
187187 // Configure the ethernet MAC
188- let mac = EthernetMAC :: new ( eth_mac, eth_mmc, clocks) ?. with_mii ( mdio, mdc) ;
188+ let mac = EthernetMAC :: new ( eth_mac, eth_mmc, & dma , clocks) ?. with_mii ( mdio, mdc) ;
189189
190190 Ok ( ( dma, mac) )
191191}
0 commit comments