]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: drivers: re-do macros for PLX PCI 9080 LASxRR values
authorIan Abbott <abbotti@mev.co.uk>
Fri, 20 May 2016 13:49:06 +0000 (14:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Jun 2016 03:59:52 +0000 (20:59 -0700)
commitbe13e14e31c6ce247fa4d6635f53d9755a545d4b
tree3d1dd397006817a17d500d08c281bdb52ff09d36
parentc644a11aae6e36b6dbae425cdfa9630d2abaaa16
staging: comedi: drivers: re-do macros for PLX PCI 9080 LASxRR values

Rename the macros for the PLX PCI 9080 LAS0RR and LAS1RR registers in
"plx9080.h", using the prefix `PLX_LASRR_`.  Make use of the `BIT(x)`
and `GENMASK(h,l)` macros to define the values.

Define a macro `PLX_LASRR_PREFETCH` for the "prefetchable memory" bit in
this register, and define a macro `PLX_LASRR_MLOC_MASK` to mask the PCI
memory location control bits.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_pcidas64.c
drivers/staging/comedi/drivers/plx9080.h