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

Author: Daniele Nicolodi <nicol...@science.unitn.it>
Date:   Fri Mar 19 00:11:31 2010 +0100

analogy: [pcimio] enable subdevice buffer mmapping

---

 .../analogy/national_instruments/mio_common.c      |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ksrc/drivers/analogy/national_instruments/mio_common.c 
b/ksrc/drivers/analogy/national_instruments/mio_common.c
index 1a39206..a51a3cd 100644
--- a/ksrc/drivers/analogy/national_instruments/mio_common.c
+++ b/ksrc/drivers/analogy/national_instruments/mio_common.c
@@ -4913,7 +4913,7 @@ int ni_E_init(a4l_dev_t *dev)
                a4l_dbg(1, drv_dbg, dev, 
                        "mio_common: AI: %d channels\n", boardtype.n_adchan);
 
-               subd->flags = A4L_SUBD_AI | A4L_SUBD_CMD;
+               subd->flags = A4L_SUBD_AI | A4L_SUBD_CMD | A4L_SUBD_MMAP;
                subd->rng_desc = ni_range_lkup[boardtype.gainlkup];
 
                subd->chan_desc = kmalloc(sizeof(a4l_chdesc_t) + 
@@ -4981,7 +4981,7 @@ int ni_E_init(a4l_dev_t *dev)
                
 
                if (boardtype.ao_fifo_depth) {
-                       subd->flags |= A4L_SUBD_CMD;
+                       subd->flags |= A4L_SUBD_CMD | A4L_SUBD_MMAP;
                        subd->do_cmd = &ni_ao_cmd;
                        subd->cmd_mask = &mio_ao_cmd_mask;
                        subd->do_cmdtest = &ni_ao_cmdtest;


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

Reply via email to