Go to the documentation of this file.
16 #ifndef DMA_REGISTER_H
17 #define DMA_REGISTER_H
35 static const unsigned int dma_ts_shift[] = {
45 #define TS_LOW_BIT 0x3
48 #define TS_LOW_SHIFT (3)
49 #define TS_HI_SHIFT (20 - 2)
51 #define TS_INDEX2VAL(i) \
52 ((((i) & TS_LOW_BIT) << TS_LOW_SHIFT) |\
53 (((i) & TS_HI_BIT) << TS_HI_SHIFT))
55 #define CHCR_TX(xmit_sz) (DM_FIX | SM_INC | 0x800 | TS_INDEX2VAL((xmit_sz)))
56 #define CHCR_RX(xmit_sz) (DM_INC | SM_FIX | 0x800 | TS_INDEX2VAL((xmit_sz)))
70 static const unsigned int dma_usbts_shift[] = {
76 #define USBTS_LOW_BIT 0x3
77 #define USBTS_HI_BIT 0x0
79 #define USBTS_LOW_SHIFT 6
80 #define USBTS_HI_SHIFT 0
82 #define USBTS_INDEX2VAL(i) (((i) & 3) << 6)