1 /******************************************************************************
3 ** FILE NAME : ifxmips_deu_dma.h
4 ** DESCRIPTION : Data Encryption Unit Driver
5 ** COPYRIGHT : Copyright (c) 2009
6 ** Infineon Technologies AG
7 ** Am Campeon 1-12, 85579 Neubiberg, Germany
9 ** This program is free software; you can redistribute it and/or modify
10 ** it under the terms of the GNU General Public License as published by
11 ** the Free Software Foundation; either version 2 of the License, or
12 ** (at your option) any later version.
15 ** $Date $Author $Comment
16 ** 08,Sept 2009 Mohammad Firdaus Initial UEIP release
17 *******************************************************************************/
20 \addtogroup IFX_DEU IFX_DEU_DRIVERS
22 \brief ifx deu driver module
26 \file ifxmips_deu_dma.h
28 \brief DMA deu driver header file
31 #ifndef IFXMIPS_DEU_DMA_H
32 #define IFXMIPS_DEU_DMA_H
34 #include <linux/init.h>
35 #include <linux/module.h>
37 #include <linux/crypto.h>
38 #include <asm/scatterlist.h>
39 #include <asm/byteorder.h>
40 #include <linux/skbuff.h>
41 #include <linux/netdevice.h>
43 // must match the size of memory block allocated for g_dma_block and g_dma_block2
44 #define DEU_MAX_PACKET_SIZE (PAGE_SIZE >> 1)
46 typedef struct ifx_deu_device {
47 struct dma_device_info *dma_device;
59 extern _ifx_deu_device ifx_deu[1];
61 extern int deu_dma_intr_handler (struct dma_device_info *, int);
62 extern u8 *deu_dma_buffer_alloc (int, int *, void **);
63 extern int deu_dma_buffer_free (u8 *, void *);
64 extern void deu_dma_inactivate_poll(struct dma_device_info* dma_dev);
65 extern void deu_dma_activate_poll (struct dma_device_info* dma_dev);
66 extern struct dma_device_info* deu_dma_reserve(struct dma_device_info** dma_device);
67 extern int deu_dma_release(struct dma_device_info** dma_device);
69 #endif /* IFMIPS_DEU_DMA_H */