OSDN Git Service

net: stmmac: dwmac4: Allow platforms to specify some DMA/MTL offsets
authorAndrew Halaney <ahalaney@redhat.com>
Tue, 11 Apr 2023 20:04:06 +0000 (15:04 -0500)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 13 Apr 2023 10:50:46 +0000 (12:50 +0200)
commit33719b57f52e5b761234373f98f55f4e036d61c9
treee665c5714538f6b449aafac969b59c810113e450
parent1d84b487bc2d9061bd00203f571e5cb99fe0a312
net: stmmac: dwmac4: Allow platforms to specify some DMA/MTL offsets

Some platforms have dwmac4 implementations that have a different
address space layout than the default, resulting in the need to define
their own DMA/MTL offsets.

Extend the functions to allow a platform driver to indicate what its
addresses are, overriding the defaults.

Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/dwmac4.h
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.h
drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c
include/linux/stmmac.h