Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/ingenic/jz4780_pdma.h
| Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
| #define DCM_TSZ_128 (0x6 << DCM_TSZ_S) | #define DCM_TSZ_128 (0x6 << DCM_TSZ_S) | ||||
| #define DCM_TIE (1 << 1) /* Transfer Interrupt Enable (TIE). */ | #define DCM_TIE (1 << 1) /* Transfer Interrupt Enable (TIE). */ | ||||
| #define DCM_LINK (1 << 0) /* Descriptor Link Enable. */ | #define DCM_LINK (1 << 0) /* Descriptor Link Enable. */ | ||||
| #define PDMA_DDA(n) (0x18 + 0x20 * n) /* Channel n Descriptor Address */ | #define PDMA_DDA(n) (0x18 + 0x20 * n) /* Channel n Descriptor Address */ | ||||
| #define PDMA_DSD(n) (0x1C + 0x20 * n) /* Channel n Stride Difference */ | #define PDMA_DSD(n) (0x1C + 0x20 * n) /* Channel n Stride Difference */ | ||||
| /* Global Control Registers */ | /* Global Control Registers */ | ||||
| #define PDMA_DMAC 0x1000 /* DMA Control */ | #define PDMA_DMAC 0x1000 /* DMA Control */ | ||||
| #define DMAC_FMSC (1 << 31) | #define DMAC_FMSC (1U << 31) | ||||
| #define DMAC_INTCC_S 17 | #define DMAC_INTCC_S 17 | ||||
| #define DMAC_INTCC_M (0x1f << DMAC_INTCC_S) | #define DMAC_INTCC_M (0x1f << DMAC_INTCC_S) | ||||
| #define DMAC_INTCE (1 << 16) /* Permit INTC_IRQ to be bound to one of programmable channel. */ | #define DMAC_INTCE (1 << 16) /* Permit INTC_IRQ to be bound to one of programmable channel. */ | ||||
| #define DMAC_HLT (1 << 3) /* Global halt status */ | #define DMAC_HLT (1 << 3) /* Global halt status */ | ||||
| #define DMAC_AR (1 << 2) /* Global address error status */ | #define DMAC_AR (1 << 2) /* Global address error status */ | ||||
| #define DMAC_DMAE (1 << 0) /* Enable DMA. */ | #define DMAC_DMAE (1 << 0) /* Enable DMA. */ | ||||
| #define PDMA_DIRQP 0x1004 /* DMA Interrupt Pending */ | #define PDMA_DIRQP 0x1004 /* DMA Interrupt Pending */ | ||||
| #define PDMA_DDB 0x1008 /* DMA Doorbell */ | #define PDMA_DDB 0x1008 /* DMA Doorbell */ | ||||
| Show All 22 Lines | |||||