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

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Tue Jan 12 00:24:29 2010 +0100

analogy: [NI mite] initialize channels' status

---

 ksrc/drivers/analogy/national_instruments/mite.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/ksrc/drivers/analogy/national_instruments/mite.c 
b/ksrc/drivers/analogy/national_instruments/mite.c
index e18ffae..f812907 100644
--- a/ksrc/drivers/analogy/national_instruments/mite.c
+++ b/ksrc/drivers/analogy/national_instruments/mite.c
@@ -208,6 +208,9 @@ int mite_setup(struct mite_struct *mite, int use_iodwbsr_1)
        dump_chip_signature(csigr_bits);
 
        for (i = 0; i < mite->num_channels; i++) {
+               /* Registers the channel as a free one */
+               mite->channel_allocated[i] = 0;
+               /* Reset the channel */
                writel(CHOR_DMARESET, mite->mite_io_addr + MITE_CHOR(i));
                /* Disable interrupts */
                writel(CHCR_CLR_DMA_IE | CHCR_CLR_LINKP_IE | CHCR_CLR_SAR_IE |


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

Reply via email to