[PATCH 00/20] staging: comedi: re-do drivers/plx9080.h

From: Ian Abbott
Date: Fri May 20 2016 - 09:49:40 EST


Re-do "drivers/staging/comedi/drivers/plx9080.h". It mostly contains
defines for register offsets and values for the PLX PCI 9080 PCI
interface chip. To make it easier to follow, base the macro names for
register offsets on the register names from the PLX PCI 9080 data book.
Base the macro names used to construct register values on the names of
the corresponding registers. Make use of the `BIT(x)` and
`GENMASK(h,l)` macros to define register values and masks. Add
kerneldoc comments for structs and inline functions. Add `#include`
directives to declare things used within the code.

01) staging: comedi: plx9080.h: correct LRNG_IO_MASK and LMAP_IO_MASK
02) staging: comedi: plx9080.h: remove Power-Up Test Suite stuff
03) staging: comedi: drivers: rename PLX PCI 9080 register offsets
04) staging: comedi: drivers: re-do macros for PLX PCI 9080 LASxRR
values
05) staging: comedi: drivers: re-do macros for PLX PCI 9080 LASxBA
values
06) staging: comedi: drivers: re-do PLX PCI 9080 MARBR register values
07) staging: comedi: drivers: re-do PLX PCI 9080 BIGEND register values
08) staging: comedi: drivers: re-do PLX PCI 9080 LBRDx register values
09) staging: comedi: drivers: re-do PLX PCI 9080 DMPBAM register values
10) staging: comedi: drivers: re-do PLX PCI 9080 DMCFGA register values
11) staging: comedi: drivers: re-do PLX PCI 9080 INTCSR register values
12) staging: comedi: drivers: re-do PLX PCI 9080 CNTRL register values
13) staging: comedi: plx9080.h: add hard-coded PCIHIDR register value
14) staging: comedi: drivers: re-do PLX PCI 9080 DMAMODEx register
values
15) staging: comedi: drivers: re-do PLX PCI 9080 DMADPRx register values
16) staging: comedi: drivers: re-do PLX PCI 9080 DMACSRx register values
17) staging: comedi: drivers: add PLX PCI 9080 DMATHR register values
18) staging: comedi: plx9080.h: tidy up some comments
19) staging: comedi: plx9080.h: Add kerneldoc comments
20) staging: comedi: plx9080.h: include headers for declarations

drivers/staging/comedi/drivers/cb_pcidas64.c | 209 +++---
drivers/staging/comedi/drivers/gsc_hpdi.c | 87 ++-
drivers/staging/comedi/drivers/plx9080.h | 957 ++++++++++++++++-----------
drivers/staging/comedi/drivers/rtd520.c | 5 +-
4 files changed, 726 insertions(+), 532 deletions(-)