43 #include "../comedidev.h"
59 #define DT2814_FINISH 0x80
60 #define DT2814_ERR 0x40
61 #define DT2814_BUSY 0x20
62 #define DT2814_ENB 0x10
63 #define DT2814_CHANMASK 0x0f
71 #define devpriv ((struct dt2814_private *)dev->private)
73 #define DT2814_TIMEOUT 10
74 #define DT2814_MAX_SPEED 100000
84 for (n = 0; n < insn->
n; n++) {
95 if (i >= DT2814_TIMEOUT) {
103 data[
n] = (hi << 4) | (lo >> 4);
109 static int dt2814_ns_to_timer(
unsigned int *
ns,
unsigned int flags)
117 for (i = 0; i < 8; i++) {
118 if ((2 * (*ns)) < (f * 11))
147 err |= cfc_check_trigger_is_unique(cmd->
stop_src);
237 data = (hi << 4) | (lo >> 4);
296 restore_flags(flags);
307 if (
request_irq(irq, dt2814_interrupt, 0,
"dt2814", dev)) {
313 }
else if (irq == 0) {
338 s->
do_cmd = dt2814_ai_cmd;
355 .driver_name =
"dt2814",
357 .attach = dt2814_attach,
358 .detach = dt2814_detach,