139
143
#define PCIE_TX_DMA_REG(REG, CHAN) (PCIE_TX_DMA_REG_BASE + (CHAN*DMA_REG_GRP_SIZE) + REG)
140
144
#define PCIE_RX_DMA_REG(REG, CHAN) (PCIE_RX_DMA_REG_BASE + (CHAN*DMA_REG_GRP_SIZE) + REG)
143
149
static const uint32_t DMA_CTRL_SW_BUF_U64 = (3 << 4);
144
150
static const uint32_t DMA_CTRL_SW_BUF_U32 = (2 << 4);
145
151
static const uint32_t DMA_CTRL_SW_BUF_U16 = (1 << 4);
146
152
static const uint32_t DMA_CTRL_SW_BUF_U8 = (0 << 4);
149
156
static const uint32_t PCIE_ROUTER_REG_BASE = PCIE_FPGA_REG(0x0500);
150
157
#define PCIE_ROUTER_REG(X) (PCIE_ROUTER_REG_BASE + X)