diff options
author | Thomas Miletich <thomas.miletich@gmail.com> | 2012-02-10 14:17:45 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-02-10 13:34:23 +0000 |
commit | 1476d6f47ca0bbd8aaefa396eb8bc0be0a1bd4be (patch) | |
tree | d2ae2854eae1cfc77a521994a9ffaf52fc8cbd8f /src/drivers/net/tg3/tg3_hw.c | |
parent | 3a4253868ce0c9c1f6fc7fd0f8a2e06afc19e9bb (diff) | |
download | ipxe-1476d6f47ca0bbd8aaefa396eb8bc0be0a1bd4be.tar.gz |
[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>
Diffstat (limited to 'src/drivers/net/tg3/tg3_hw.c')
-rw-r--r-- | src/drivers/net/tg3/tg3_hw.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/drivers/net/tg3/tg3_hw.c b/src/drivers/net/tg3/tg3_hw.c index 18bbc4f0..13d5962c 100644 --- a/src/drivers/net/tg3/tg3_hw.c +++ b/src/drivers/net/tg3/tg3_hw.c @@ -2564,28 +2564,6 @@ void tg3_set_txd(struct tg3 *tp, int entry, txd->vlan_tag = 0; } -u32 tg3_calc_dma_bndry(struct tg3 *tp, u32 val) -{ DBGP("%s\n", __func__); - - u8 byte; - - pci_read_config_byte(tp->pdev, PCI_CACHE_LINE_SIZE, &byte); - - /* On 5703 and later chips, the boundary bits have no - * effect. - */ - if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5700 && - GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5701 && - !tg3_flag(tp, PCI_EXPRESS)) - goto out; - - if (tg3_flag(tp, 57765_PLUS)) - val = DMA_RWCTRL_DIS_CACHE_ALIGNMENT; - -out: - return val; -} - int tg3_do_test_dma(struct tg3 *tp, u32 __unused *buf, dma_addr_t buf_dma, int size, int to_device) { DBGP("%s\n", __func__); |