diff options
author | Mark Einon <mark.einon@gmail.com> | 2013-01-04 22:25:45 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-07 14:03:32 -0800 |
commit | 3040d05685c899c4a0be86667fa206b19dab0ab8 (patch) | |
tree | 6467e64d7f23777fc6085415687db45fdf338d3b /drivers/staging/et131x/et131x.h | |
parent | 0902468846460274018100bec29e2b236f70ab14 (diff) | |
download | op-kernel-dev-3040d05685c899c4a0be86667fa206b19dab0ab8.zip op-kernel-dev-3040d05685c899c4a0be86667fa206b19dab0ab8.tar.gz |
staging: et131x: Replace rxdma csr register magic numbers with defines
Several magic numbers were used to represent rxdma csr register bitmasks.
Replace them with descriptive defines.
Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/et131x/et131x.h')
-rw-r--r-- | drivers/staging/et131x/et131x.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/staging/et131x/et131x.h b/drivers/staging/et131x/et131x.h index 347e63d..9fa47f9 100644 --- a/drivers/staging/et131x/et131x.h +++ b/drivers/staging/et131x/et131x.h @@ -317,6 +317,14 @@ struct txdma_regs { /* Location: */ * 18-31: unused */ +#define ET_RXDMA_CSR_HALT 0x0001 +#define ET_RXDMA_CSR_FBR0_SIZE_LO 0x0100 +#define ET_RXDMA_CSR_FBR0_SIZE_HI 0x0200 +#define ET_RXDMA_CSR_FBR0_ENABLE 0x0400 +#define ET_RXDMA_CSR_FBR1_SIZE_LO 0x0800 +#define ET_RXDMA_CSR_FBR1_SIZE_HI 0x1000 +#define ET_RXDMA_CSR_FBR1_ENABLE 0x2000 +#define ET_RXDMA_CSR_HALT_STATUS 0x00020000 /* * structure for dma writeback lo reg in rxdma address map |