diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2008-10-27 23:11:14 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2008-10-27 23:11:14 +0000 |
commit | 3dde3e513b6cbdb38aaa7a00356615eda15f4d15 (patch) | |
tree | 4385e3f3d59eac0526c4c2f98a3a3a306e970b79 /sys/powerpc/powermac/dbdmavar.h | |
parent | 02d073e051fe2208425a0a96382ecaca344a369f (diff) | |
download | FreeBSD-src-3dde3e513b6cbdb38aaa7a00356615eda15f4d15.zip FreeBSD-src-3dde3e513b6cbdb38aaa7a00356615eda15f4d15.tar.gz |
Clean up some magic numbers in the DBDMA code by replacing them with
appropriately defined constants.
Suggested by: gnn
Diffstat (limited to 'sys/powerpc/powermac/dbdmavar.h')
-rw-r--r-- | sys/powerpc/powermac/dbdmavar.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/powerpc/powermac/dbdmavar.h b/sys/powerpc/powermac/dbdmavar.h index 88c3185..2916b6a 100644 --- a/sys/powerpc/powermac/dbdmavar.h +++ b/sys/powerpc/powermac/dbdmavar.h @@ -87,6 +87,8 @@ struct dbdma_channel { /* Channel control is the write channel to channel status, the upper 16 bits are a mask of which bytes to change */ +#define DBDMA_REG_MASK_SHIFT 16 + /* Status bits 0-7 are device dependent status bits */ /* |