33 static int dwmac1000_dma_init(
void __iomem *ioaddr,
int pbl,
int fb,
34 int mb,
int burst_len,
u32 dma_tx,
u32 dma_rx)
73 #ifdef CONFIG_STMMAC_DA
107 static void dwmac1000_dma_operation_mode(
void __iomem *ioaddr,
int txmode,
121 " (threshold = %d)\n", txmode);
127 else if (txmode <= 64)
129 else if (txmode <= 128)
131 else if (txmode <= 192)
142 " (threshold = %d)\n", rxmode);
147 else if (rxmode <= 64)
149 else if (rxmode <= 96)
158 static void dwmac1000_dump_dma_regs(
void __iomem *ioaddr)
162 for (i = 0; i < 22; i++) {
163 if ((i < 9) || (i > 17)) {
165 pr_err(
"\t Reg No. %d (offset 0x%x): 0x%08x\n", i,
172 static unsigned int dwmac1000_get_hw_feature(
void __iomem *ioaddr)
178 .init = dwmac1000_dma_init,
179 .dump_regs = dwmac1000_dump_dma_regs,
180 .dma_mode = dwmac1000_dma_operation_mode,
189 .get_hw_feature = dwmac1000_get_hw_feature,