Module: xenomai-abe
Branch: analogy
Commit: 1753bf2ddb0a83d6c7d186e538470ae94d9424a2
URL:    
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=1753bf2ddb0a83d6c7d186e538470ae94d9424a2

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

analogy: the buffer structure is now the central field of a4l_context (broken)

---

 include/analogy/buffer.h |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/include/analogy/buffer.h b/include/analogy/buffer.h
index 007f01e..49d2a9f 100644
--- a/include/analogy/buffer.h
+++ b/include/analogy/buffer.h
@@ -43,11 +43,21 @@
 #define A4L_BUF_ERROR (1 << A4L_BUF_ERROR_NR)
 #define A4L_BUF_EOA (1 << A4L_BUF_EOA_NR)
 
+/* Status bits */
+#define A4L_BUF_BULK_NR 8
+#define A4L_BUF_MAP_NR 8
+/* Status flags */
+#define A4L_BUF_BULK (1 << A4L_BUF_BULK_NR)
+#define A4L_BUF_MAP (1 << A4L_BUF_MAP_NR)
+
 struct a4l_subdevice;
 
 /* Buffer descriptor structure */
 struct a4l_buffer {
 
+       /* Added by the structure update */
+       a4l_subd_t *subd;
+
        /* Buffer's first virtual page pointer */
        void *buf;
 
@@ -65,8 +75,8 @@ struct a4l_buffer {
        unsigned long cns_count;
        unsigned long tmp_count;
 
-       /* Events occuring during transfer */
-       unsigned long evt_flags;
+       /* Status + events occuring during transfer */
+       unsigned long flags;
 
        /* Command on progress */
        a4l_cmd_t *cur_cmd;


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

Reply via email to