aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2009-11-13 08:03:40 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-16 01:14:43 -0500
commitcbf9ca6cf8304beb640a948709c4672bc1d5a55f (patch)
treef1941d408d9db7eb4524fc6423de19f3ef16c342 /drivers/net/tg3.h
parent615774fe598f8ee971a8dfeb1f2ec4211241c433 (diff)
tg3: Allow DMAs to cross cacheline boundaries
By default, the 5717 (and future chips) break up PCIe DMA packets across cacheline boundaries. This isn't necessary on x86. This patch selectively loosens the restriction. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r--drivers/net/tg3.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index e7916bdafab5..42fefa11c052 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -142,8 +142,7 @@
142#define METAL_REV_B1 0x01 142#define METAL_REV_B1 0x01
143#define METAL_REV_B2 0x02 143#define METAL_REV_B2 0x02
144#define TG3PCI_DMA_RW_CTRL 0x0000006c 144#define TG3PCI_DMA_RW_CTRL 0x0000006c
145#define DMA_RWCTRL_MIN_DMA 0x000000ff 145#define DMA_RWCTRL_DIS_CACHE_ALIGNMENT 0x00000001
146#define DMA_RWCTRL_MIN_DMA_SHIFT 0
147#define DMA_RWCTRL_READ_BNDRY_MASK 0x00000700 146#define DMA_RWCTRL_READ_BNDRY_MASK 0x00000700
148#define DMA_RWCTRL_READ_BNDRY_DISAB 0x00000000 147#define DMA_RWCTRL_READ_BNDRY_DISAB 0x00000000
149#define DMA_RWCTRL_READ_BNDRY_16 0x00000100 148#define DMA_RWCTRL_READ_BNDRY_16 0x00000100