75 #include "../comedidev.h"
77 #include <linux/pci.h>
85 #define SKEL_START_AI_CONV 0
86 #define SKEL_AI_READ 0
100 static const struct skel_board skel_boards[] = {
119 #define PCI_VENDOR_ID_SKEL 0xdafe
131 #define thisboard ((const struct skel_board *)dev->board_ptr)
152 #define devpriv ((struct skel_private *)dev->private)
163 .driver_name =
"dummy",
165 .attach = skel_attach,
166 .detach = skel_detach,
185 .board_name = &skel_boards[0].
name,
204 static int skel_ns_to_timer(
unsigned int *
ns,
int round);
236 if (alloc_private(dev,
sizeof(
struct skel_private)) < 0)
321 for (n = 0; n < insn->
n; n++) {
327 for (i = 0; i <
TIMEOUT; i++) {
384 err |= cfc_check_trigger_is_unique(cmd->
convert_src);
385 err |= cfc_check_trigger_is_unique(cmd->
stop_src);
398 #define MAX_SPEED 10000
399 #define MIN_SPEED 1000000000
492 static int skel_ns_to_timer(
unsigned int *
ns,
int round)
513 for (i = 0; i < insn->
n; i++) {
516 devpriv->ao_readback[chan] = data[
i];
531 for (i = 0; i < insn->
n; i++)
532 data[i] =
devpriv->ao_readback[chan];
549 s->
state &= ~data[0];
550 s->
state |= data[0] & data[1];
596 #ifdef CONFIG_COMEDI_PCI_DRIVERS
608 static struct pci_driver driver_skel_pci_driver = {
610 .probe = &driver_skel_pci_probe,
614 static int __init driver_skel_init_module(
void)
623 return pci_register_driver(&driver_skel_pci_driver);
626 static void __exit driver_skel_cleanup_module(
void)
635 static int __init driver_skel_init_module(
void)
640 static void __exit driver_skel_cleanup_module(
void)