Go to the documentation of this file.
17 unsigned int cmdptr_hi;
19 unsigned int intr_sel;
21 unsigned int wait_sel;
23 unsigned int data2ptr_hi;
24 unsigned int data2ptr;
26 unsigned int address_hi;
27 unsigned int br_addr_hi;
39 #define DEVSTAT 0x00ff
47 unsigned int phy_addr;
50 unsigned short xfer_status;
55 #define OUTPUT_LAST 0x1000
56 #define INPUT_MORE 0x2000
57 #define INPUT_LAST 0x3000
58 #define STORE_WORD 0x4000
59 #define LOAD_WORD 0x5000
60 #define DBDMA_NOP 0x6000
61 #define DBDMA_STOP 0x7000
65 #define KEY_STREAM1 0x100
66 #define KEY_STREAM2 0x200
67 #define KEY_STREAM3 0x300
68 #define KEY_REGS 0x500
69 #define KEY_SYSTEM 0x600
70 #define KEY_DEVICE 0x700
74 #define INTR_IFSET 0x10
75 #define INTR_IFCLR 0x20
76 #define INTR_ALWAYS 0x30
91 #define DBDMA_ALIGN(x) (((unsigned long)(x) + sizeof(struct dbdma_cmd) - 1) \
92 & -sizeof(struct dbdma_cmd))
95 #define DBDMA_DO_STOP(regs) do { \
96 out_le32(&((regs)->control), (RUN|FLUSH)<<16); \
97 while(in_le32(&((regs)->status)) & (ACTIVE|FLUSH)) \
101 #define DBDMA_DO_RESET(regs) do { \
102 out_le32(&((regs)->control), (ACTIVE|DEAD|WAKE|FLUSH|PAUSE|RUN)<<16);\
103 while(in_le32(&((regs)->status)) & (RUN)) \