]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: adl_pci6208: document the register map of the device
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 27 Jun 2012 21:56:43 +0000 (14:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 22:40:03 +0000 (15:40 -0700)
Add defines for the register map of the device. These will be
used to clarify the code.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adl_pci6208.c

index f949d201f90e9df7516627196189849410a6543b..b6a843941df4934f2d96d31ae1b4eb4a40e9bcc7 100644 (file)
@@ -53,6 +53,18 @@ References:
  */
 #include "../comedidev.h"
 
+/*
+ * PCI-6208/6216-GL register map
+ */
+#define PCI6208_AO_CONTROL(x)          (0x00 + (2 * (x)))
+#define PCI6208_AO_STATUS              0x00
+#define PCI6208_AO_STATUS_DATA_SEND    (1 << 0)
+#define PCI6208_DIO                    0x40
+#define PCI6208_DIO_DO_MASK            (0x0f)
+#define PCI6208_DIO_DO_SHIFT           (0)
+#define PCI6208_DIO_DI_MASK            (0xf0)
+#define PCI6208_DIO_DI_SHIFT           (4)
+
 /* Board descriptions */
 struct pci6208_board {
        const char *name;