Module: xenomai-2.5
Branch: master
Commit: 417d1ba03a521ca7d91bf84c01a3f4cc2b4a9039
URL:    
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=417d1ba03a521ca7d91bf84c01a3f4cc2b4a9039

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Sun May 16 23:22:36 2010 +0200

analogy: the transfer structure is left with a minimal role (broken)

This structure should be renamed.

---

 include/analogy/transfer.h |   17 ++++-------------
 1 files changed, 4 insertions(+), 13 deletions(-)

diff --git a/include/analogy/transfer.h b/include/analogy/transfer.h
index e6bdc3c..929022b 100644
--- a/include/analogy/transfer.h
+++ b/include/analogy/transfer.h
@@ -30,15 +30,14 @@
 #include <analogy/buffer.h>
 
 /* Status flags / bits */
-#define A4L_TSF_BUSY 0
-#define A4L_TSF_BULK 1
-#define A4L_TSF_MMAP 2
-#define A4L_TSF_CLEAN 3
+#define A4L_TSF_CLEAN 0
 
 /* Fields init values */
 #define A4L_IRQ_UNUSED (unsigned int)((unsigned short)(~0))
 #define A4L_IDX_UNUSED (unsigned int)(~0)
 
+/* TODO: IRQ handling must leave transfer for os_facilities */
+
 /* IRQ types */
 #define A4L_IRQ_SHARED RTDM_IRQTYPE_SHARED
 #define A4L_IRQ_EDGE RTDM_IRQTYPE_EDGE
@@ -51,24 +50,16 @@
 #ifdef __KERNEL__
 
 struct a4l_device;
-
 /* Analogy transfer descriptor */
 struct a4l_transfer {
 
        /* Subdevices desc */
        unsigned int nb_subd;
        a4l_subd_t **subds;
-       int idx_read_subd;
-       int idx_write_subd;
-
-       /* Buffer desc */
-       a4l_buf_t **bufs;
 
        /* IRQ in use */
+       /* TODO: irq_desc should vanish */
        a4l_irq_desc_t irq_desc;
-
-       /* Events/status desc */
-       unsigned long *status;
 };
 typedef struct a4l_transfer a4l_trf_t;
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to