net: axienet: Upgrade descriptors to hold 64-bit addresses
authorAndre Przywara <andre.przywara@arm.com>
Tue, 24 Mar 2020 13:23:45 +0000 (13:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Mar 2020 23:33:05 +0000 (16:33 -0700)
commit4e958f33ee8f404787711416fe0f78cce2b2f4e2
tree7e21b924ac3879690f66fd97bf2579295660e5df
parent6a00d0dd3fcfa2ef200973479fbeee62f3681130
net: axienet: Upgrade descriptors to hold 64-bit addresses

Newer revisions of the AXI DMA IP (>= v7.1) support 64-bit addresses,
both for the descriptors itself, as well as for the buffers they are
pointing to.
This is realised by adding "MSB" words for the next and phys pointer
right behind the existing address word, now named "LSB". These MSB words
live in formerly reserved areas of the descriptor.

If the hardware supports it, write both words when setting an address.
The buffer address is handled by two wrapper functions, the two
occasions where we set the next pointers are open coded.

For now this is guarded by a flag which we don't set yet.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_axienet.h
drivers/net/ethernet/xilinx/xilinx_axienet_main.c