staging: comedi: s526: add macros for counter control reg values
authorIan Abbott <abbotti@mev.co.uk>
Thu, 19 Nov 2015 14:49:08 +0000 (14:49 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Dec 2015 00:00:12 +0000 (16:00 -0800)
commite5417e49965a47f690fe33ab5b27011c86ef89b5
tree8d42f88a26e4be091b37deb98b8e8bc38a6e87fb
parent479bd5edab3ca840ba60a89d3172029039ddc2a6
staging: comedi: s526: add macros for counter control reg values

The driver writes a couple of literal values to the counter
control/status register, 0x8000 to reset the counter, and 0x4000 to load
the counter from preload register 0.  Add a bunch of macros to define
these values and other values for the register, based on the Sensoray
526 manual.

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