diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-04-08 04:35:30 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-08 04:35:30 -0400 |
commit | 5ea472a77f8e4811ceee3f44a9deda6ad6e8b789 (patch) | |
tree | a9ec5019e2b666a19874fc344ffb0dd5da6bce94 /drivers/net/tg3.c | |
parent | 6c009ecef8cca28c7c09eb16d0802e37915a76e1 (diff) | |
parent | 577c9c456f0e1371cbade38eaf91ae8e8a308555 (diff) |
Merge commit 'v2.6.30-rc1' into perfcounters/core
Conflicts:
arch/powerpc/include/asm/systbl.h
arch/powerpc/include/asm/unistd.h
include/linux/init_task.h
Merge reason: the conflicts are non-trivial: PowerPC placement
of sys_perf_counter_open has to be mixed with the
new preadv/pwrite syscalls.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 437683aab32c..6a736dda3ee2 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -4975,7 +4975,7 @@ static inline int tg3_40bit_overflow_test(struct tg3 *tp, dma_addr_t mapping, | |||
4975 | { | 4975 | { |
4976 | #if defined(CONFIG_HIGHMEM) && (BITS_PER_LONG == 64) | 4976 | #if defined(CONFIG_HIGHMEM) && (BITS_PER_LONG == 64) |
4977 | if (tp->tg3_flags & TG3_FLAG_40BIT_DMA_BUG) | 4977 | if (tp->tg3_flags & TG3_FLAG_40BIT_DMA_BUG) |
4978 | return (((u64) mapping + len) > DMA_40BIT_MASK); | 4978 | return (((u64) mapping + len) > DMA_BIT_MASK(40)); |
4979 | return 0; | 4979 | return 0; |
4980 | #else | 4980 | #else |
4981 | return 0; | 4981 | return 0; |
@@ -13228,17 +13228,17 @@ static int __devinit tg3_init_one(struct pci_dev *pdev, | |||
13228 | * do DMA address check in tg3_start_xmit(). | 13228 | * do DMA address check in tg3_start_xmit(). |
13229 | */ | 13229 | */ |
13230 | if (tp->tg3_flags2 & TG3_FLG2_IS_5788) | 13230 | if (tp->tg3_flags2 & TG3_FLG2_IS_5788) |
13231 | persist_dma_mask = dma_mask = DMA_32BIT_MASK; | 13231 | persist_dma_mask = dma_mask = DMA_BIT_MASK(32); |
13232 | else if (tp->tg3_flags & TG3_FLAG_40BIT_DMA_BUG) { | 13232 | else if (tp->tg3_flags & TG3_FLAG_40BIT_DMA_BUG) { |
13233 | persist_dma_mask = dma_mask = DMA_40BIT_MASK; | 13233 | persist_dma_mask = dma_mask = DMA_BIT_MASK(40); |
13234 | #ifdef CONFIG_HIGHMEM | 13234 | #ifdef CONFIG_HIGHMEM |
13235 | dma_mask = DMA_64BIT_MASK; | 13235 | dma_mask = DMA_BIT_MASK(64); |
13236 | #endif | 13236 | #endif |
13237 | } else | 13237 | } else |
13238 | persist_dma_mask = dma_mask = DMA_64BIT_MASK; | 13238 | persist_dma_mask = dma_mask = DMA_BIT_MASK(64); |
13239 | 13239 | ||
13240 | /* Configure DMA attributes. */ | 13240 | /* Configure DMA attributes. */ |
13241 | if (dma_mask > DMA_32BIT_MASK) { | 13241 | if (dma_mask > DMA_BIT_MASK(32)) { |
13242 | err = pci_set_dma_mask(pdev, dma_mask); | 13242 | err = pci_set_dma_mask(pdev, dma_mask); |
13243 | if (!err) { | 13243 | if (!err) { |
13244 | dev->features |= NETIF_F_HIGHDMA; | 13244 | dev->features |= NETIF_F_HIGHDMA; |
@@ -13251,8 +13251,8 @@ static int __devinit tg3_init_one(struct pci_dev *pdev, | |||
13251 | } | 13251 | } |
13252 | } | 13252 | } |
13253 | } | 13253 | } |
13254 | if (err || dma_mask == DMA_32BIT_MASK) { | 13254 | if (err || dma_mask == DMA_BIT_MASK(32)) { |
13255 | err = pci_set_dma_mask(pdev, DMA_32BIT_MASK); | 13255 | err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32)); |
13256 | if (err) { | 13256 | if (err) { |
13257 | printk(KERN_ERR PFX "No usable DMA configuration, " | 13257 | printk(KERN_ERR PFX "No usable DMA configuration, " |
13258 | "aborting.\n"); | 13258 | "aborting.\n"); |
@@ -13393,8 +13393,8 @@ static int __devinit tg3_init_one(struct pci_dev *pdev, | |||
13393 | (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE) != 0); | 13393 | (tp->tg3_flags2 & TG3_FLG2_TSO_CAPABLE) != 0); |
13394 | printk(KERN_INFO "%s: dma_rwctrl[%08x] dma_mask[%d-bit]\n", | 13394 | printk(KERN_INFO "%s: dma_rwctrl[%08x] dma_mask[%d-bit]\n", |
13395 | dev->name, tp->dma_rwctrl, | 13395 | dev->name, tp->dma_rwctrl, |
13396 | (pdev->dma_mask == DMA_32BIT_MASK) ? 32 : | 13396 | (pdev->dma_mask == DMA_BIT_MASK(32)) ? 32 : |
13397 | (((u64) pdev->dma_mask == DMA_40BIT_MASK) ? 40 : 64)); | 13397 | (((u64) pdev->dma_mask == DMA_BIT_MASK(40)) ? 40 : 64)); |
13398 | 13398 | ||
13399 | return 0; | 13399 | return 0; |
13400 | 13400 | ||