mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
net: axienet: Add DMA registers to ethtool register dump
These registers are important for troubleshooting the state of the DMA cores. Signed-off-by: Robert Hancock <hancock@sedsystems.ca> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8b09ca823f
commit
867d03bc23
1 changed files with 9 additions and 1 deletions
|
@ -50,7 +50,7 @@
|
||||||
#define DRIVER_DESCRIPTION "Xilinx Axi Ethernet driver"
|
#define DRIVER_DESCRIPTION "Xilinx Axi Ethernet driver"
|
||||||
#define DRIVER_VERSION "1.00a"
|
#define DRIVER_VERSION "1.00a"
|
||||||
|
|
||||||
#define AXIENET_REGS_N 32
|
#define AXIENET_REGS_N 40
|
||||||
|
|
||||||
/* Match table for of_platform binding */
|
/* Match table for of_platform binding */
|
||||||
static const struct of_device_id axienet_of_match[] = {
|
static const struct of_device_id axienet_of_match[] = {
|
||||||
|
@ -1179,6 +1179,14 @@ static void axienet_ethtools_get_regs(struct net_device *ndev,
|
||||||
data[29] = axienet_ior(lp, XAE_FMI_OFFSET);
|
data[29] = axienet_ior(lp, XAE_FMI_OFFSET);
|
||||||
data[30] = axienet_ior(lp, XAE_AF0_OFFSET);
|
data[30] = axienet_ior(lp, XAE_AF0_OFFSET);
|
||||||
data[31] = axienet_ior(lp, XAE_AF1_OFFSET);
|
data[31] = axienet_ior(lp, XAE_AF1_OFFSET);
|
||||||
|
data[32] = axienet_dma_in32(lp, XAXIDMA_TX_CR_OFFSET);
|
||||||
|
data[33] = axienet_dma_in32(lp, XAXIDMA_TX_SR_OFFSET);
|
||||||
|
data[34] = axienet_dma_in32(lp, XAXIDMA_TX_CDESC_OFFSET);
|
||||||
|
data[35] = axienet_dma_in32(lp, XAXIDMA_TX_TDESC_OFFSET);
|
||||||
|
data[36] = axienet_dma_in32(lp, XAXIDMA_RX_CR_OFFSET);
|
||||||
|
data[37] = axienet_dma_in32(lp, XAXIDMA_RX_SR_OFFSET);
|
||||||
|
data[38] = axienet_dma_in32(lp, XAXIDMA_RX_CDESC_OFFSET);
|
||||||
|
data[39] = axienet_dma_in32(lp, XAXIDMA_RX_TDESC_OFFSET);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void axienet_ethtools_get_ringparam(struct net_device *ndev,
|
static void axienet_ethtools_get_ringparam(struct net_device *ndev,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue