diff options
Diffstat (limited to 'drivers/dma/at_hdmac_regs.h')
-rw-r--r-- | drivers/dma/at_hdmac_regs.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/drivers/dma/at_hdmac_regs.h b/drivers/dma/at_hdmac_regs.h index 897a8bcaec90..8a6c8e8b2940 100644 --- a/drivers/dma/at_hdmac_regs.h +++ b/drivers/dma/at_hdmac_regs.h | |||
@@ -87,7 +87,26 @@ | |||
87 | /* Bitfields in CTRLA */ | 87 | /* Bitfields in CTRLA */ |
88 | #define ATC_BTSIZE_MAX 0xFFFFUL /* Maximum Buffer Transfer Size */ | 88 | #define ATC_BTSIZE_MAX 0xFFFFUL /* Maximum Buffer Transfer Size */ |
89 | #define ATC_BTSIZE(x) (ATC_BTSIZE_MAX & (x)) /* Buffer Transfer Size */ | 89 | #define ATC_BTSIZE(x) (ATC_BTSIZE_MAX & (x)) /* Buffer Transfer Size */ |
90 | /* Chunck Tranfer size definitions are in at_hdmac.h */ | 90 | #define ATC_SCSIZE_MASK (0x7 << 16) /* Source Chunk Transfer Size */ |
91 | #define ATC_SCSIZE(x) (ATC_SCSIZE_MASK & ((x) << 16)) | ||
92 | #define ATC_SCSIZE_1 (0x0 << 16) | ||
93 | #define ATC_SCSIZE_4 (0x1 << 16) | ||
94 | #define ATC_SCSIZE_8 (0x2 << 16) | ||
95 | #define ATC_SCSIZE_16 (0x3 << 16) | ||
96 | #define ATC_SCSIZE_32 (0x4 << 16) | ||
97 | #define ATC_SCSIZE_64 (0x5 << 16) | ||
98 | #define ATC_SCSIZE_128 (0x6 << 16) | ||
99 | #define ATC_SCSIZE_256 (0x7 << 16) | ||
100 | #define ATC_DCSIZE_MASK (0x7 << 20) /* Destination Chunk Transfer Size */ | ||
101 | #define ATC_DCSIZE(x) (ATC_DCSIZE_MASK & ((x) << 20)) | ||
102 | #define ATC_DCSIZE_1 (0x0 << 20) | ||
103 | #define ATC_DCSIZE_4 (0x1 << 20) | ||
104 | #define ATC_DCSIZE_8 (0x2 << 20) | ||
105 | #define ATC_DCSIZE_16 (0x3 << 20) | ||
106 | #define ATC_DCSIZE_32 (0x4 << 20) | ||
107 | #define ATC_DCSIZE_64 (0x5 << 20) | ||
108 | #define ATC_DCSIZE_128 (0x6 << 20) | ||
109 | #define ATC_DCSIZE_256 (0x7 << 20) | ||
91 | #define ATC_SRC_WIDTH_MASK (0x3 << 24) /* Source Single Transfer Size */ | 110 | #define ATC_SRC_WIDTH_MASK (0x3 << 24) /* Source Single Transfer Size */ |
92 | #define ATC_SRC_WIDTH(x) ((x) << 24) | 111 | #define ATC_SRC_WIDTH(x) ((x) << 24) |
93 | #define ATC_SRC_WIDTH_BYTE (0x0 << 24) | 112 | #define ATC_SRC_WIDTH_BYTE (0x0 << 24) |