diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-06-21 03:06:53 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-24 22:13:14 -0700 |
commit | 5b98c1bfcfc745604985e6a50ef7481c39a9fcea (patch) | |
tree | 229ee3aebc005882769cac7139d02779b5880a25 /drivers/net/sfc/io.h | |
parent | 565b7b2d2e632b5792879c0c9cccdd9eecd31195 (diff) | |
download | kernel_samsung_espresso10-5b98c1bfcfc745604985e6a50ef7481c39a9fcea.zip kernel_samsung_espresso10-5b98c1bfcfc745604985e6a50ef7481c39a9fcea.tar.gz kernel_samsung_espresso10-5b98c1bfcfc745604985e6a50ef7481c39a9fcea.tar.bz2 |
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/sfc/io.h b/drivers/net/sfc/io.h index b89177c..4317574 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 |