commit: http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=f592b2fe7fe81b06f991c5d35d546ca61ef5be67
branch: http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/trunk

Signed-off-by: Sonic Zhang <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
---
 arch/blackfin/include/asm/bfin-mdma.h |   14 ++++++++++++++
 arch/blackfin/include/asm/bfin_crc.h  |   20 ++++++++++++++------
 2 files changed, 28 insertions(+), 6 deletions(-)

diff --git a/arch/blackfin/include/asm/bfin-mdma.h b/arch/blackfin/include/asm/bfin-mdma.h
new file mode 100644
index 0000000..0d00615
--- /dev/null
+++ b/arch/blackfin/include/asm/bfin-mdma.h
@@ -0,0 +1,14 @@
+
+/*** User space interface: START ***/
+struct user_mdma_state {
+	unsigned int channel;
+	volatile int done;
+	struct dmasg dsc_src, dsc_dst;
+};
+
+#define BF_DMA_REQUEST _IOW('D', 0x00, struct user_dma_state)
+#define BF_DMA_FREE    _IOW('D', 0x01, struct user_dma_state)
+#define BF_DMA_RUN     _IOW('D', 0x02, struct user_dma_state)
+#define BF_DMA_ARUN    _IOW('D', 0x03, struct user_dma_state)
+/*** User space interface: END ***/
+
diff --git a/arch/blackfin/include/asm/bfin_crc.h b/arch/blackfin/include/asm/bfin_crc.h
index 84b869a..e08f2a3 100644
--- a/arch/blackfin/include/asm/bfin_crc.h
+++ b/arch/blackfin/include/asm/bfin_crc.h
@@ -12,19 +12,27 @@
 /* Function driver which use hardware crc must initialize the structure */
 struct crc_info {
 	/* Input data address */
-	unsigned long in_addr;
+	unsigned char *in_addr;
 	/* Output data address */
-	unsigned long out_addr;
+	unsigned char *out_addr;
 	/* Input or output bytes */
-	unsigned long crc_datasize;
-	/* Value to compare with input data or CRC of input data */
+	unsigned long datasize;
+	union {
+	/* CRC to compare with that of input buffer */
 	unsigned long crc_compare;
+	/* Value to compare with input data */
+	unsigned long val_verify;
+	/* Value to fill */
+	unsigned long val_fill;
+	};
 	/* Value to program the 32b CRC Polynomial */
 	unsigned long crc_poly;
+	union {
 	/* CRC calculated from the input data */
 	unsigned long crc_result;
-	/* Data to fill */
-	unsigned long crc_fillval;
+	/* First failed position to verify input data */
+	unsigned long pos_verify;
+	};
 	/* CRC mirror flags */
 	unsigned int bitmirr:1;
 	unsigned int bytmirr:1;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to