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

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

analogy: the subdevice structure got a new status field (broken)

---

 include/analogy/subdevice.h |   26 +++++++++++++++++++++++++-
 1 files changed, 25 insertions(+), 1 deletions(-)

diff --git a/include/analogy/subdevice.h b/include/analogy/subdevice.h
index 1c3bcd4..11a345e 100644
--- a/include/analogy/subdevice.h
+++ b/include/analogy/subdevice.h
@@ -141,12 +141,28 @@
 
          /*! @} ANALOGY_SUBD_FT_xxx */
 
+/*!
+ * @anchor ANALOGY_SUBD_ST_xxx @name Subdevice status
+ * @brief Flags to define the subdevice's status
+ * @{
+ */
+
+/* Subdevice status flag(s) */
+/** 
+ * The subdevice is busy, a synchronous or an asynchronous acquisition
+ * is occuring
+ */
+#define A4L_SUBD_BUSY_NR 0
+#define A4L_SUBD_BUSY (1 << A4L_SUBD_BUSY_NR)
+
+         /*! @} ANALOGY_SUBD_ST_xxx */
+
 #ifdef __KERNEL__
 
 /* --- Subdevice descriptor structure --- */
 
 struct a4l_device;
-struct a4l_driver;
+struct a4l_buffer;
 
 /*! 
  * @brief Structure describing the subdevice
@@ -160,9 +176,17 @@ struct a4l_subdevice {
 
        struct a4l_device *dev;
                               /**< Containing device */
+
        unsigned int idx;
                      /**< Subdevice index */
 
+       struct a4l_buffer *buf;
+                              /**< Linked buffer */
+
+       /* Subdevice's status (busy, linked?) */
+       unsigned long status;
+                            /**< Subdevice's status */
+
        /* Descriptors stuff */
        unsigned long flags;
                         /**< Type flags */


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

Reply via email to