bcm63xx_enet: split DMA channel register accesses
The current bcm63xx_enet driver always uses bcmenet_shared_base whenever it needs to access DMA channel configuration space or access the DMA channel state RAM. Split these register in 3 parts to be more accurate: - global DMA configuration - per DMA channel configuration space - per DMA channel state RAM space This is preliminary to support new chips where the global DMA configuration remains the same, but there is a varying number of DMA channels located at a different memory offset. Signed-off-by:Maxime Bizon <mbizon@freebox.fr> Signed-off-by:
Jonas Gorski <jogo@openwrt.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- arch/mips/bcm63xx/dev-enet.c 19 additions, 4 deletionsarch/mips/bcm63xx/dev-enet.c
- arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h 3 additions, 1 deletionarch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h
- drivers/net/ethernet/broadcom/bcm63xx_enet.c 83 additions, 56 deletionsdrivers/net/ethernet/broadcom/bcm63xx_enet.c
Please register or sign in to comment