aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/io.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2010-06-21 03:06:53 +0000
committerDavid S. Miller <davem@davemloft.net>2010-06-24 22:13:14 -0700
commit5b98c1bfcfc745604985e6a50ef7481c39a9fcea (patch)
tree229ee3aebc005882769cac7139d02779b5880a25 /drivers/net/sfc/io.h
parenttcp: do not send reset to already closed sockets (diff)
downloadlinux-dev-5b98c1bfcfc745604985e6a50ef7481c39a9fcea.tar.xz
linux-dev-5b98c1bfcfc745604985e6a50ef7481c39a9fcea.zip
sfc: Implement ethtool register dump operation
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Acked-by: Jeff Garzik <jgarzik@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/io.h')
-rw-r--r--drivers/net/sfc/io.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/sfc/io.h b/drivers/net/sfc/io.h
index b89177c27f4a..4317574c772d 100644
--- a/drivers/net/sfc/io.h
+++ b/drivers/net/sfc/io.h
@@ -211,6 +211,13 @@ static inline void efx_writed_table(struct efx_nic *efx, efx_dword_t *value,
efx_writed(efx, value, reg + index * sizeof(efx_oword_t));
}
+/* Read from a dword register forming part of a table */
+static inline void efx_readd_table(struct efx_nic *efx, efx_dword_t *value,
+ unsigned int reg, unsigned int index)
+{
+ efx_readd(efx, value, reg + index * sizeof(efx_dword_t));
+}
+
/* Page-mapped register block size */
#define EFX_PAGE_BLOCK_SIZE 0x2000