1
2 #ifndef KPC_DMA_COMMON_DEFS_H_
3 #define KPC_DMA_COMMON_DEFS_H_
4
5 #define KPC_DMA_COMMON_OFFSET 0x4000
6 #define KPC_DMA_S2C_BASE_OFFSET 0x0000
7 #define KPC_DMA_C2S_BASE_OFFSET 0x2000
8 #define KPC_DMA_ENGINE_SIZE 0x0100
9 #define ENGINE_CAP_PRESENT_MASK 0x1
10
11
12 #define KPC_DMA_CARD_IRQ_ENABLE (1 << 0)
13 #define KPC_DMA_CARD_IRQ_ACTIVE (1 << 1)
14 #define KPC_DMA_CARD_IRQ_PENDING (1 << 2)
15 #define KPC_DMA_CARD_IRQ_MSI (1 << 3)
16 #define KPC_DMA_CARD_USER_INTERRUPT_MODE (1 << 4)
17 #define KPC_DMA_CARD_USER_INTERRUPT_ACTIVE (1 << 5)
18 #define KPC_DMA_CARD_IRQ_MSIX_MODE (1 << 6)
19 #define KPC_DMA_CARD_MAX_PAYLOAD_SIZE_MASK 0x0700
20 #define KPC_DMA_CARD_MAX_READ_REQUEST_SIZE_MASK 0x7000
21 #define KPC_DMA_CARD_S2C_INTERRUPT_STATUS_MASK 0x00FF0000
22 #define KPC_DMA_CARD_C2S_INTERRUPT_STATUS_MASK 0xFF000000
23
24 #endif