Linux Kernel
3.7.1
|
#include <linux/interrupt.h>
#include "../comedidev.h"
#include "comedi_fc.h"
#include "8253.h"
#include "amcc_s5933.h"
Go to the source code of this file.
Data Structures | |
struct | boardtype |
struct | pci1710_private |
Macros | |
#define | PCI171x_PARANOIDCHECK |
#define | PCI_VENDOR_ID_ADVANTECH 0x13fe |
#define | TYPE_PCI171X 0 |
#define | TYPE_PCI1713 2 |
#define | TYPE_PCI1720 3 |
#define | IORANGE_171x 32 |
#define | IORANGE_1720 16 |
#define | PCI171x_AD_DATA 0 /* R: A/D data */ |
#define | PCI171x_SOFTTRG 0 /* W: soft trigger for A/D */ |
#define | PCI171x_RANGE 2 /* W: A/D gain/range register */ |
#define | PCI171x_MUX 4 /* W: A/D multiplexor control */ |
#define | PCI171x_STATUS 6 /* R: status register */ |
#define | PCI171x_CONTROL 6 /* W: control register */ |
#define | PCI171x_CLRINT 8 /* W: clear interrupts request */ |
#define | PCI171x_CLRFIFO 9 /* W: clear FIFO */ |
#define | PCI171x_DA1 10 /* W: D/A register */ |
#define | PCI171x_DA2 12 /* W: D/A register */ |
#define | PCI171x_DAREF 14 /* W: D/A reference control */ |
#define | PCI171x_DI 16 /* R: digi inputs */ |
#define | PCI171x_DO 16 /* R: digi inputs */ |
#define | PCI171x_CNT0 24 /* R/W: 8254 counter 0 */ |
#define | PCI171x_CNT1 26 /* R/W: 8254 counter 1 */ |
#define | PCI171x_CNT2 28 /* R/W: 8254 counter 2 */ |
#define | PCI171x_CNTCTRL 30 /* W: 8254 counter control */ |
#define | Status_FE 0x0100 /* 1=FIFO is empty */ |
#define | Status_FH 0x0200 /* 1=FIFO is half full */ |
#define | Status_FF 0x0400 /* 1=FIFO is full, fatal error */ |
#define | Status_IRQ 0x0800 /* 1=IRQ occurred */ |
#define | Control_CNT0 |
#define | Control_ONEFH 0x0020 /* 1=IRQ on FIFO is half full, 0=every sample */ |
#define | Control_IRQEN 0x0010 /* 1=enable IRQ */ |
#define | Control_GATE 0x0008 /* 1=enable external trigger GATE (8254?) */ |
#define | Control_EXT 0x0004 /* 1=external trigger source */ |
#define | Control_PACER 0x0002 /* 1=enable internal 8254 trigger source */ |
#define | Control_SW 0x0001 /* 1=enable software trigger source */ |
#define | Counter_BCD 0x0001 /* 0 = binary counter, 1 = BCD counter */ |
#define | Counter_M0 0x0002 /* M0-M2 select modes 0-5 */ |
#define | Counter_M1 0x0004 /* 000 = mode 0, 010 = mode 2 ... */ |
#define | Counter_M2 0x0008 |
#define | Counter_RW0 0x0010 /* RW0/RW1 select read/write mode */ |
#define | Counter_RW1 0x0020 |
#define | Counter_SC0 0x0040 /* Select Counter. Only 00 or 11 may */ |
#define | Counter_SC1 |
#define | PCI1720_DA0 0 /* W: D/A register 0 */ |
#define | PCI1720_DA1 2 /* W: D/A register 1 */ |
#define | PCI1720_DA2 4 /* W: D/A register 2 */ |
#define | PCI1720_DA3 6 /* W: D/A register 3 */ |
#define | PCI1720_RANGE 8 /* R/W: D/A range register */ |
#define | PCI1720_SYNCOUT 9 /* W: D/A synchronized output register */ |
#define | PCI1720_SYNCONT 15 /* R/W: D/A synchronized control */ |
#define | Syncont_SC0 1 /* set synchronous output mode */ |
Functions | |
MODULE_DEVICE_TABLE (pci, adv_pci1710_pci_table) | |
module_comedi_pci_driver (adv_pci1710_driver, adv_pci1710_pci_driver) | |
MODULE_AUTHOR ("Comedi http://www.comedi.org") | |
MODULE_DESCRIPTION ("Comedi low-level driver") | |
MODULE_LICENSE ("GPL") | |
#define Control_CNT0 |
Definition at line 89 of file adv_pci1710.c.
#define Control_EXT 0x0004 /* 1=external trigger source */ |
Definition at line 93 of file adv_pci1710.c.
#define Control_GATE 0x0008 /* 1=enable external trigger GATE (8254?) */ |
Definition at line 92 of file adv_pci1710.c.
#define Control_IRQEN 0x0010 /* 1=enable IRQ */ |
Definition at line 91 of file adv_pci1710.c.
#define Control_ONEFH 0x0020 /* 1=IRQ on FIFO is half full, 0=every sample */ |
Definition at line 90 of file adv_pci1710.c.
#define Control_PACER 0x0002 /* 1=enable internal 8254 trigger source */ |
Definition at line 94 of file adv_pci1710.c.
#define Control_SW 0x0001 /* 1=enable software trigger source */ |
Definition at line 95 of file adv_pci1710.c.
#define Counter_BCD 0x0001 /* 0 = binary counter, 1 = BCD counter */ |
Definition at line 97 of file adv_pci1710.c.
#define Counter_M0 0x0002 /* M0-M2 select modes 0-5 */ |
Definition at line 98 of file adv_pci1710.c.
#define Counter_M1 0x0004 /* 000 = mode 0, 010 = mode 2 ... */ |
Definition at line 99 of file adv_pci1710.c.
#define Counter_M2 0x0008 |
Definition at line 100 of file adv_pci1710.c.
#define Counter_RW0 0x0010 /* RW0/RW1 select read/write mode */ |
Definition at line 101 of file adv_pci1710.c.
#define Counter_RW1 0x0020 |
Definition at line 102 of file adv_pci1710.c.
#define Counter_SC0 0x0040 /* Select Counter. Only 00 or 11 may */ |
Definition at line 103 of file adv_pci1710.c.
#define Counter_SC1 |
Definition at line 104 of file adv_pci1710.c.
#define IORANGE_171x 32 |
Definition at line 61 of file adv_pci1710.c.
#define IORANGE_1720 16 |
Definition at line 62 of file adv_pci1710.c.
Definition at line 64 of file adv_pci1710.c.
Definition at line 71 of file adv_pci1710.c.
Definition at line 70 of file adv_pci1710.c.
Definition at line 77 of file adv_pci1710.c.
Definition at line 78 of file adv_pci1710.c.
Definition at line 79 of file adv_pci1710.c.
Definition at line 80 of file adv_pci1710.c.
#define PCI171x_CONTROL 6 /* W: control register */ |
Definition at line 69 of file adv_pci1710.c.
Definition at line 72 of file adv_pci1710.c.
Definition at line 73 of file adv_pci1710.c.
Definition at line 74 of file adv_pci1710.c.
#define PCI171x_DI 16 /* R: digi inputs */ |
Definition at line 75 of file adv_pci1710.c.
#define PCI171x_DO 16 /* R: digi inputs */ |
Definition at line 76 of file adv_pci1710.c.
Definition at line 67 of file adv_pci1710.c.
#define PCI171x_PARANOIDCHECK |
Definition at line 52 of file adv_pci1710.c.
Definition at line 66 of file adv_pci1710.c.
Definition at line 65 of file adv_pci1710.c.
#define PCI171x_STATUS 6 /* R: status register */ |
Definition at line 68 of file adv_pci1710.c.
Definition at line 106 of file adv_pci1710.c.
Definition at line 107 of file adv_pci1710.c.
Definition at line 108 of file adv_pci1710.c.
Definition at line 109 of file adv_pci1710.c.
Definition at line 112 of file adv_pci1710.c.
Definition at line 111 of file adv_pci1710.c.
#define PCI_VENDOR_ID_ADVANTECH 0x13fe |
Definition at line 54 of file adv_pci1710.c.
#define Status_FE 0x0100 /* 1=FIFO is empty */ |
Definition at line 84 of file adv_pci1710.c.
#define Status_FF 0x0400 /* 1=FIFO is full, fatal error */ |
Definition at line 86 of file adv_pci1710.c.
#define Status_FH 0x0200 /* 1=FIFO is half full */ |
Definition at line 85 of file adv_pci1710.c.
#define Status_IRQ 0x0800 /* 1=IRQ occurred */ |
Definition at line 87 of file adv_pci1710.c.
Definition at line 115 of file adv_pci1710.c.
#define TYPE_PCI1713 2 |
Definition at line 58 of file adv_pci1710.c.
#define TYPE_PCI171X 0 |
Definition at line 57 of file adv_pci1710.c.
#define TYPE_PCI1720 3 |
Definition at line 59 of file adv_pci1710.c.
MODULE_AUTHOR | ( | "Comedi http://www.comedi.org" | ) |
module_comedi_pci_driver | ( | adv_pci1710_driver | , |
adv_pci1710_pci_driver | |||
) |
MODULE_DEVICE_TABLE | ( | pci | , |
adv_pci1710_pci_table | |||
) |
MODULE_LICENSE | ( | "GPL" | ) |