mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 21:26:40 +07:00
6150f3bc0b
Only AES use DMA in AT91SAM9G45 (TDES and SHA use PDC). However latest Atmel TDES and SHA IP releases use DMA instead of PDC. --> Atmel TDES and SHA drivers need DMA platform data for those IP releases. Goal of this patch is to use the same platform data structure for all Atmel crypto peripherals. This structure contains information about DMA interface. Signed-off-by: Nicolas Royer <nicolas@eukrea.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Eric Bénard <eric@eukrea.com> Tested-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
23 lines
506 B
C
23 lines
506 B
C
#ifndef __LINUX_CRYPTO_ATMEL_H
|
|
#define __LINUX_CRYPTO_ATMEL_H
|
|
|
|
#include <linux/platform_data/dma-atmel.h>
|
|
|
|
/**
|
|
* struct crypto_dma_data - DMA data for AES/TDES/SHA
|
|
*/
|
|
struct crypto_dma_data {
|
|
struct at_dma_slave txdata;
|
|
struct at_dma_slave rxdata;
|
|
};
|
|
|
|
/**
|
|
* struct crypto_platform_data - board-specific AES/TDES/SHA configuration
|
|
* @dma_slave: DMA slave interface to use in data transfers.
|
|
*/
|
|
struct crypto_platform_data {
|
|
struct crypto_dma_data *dma_slave;
|
|
};
|
|
|
|
#endif /* __LINUX_CRYPTO_ATMEL_H */
|