Title: [7714] trunk/drivers/char/bfin-dma.c: Bug [#5537], the number of ioctl BF_DMA_RUN conflict with kerenl ioctl number FIGETBSZ, modify the kernel define
- Revision
- 7714
- Author
- gyang
- Date
- 2009-10-27 00:06:04 -0400 (Tue, 27 Oct 2009)
Log Message
Bug [#5537], the number of ioctl BF_DMA_RUN conflict with kerenl ioctl number FIGETBSZ, modify the kernel define
Modified Paths
Diff
Modified: trunk/drivers/char/bfin-dma.c (7713 => 7714)
--- trunk/drivers/char/bfin-dma.c 2009-10-27 01:53:01 UTC (rev 7713)
+++ trunk/drivers/char/bfin-dma.c 2009-10-27 04:06:04 UTC (rev 7714)
@@ -31,18 +31,16 @@
#define PFX DRIVER_NAME ": "
/*** User space interface: START ***/
-enum {
- BF_DMA_REQUEST = 0,
- BF_DMA_FREE,
- BF_DMA_RUN,
- BF_DMA_ARUN,
-};
-
struct user_dma_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 ***/
struct dma_state {
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits