diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2008-09-01 07:49:02 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-03 09:53:48 -0400 |
commit | 8c8661e4cefdd1ddbfe7d5120f046694555d9e5c (patch) | |
tree | 0618e0392140bccadf012381e64a795dfe2e41a4 /drivers/net/sfc/selftest.h | |
parent | a515089c963b045f65c495cee1d344d8cb75e1d1 (diff) |
sfc: Extend self-tests
Include PMA/PMD in loopback self-tests as intended.
Add NVRAM checksum validation and include it in self-tests.
Add register self-tests.
Run PHY self-tests where available.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/sfc/selftest.h')
-rw-r--r-- | drivers/net/sfc/selftest.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/sfc/selftest.h b/drivers/net/sfc/selftest.h index cd59f00e2821..fc15df15d766 100644 --- a/drivers/net/sfc/selftest.h +++ b/drivers/net/sfc/selftest.h | |||
@@ -29,14 +29,19 @@ struct efx_loopback_self_tests { | |||
29 | * indicates failure. | 29 | * indicates failure. |
30 | */ | 30 | */ |
31 | struct efx_self_tests { | 31 | struct efx_self_tests { |
32 | /* online tests */ | ||
33 | int mii; | ||
34 | int nvram; | ||
32 | int interrupt; | 35 | int interrupt; |
33 | int eventq_dma[EFX_MAX_CHANNELS]; | 36 | int eventq_dma[EFX_MAX_CHANNELS]; |
34 | int eventq_int[EFX_MAX_CHANNELS]; | 37 | int eventq_int[EFX_MAX_CHANNELS]; |
35 | int eventq_poll[EFX_MAX_CHANNELS]; | 38 | int eventq_poll[EFX_MAX_CHANNELS]; |
36 | int phy_ok; | 39 | /* offline tests */ |
40 | int registers; | ||
41 | int phy; | ||
37 | int loopback_speed; | 42 | int loopback_speed; |
38 | int loopback_full_duplex; | 43 | int loopback_full_duplex; |
39 | struct efx_loopback_self_tests loopback[LOOPBACK_TEST_MAX]; | 44 | struct efx_loopback_self_tests loopback[LOOPBACK_TEST_MAX + 1]; |
40 | }; | 45 | }; |
41 | 46 | ||
42 | extern void efx_loopback_rx_packet(struct efx_nic *efx, | 47 | extern void efx_loopback_rx_packet(struct efx_nic *efx, |