mirror of
https://github.com/ipxe/ipxe
synced 2026-01-11 16:08:34 +03:00
[tg3] Remove tg3_calc_dma_bndry()
This function never did much in this driver anyway, and after commit
b5ed30b2 ("[tg3] Fix compilation on newer gcc versions") it became
apparent that its remaining functionality could be easily moved to
tg3_test_dma().
Signed-off-by: Thomas Miletich <thomas.miletich@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
3a4253868c
commit
1476d6f47c
@@ -544,13 +544,13 @@ static int tg3_test_dma(struct tg3 *tp)
|
||||
buf_dma = virt_to_bus(buf);
|
||||
DBGC2(tp->dev, "dma test buffer, virt: %p phys: %#08x\n", buf, buf_dma);
|
||||
|
||||
tp->dma_rwctrl = ((0x7 << DMA_RWCTRL_PCI_WRITE_CMD_SHIFT) |
|
||||
(0x6 << DMA_RWCTRL_PCI_READ_CMD_SHIFT));
|
||||
|
||||
tp->dma_rwctrl = tg3_calc_dma_bndry(tp, tp->dma_rwctrl);
|
||||
|
||||
if (tg3_flag(tp, 57765_PLUS))
|
||||
if (tg3_flag(tp, 57765_PLUS)) {
|
||||
tp->dma_rwctrl = DMA_RWCTRL_DIS_CACHE_ALIGNMENT;
|
||||
goto out;
|
||||
}
|
||||
|
||||
tp->dma_rwctrl = ((0x7 << DMA_RWCTRL_PCI_WRITE_CMD_SHIFT) |
|
||||
(0x6 << DMA_RWCTRL_PCI_READ_CMD_SHIFT));
|
||||
|
||||
if (tg3_flag(tp, PCI_EXPRESS)) {
|
||||
/* DMA read watermark not used on PCIE */
|
||||
|
||||
Reference in New Issue
Block a user