| .. | .. |
|---|
| 3 | 3 | #include <linux/if_ether.h> |
|---|
| 4 | 4 | #include <linux/kernel.h> |
|---|
| 5 | 5 | #include <linux/platform_device.h> |
|---|
| 6 | +#include <linux/dma-mapping.h> |
|---|
| 6 | 7 | |
|---|
| 7 | 8 | #include <asm/paccess.h> |
|---|
| 8 | 9 | #include <asm/sgi/ip22.h> |
|---|
| .. | .. |
|---|
| 25 | 26 | .irq = SGI_WD93_0_IRQ, |
|---|
| 26 | 27 | }; |
|---|
| 27 | 28 | |
|---|
| 29 | +static u64 sgiwd93_0_dma_mask = DMA_BIT_MASK(32); |
|---|
| 30 | + |
|---|
| 28 | 31 | static struct platform_device sgiwd93_0_device = { |
|---|
| 29 | 32 | .name = "sgiwd93", |
|---|
| 30 | 33 | .id = 0, |
|---|
| .. | .. |
|---|
| 32 | 35 | .resource = sgiwd93_0_resources, |
|---|
| 33 | 36 | .dev = { |
|---|
| 34 | 37 | .platform_data = &sgiwd93_0_pd, |
|---|
| 38 | + .dma_mask = &sgiwd93_0_dma_mask, |
|---|
| 39 | + .coherent_dma_mask = DMA_BIT_MASK(32), |
|---|
| 35 | 40 | }, |
|---|
| 36 | 41 | }; |
|---|
| 37 | 42 | |
|---|
| .. | .. |
|---|
| 49 | 54 | .irq = SGI_WD93_1_IRQ, |
|---|
| 50 | 55 | }; |
|---|
| 51 | 56 | |
|---|
| 57 | +static u64 sgiwd93_1_dma_mask = DMA_BIT_MASK(32); |
|---|
| 58 | + |
|---|
| 52 | 59 | static struct platform_device sgiwd93_1_device = { |
|---|
| 53 | 60 | .name = "sgiwd93", |
|---|
| 54 | 61 | .id = 1, |
|---|
| .. | .. |
|---|
| 56 | 63 | .resource = sgiwd93_1_resources, |
|---|
| 57 | 64 | .dev = { |
|---|
| 58 | 65 | .platform_data = &sgiwd93_1_pd, |
|---|
| 66 | + .dma_mask = &sgiwd93_1_dma_mask, |
|---|
| 67 | + .coherent_dma_mask = DMA_BIT_MASK(32), |
|---|
| 59 | 68 | }, |
|---|
| 60 | 69 | }; |
|---|
| 61 | 70 | |
|---|
| .. | .. |
|---|
| 96 | 105 | |
|---|
| 97 | 106 | static struct sgiseeq_platform_data eth0_pd; |
|---|
| 98 | 107 | |
|---|
| 108 | +static u64 sgiseeq_dma_mask = DMA_BIT_MASK(32); |
|---|
| 109 | + |
|---|
| 99 | 110 | static struct platform_device eth0_device = { |
|---|
| 100 | 111 | .name = "sgiseeq", |
|---|
| 101 | 112 | .id = 0, |
|---|
| .. | .. |
|---|
| 103 | 114 | .resource = sgiseeq_0_resources, |
|---|
| 104 | 115 | .dev = { |
|---|
| 105 | 116 | .platform_data = ð0_pd, |
|---|
| 117 | + .dma_mask = &sgiseeq_dma_mask, |
|---|
| 118 | + .coherent_dma_mask = DMA_BIT_MASK(32), |
|---|
| 106 | 119 | }, |
|---|
| 107 | 120 | }; |
|---|
| 108 | 121 | |
|---|