aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/platform_data/dma-mv_xor.h
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-10-29 16:54:49 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-11-20 15:58:56 +0100
commit60d151f38799d5e15845ee04b73cbf3839f1b06c (patch)
treee360fb470a5ba59e6a5363d964b355d3fdae5456 /include/linux/platform_data/dma-mv_xor.h
parentdma: mv_xor: split initialization/cleanup of XOR channels (diff)
downloadwireguard-linux-60d151f38799d5e15845ee04b73cbf3839f1b06c.tar.xz
wireguard-linux-60d151f38799d5e15845ee04b73cbf3839f1b06c.zip
dma: mv_xor: allow channels to be registered directly from the main device
Extend the XOR engine driver (currently called "mv_xor_shared") so that XOR channels can be passed in the platform_data structure, and be registered from there. This will allow the users of the driver to be converted to the single platform_driver variant of the mv_xor driver. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'include/linux/platform_data/dma-mv_xor.h')
-rw-r--r--include/linux/platform_data/dma-mv_xor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/platform_data/dma-mv_xor.h b/include/linux/platform_data/dma-mv_xor.h
index 2ba1f7d76eef..f2aed978ca25 100644
--- a/include/linux/platform_data/dma-mv_xor.h
+++ b/include/linux/platform_data/dma-mv_xor.h
@@ -20,5 +20,8 @@ struct mv_xor_platform_data {
size_t pool_size;
};
+struct mv_xor_shared_platform_data {
+ struct mv_xor_platform_data *channels;
+};
#endif