mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 04:26:19 -04:00
net/ethoc: use flush_dcache_range instead of flush_dcache
flush_dcache is not declared in the common.h API, flush_dcache_range however is Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> Cc: Ben Warren <biggerbadderben@gmail.com> Cc: Thomas Chou <thomas@wytron.com.tw> Acked-by: Thomas Chou <thomas@wytron.com.tw>
This commit is contained in:
parent
a7ed871b72
commit
83ea130853
@ -271,7 +271,7 @@ static int ethoc_init_ring(struct eth_device *dev)
|
|||||||
if (i == priv->num_rx - 1)
|
if (i == priv->num_rx - 1)
|
||||||
bd.stat |= RX_BD_WRAP;
|
bd.stat |= RX_BD_WRAP;
|
||||||
|
|
||||||
flush_dcache(bd.addr, PKTSIZE_ALIGN);
|
flush_dcache_range(bd.addr, bd.addr + PKTSIZE_ALIGN);
|
||||||
ethoc_write_bd(dev, priv->num_tx + i, &bd);
|
ethoc_write_bd(dev, priv->num_tx + i, &bd);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -376,7 +376,7 @@ static int ethoc_rx(struct eth_device *dev, int limit)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* clear the buffer descriptor so it can be reused */
|
/* clear the buffer descriptor so it can be reused */
|
||||||
flush_dcache(bd.addr, PKTSIZE_ALIGN);
|
flush_dcache_range(bd.addr, bd.addr + PKTSIZE_ALIGN);
|
||||||
bd.stat &= ~RX_BD_STATS;
|
bd.stat &= ~RX_BD_STATS;
|
||||||
bd.stat |= RX_BD_EMPTY;
|
bd.stat |= RX_BD_EMPTY;
|
||||||
ethoc_write_bd(dev, entry, &bd);
|
ethoc_write_bd(dev, entry, &bd);
|
||||||
@ -430,7 +430,7 @@ static int ethoc_send(struct eth_device *dev, volatile void *packet, int length)
|
|||||||
bd.stat &= ~TX_BD_PAD;
|
bd.stat &= ~TX_BD_PAD;
|
||||||
bd.addr = (u32)packet;
|
bd.addr = (u32)packet;
|
||||||
|
|
||||||
flush_dcache(bd.addr, length);
|
flush_dcache_range(bd.addr, bd.addr + length);
|
||||||
bd.stat &= ~(TX_BD_STATS | TX_BD_LEN_MASK);
|
bd.stat &= ~(TX_BD_STATS | TX_BD_LEN_MASK);
|
||||||
bd.stat |= TX_BD_LEN(length);
|
bd.stat |= TX_BD_LEN(length);
|
||||||
ethoc_write_bd(dev, entry, &bd);
|
ethoc_write_bd(dev, entry, &bd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user