diff options
author | Olof Johansson <olof@lixom.net> | 2007-10-03 14:03:54 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:54:30 -0400 |
commit | af289e803fdf2fcd19cf4a57c3c896dba146c756 (patch) | |
tree | 038fe6e9a32ed958450bf0bd33227a3c23342ae8 /drivers/net/pasemi_mac.h | |
parent | 9ddf7774b9d760dc3fa4d5ae7d7fd92d4c02150b (diff) |
pasemi_mac: enable iommu support
pasemi_mac: enable iommu support
Enable IOMMU support for pasemi_mac, but avoid using it on non-partitioned
systems for performance reasons.
The user can override this by selecting the PPC_PASEMI_IOMMU_DMA_FORCE
configuration option.
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.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/pasemi_mac.h b/drivers/net/pasemi_mac.h index 1a120408cf3f..60368df72634 100644 --- a/drivers/net/pasemi_mac.h +++ b/drivers/net/pasemi_mac.h | |||
@@ -212,6 +212,7 @@ enum { | |||
212 | #define PAS_DMA_RXINT_CFG_DHL_S 24 | 212 | #define PAS_DMA_RXINT_CFG_DHL_S 24 |
213 | #define PAS_DMA_RXINT_CFG_DHL(x) (((x) << PAS_DMA_RXINT_CFG_DHL_S) & \ | 213 | #define PAS_DMA_RXINT_CFG_DHL(x) (((x) << PAS_DMA_RXINT_CFG_DHL_S) & \ |
214 | PAS_DMA_RXINT_CFG_DHL_M) | 214 | PAS_DMA_RXINT_CFG_DHL_M) |
215 | #define PAS_DMA_RXINT_CFG_ITR 0x00400000 | ||
215 | #define PAS_DMA_RXINT_CFG_LW 0x00200000 | 216 | #define PAS_DMA_RXINT_CFG_LW 0x00200000 |
216 | #define PAS_DMA_RXINT_CFG_L2 0x00100000 | 217 | #define PAS_DMA_RXINT_CFG_L2 0x00100000 |
217 | #define PAS_DMA_RXINT_CFG_HEN 0x00080000 | 218 | #define PAS_DMA_RXINT_CFG_HEN 0x00080000 |
@@ -258,9 +259,11 @@ enum { | |||
258 | #define PAS_DMA_TXCHAN_CFG_WT_S 6 | 259 | #define PAS_DMA_TXCHAN_CFG_WT_S 6 |
259 | #define PAS_DMA_TXCHAN_CFG_WT(x) (((x) << PAS_DMA_TXCHAN_CFG_WT_S) & \ | 260 | #define PAS_DMA_TXCHAN_CFG_WT(x) (((x) << PAS_DMA_TXCHAN_CFG_WT_S) & \ |
260 | PAS_DMA_TXCHAN_CFG_WT_M) | 261 | PAS_DMA_TXCHAN_CFG_WT_M) |
261 | #define PAS_DMA_TXCHAN_CFG_CF 0x00001000 /* Clean first line */ | 262 | #define PAS_DMA_TXCHAN_CFG_TRD 0x00010000 /* translate data */ |
262 | #define PAS_DMA_TXCHAN_CFG_CL 0x00002000 /* Clean last line */ | 263 | #define PAS_DMA_TXCHAN_CFG_TRR 0x00008000 /* translate rings */ |
263 | #define PAS_DMA_TXCHAN_CFG_UP 0x00004000 /* update tx descr when sent */ | 264 | #define PAS_DMA_TXCHAN_CFG_UP 0x00004000 /* update tx descr when sent */ |
265 | #define PAS_DMA_TXCHAN_CFG_CL 0x00002000 /* Clean last line */ | ||
266 | #define PAS_DMA_TXCHAN_CFG_CF 0x00001000 /* Clean first line */ | ||
264 | #define PAS_DMA_TXCHAN_INCR(c) (0x310+(c)*_PAS_DMA_TXCHAN_STRIDE) | 267 | #define PAS_DMA_TXCHAN_INCR(c) (0x310+(c)*_PAS_DMA_TXCHAN_STRIDE) |
265 | #define PAS_DMA_TXCHAN_BASEL(c) (0x318+(c)*_PAS_DMA_TXCHAN_STRIDE) | 268 | #define PAS_DMA_TXCHAN_BASEL(c) (0x318+(c)*_PAS_DMA_TXCHAN_STRIDE) |
266 | #define PAS_DMA_TXCHAN_BASEL_BRBL_M 0xffffffc0 | 269 | #define PAS_DMA_TXCHAN_BASEL_BRBL_M 0xffffffc0 |
@@ -294,6 +297,7 @@ enum { | |||
294 | #define PAS_DMA_RXCHAN_CCMDSTA_FD 0x00001000 | 297 | #define PAS_DMA_RXCHAN_CCMDSTA_FD 0x00001000 |
295 | #define PAS_DMA_RXCHAN_CCMDSTA_DT 0x00000800 | 298 | #define PAS_DMA_RXCHAN_CCMDSTA_DT 0x00000800 |
296 | #define PAS_DMA_RXCHAN_CFG(c) (0x804+(c)*_PAS_DMA_RXCHAN_STRIDE) | 299 | #define PAS_DMA_RXCHAN_CFG(c) (0x804+(c)*_PAS_DMA_RXCHAN_STRIDE) |
300 | #define PAS_DMA_RXCHAN_CFG_CTR 0x00000400 | ||
297 | #define PAS_DMA_RXCHAN_CFG_HBU_M 0x00000380 | 301 | #define PAS_DMA_RXCHAN_CFG_HBU_M 0x00000380 |
298 | #define PAS_DMA_RXCHAN_CFG_HBU_S 7 | 302 | #define PAS_DMA_RXCHAN_CFG_HBU_S 7 |
299 | #define PAS_DMA_RXCHAN_CFG_HBU(x) (((x) << PAS_DMA_RXCHAN_CFG_HBU_S) & \ | 303 | #define PAS_DMA_RXCHAN_CFG_HBU(x) (((x) << PAS_DMA_RXCHAN_CFG_HBU_S) & \ |