aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pasemi_mac.h
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2007-08-22 10:12:52 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:50:56 -0400
commitc0efd52b8b1951c20878208fdcbab0468f816804 (patch)
treec63af72481bda8c84f6771650bb8d992e17126cf /drivers/net/pasemi_mac.h
parentb6e05a1b67a4b2e122d78a3f0b7ec7c779bd903c (diff)
pasemi_mac: Enable L2 caching of packet headers
Enable settings to target l2 for the first few cachelines of the packet, since we'll access them to get to the various headers. Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/pasemi_mac.h')
-rw-r--r--drivers/net/pasemi_mac.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/pasemi_mac.h b/drivers/net/pasemi_mac.h
index ef443640c768..fbbc17a31db7 100644
--- a/drivers/net/pasemi_mac.h
+++ b/drivers/net/pasemi_mac.h
@@ -219,6 +219,14 @@ enum {
219#define PAS_DMA_RXINT_RCMDSTA_ACT 0x00010000 219#define PAS_DMA_RXINT_RCMDSTA_ACT 0x00010000
220#define PAS_DMA_RXINT_RCMDSTA_DROPS_M 0xfffe0000 220#define PAS_DMA_RXINT_RCMDSTA_DROPS_M 0xfffe0000
221#define PAS_DMA_RXINT_RCMDSTA_DROPS_S 17 221#define PAS_DMA_RXINT_RCMDSTA_DROPS_S 17
222#define PAS_DMA_RXINT_CFG(i) (0x204+(i)*_PAS_DMA_RXINT_STRIDE)
223#define PAS_DMA_RXINT_CFG_DHL_M 0x07000000
224#define PAS_DMA_RXINT_CFG_DHL_S 24
225#define PAS_DMA_RXINT_CFG_DHL(x) (((x) << PAS_DMA_RXINT_CFG_DHL_S) & \
226 PAS_DMA_RXINT_CFG_DHL_M)
227#define PAS_DMA_RXINT_CFG_WIF 0x00000002
228#define PAS_DMA_RXINT_CFG_WIL 0x00000001
229
222#define PAS_DMA_RXINT_INCR(i) (0x210+(i)*_PAS_DMA_RXINT_STRIDE) 230#define PAS_DMA_RXINT_INCR(i) (0x210+(i)*_PAS_DMA_RXINT_STRIDE)
223#define PAS_DMA_RXINT_INCR_INCR_M 0x0000ffff 231#define PAS_DMA_RXINT_INCR_INCR_M 0x0000ffff
224#define PAS_DMA_RXINT_INCR_INCR_S 0 232#define PAS_DMA_RXINT_INCR_INCR_S 0