},
};
-static struct mv_xor_platform_data orion_xor0_channels_pdata[2] = {
+static struct mv_xor_channel_data orion_xor0_channels_data[2] = {
{
.hw_id = 0,
.pool_size = PAGE_SIZE,
};
static struct mv_xor_shared_platform_data orion_xor0_pdata = {
- .channels = orion_xor0_channels_pdata,
+ .channels = orion_xor0_channels_data,
};
static struct platform_device orion_xor0_shared = {
* two engines can't do memset simultaneously, this limitation
* satisfied by removing memset support from one of the engines.
*/
- dma_cap_set(DMA_MEMCPY, orion_xor0_channels_pdata[0].cap_mask);
- dma_cap_set(DMA_XOR, orion_xor0_channels_pdata[0].cap_mask);
+ dma_cap_set(DMA_MEMCPY, orion_xor0_channels_data[0].cap_mask);
+ dma_cap_set(DMA_XOR, orion_xor0_channels_data[0].cap_mask);
- dma_cap_set(DMA_MEMSET, orion_xor0_channels_pdata[1].cap_mask);
- dma_cap_set(DMA_MEMCPY, orion_xor0_channels_pdata[1].cap_mask);
- dma_cap_set(DMA_XOR, orion_xor0_channels_pdata[1].cap_mask);
+ dma_cap_set(DMA_MEMSET, orion_xor0_channels_data[1].cap_mask);
+ dma_cap_set(DMA_MEMCPY, orion_xor0_channels_data[1].cap_mask);
+ dma_cap_set(DMA_XOR, orion_xor0_channels_data[1].cap_mask);
platform_device_register(&orion_xor0_shared);
}
},
};
-static struct mv_xor_platform_data orion_xor1_channels_pdata[2] = {
+static struct mv_xor_channel_data orion_xor1_channels_data[2] = {
{
.hw_id = 0,
.pool_size = PAGE_SIZE,
};
static struct mv_xor_shared_platform_data orion_xor1_pdata = {
- .channels = orion_xor1_channels_pdata,
+ .channels = orion_xor1_channels_data,
};
static struct platform_device orion_xor1_shared = {
* two engines can't do memset simultaneously, this limitation
* satisfied by removing memset support from one of the engines.
*/
- dma_cap_set(DMA_MEMCPY, orion_xor1_channels_pdata[0].cap_mask);
- dma_cap_set(DMA_XOR, orion_xor1_channels_pdata[0].cap_mask);
+ dma_cap_set(DMA_MEMCPY, orion_xor1_channels_data[0].cap_mask);
+ dma_cap_set(DMA_XOR, orion_xor1_channels_data[0].cap_mask);
- dma_cap_set(DMA_MEMSET, orion_xor1_channels_pdata[1].cap_mask);
- dma_cap_set(DMA_MEMCPY, orion_xor1_channels_pdata[1].cap_mask);
- dma_cap_set(DMA_XOR, orion_xor1_channels_pdata[1].cap_mask);
+ dma_cap_set(DMA_MEMSET, orion_xor1_channels_data[1].cap_mask);
+ dma_cap_set(DMA_MEMCPY, orion_xor1_channels_data[1].cap_mask);
+ dma_cap_set(DMA_XOR, orion_xor1_channels_data[1].cap_mask);
platform_device_register(&orion_xor1_shared);
}