~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/staging/comedi/drivers/pcl818.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
261
261
        int n_ranges;           /*  len of range list */
262
262
        int n_aichan_se;        /*  num of A/D chans in single ended  mode */
263
263
        int n_aichan_diff;      /*  num of A/D chans in diferencial mode */
264
 
        unsigned int ns_min;    /*  minimal alllowed delay between samples (in ns) */
 
264
        unsigned int ns_min;    /*  minimal allowed delay between samples (in ns) */
265
265
        int n_aochan;           /*  num of D/A chans */
266
266
        int n_dichan;           /*  num of DI chans */
267
267
        int n_dochan;           /*  num of DO chans */
349
349
        long dma_runs_to_end;   /*  how many we must permorm DMA transfer to end of record */
350
350
        unsigned long last_dma_run;     /*  how many bytes we must transfer on last DMA page */
351
351
        unsigned char neverending_ai;   /*  if=1, then we do neverending record (you must use cancel()) */
352
 
        unsigned int ns_min;    /*  manimal alllowed delay between samples (in us) for actual card */
 
352
        unsigned int ns_min;    /*  manimal allowed delay between samples (in us) for actual card */
353
353
        int i8253_osc_base;     /*  1/frequency of on board oscilator in ns */
354
354
        int irq_free;           /*  1=have allocated IRQ */
355
355
        int irq_blocked;        /*  1=IRQ now uses any subdev */
1231
1231
        }
1232
1232
 
1233
1233
        if (n_chan > 1) {
1234
 
                /*  first channel is everytime ok */
 
1234
                /*  first channel is every time ok */
1235
1235
                chansegment[0] = chanlist[0];
1236
1236
                /*  build part of chanlist */
1237
1237
                for (i = 1, seglen = 1; i < n_chan; i++, seglen++) {
1245
1245
                                break;
1246
1246
                        nowmustbechan =
1247
1247
                            (CR_CHAN(chansegment[i - 1]) + 1) % s->n_chan;
1248
 
                        if (nowmustbechan != CR_CHAN(chanlist[i])) {    /*  channel list isn't continous :-( */
 
1248
                        if (nowmustbechan != CR_CHAN(chanlist[i])) {    /*  channel list isn't continuous :-( */
1249
1249
                                printk
1250
 
                                    ("comedi%d: pcl818: channel list must be continous! chanlist[%i]=%d but must be %d or %d!\n",
 
1250
                                    ("comedi%d: pcl818: channel list must be continuous! chanlist[%i]=%d but must be %d or %d!\n",
1251
1251
                                     dev->minor, i, CR_CHAN(chanlist[i]),
1252
1252
                                     nowmustbechan, CR_CHAN(chanlist[0]));
1253
1253
                                return 0;
1662
1662
                tmp = (CMOS_READ(RTC_INTR_FLAGS) & 0xF0);       /* restart */
1663
1663
                restore_flags(flags);
1664
1664
                break;
1665
 
        };
 
1665
        }
1666
1666
}
1667
1667
 
1668
1668
/*