]> git.baikalelectronics.ru Git - kernel.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)
commita3405f2017ccea7d1d3a5b7ce9428b645ddfa7f5
tree3d1dd397006817a17d500d08c281bdb52ff09d36
parentee2f2f038b547d78334e974d831e1be940ca253d
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