diff options
author | David S. Miller <davem@davemloft.net> | 2012-07-18 12:08:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-18 12:08:36 -0400 |
commit | 54399a78c95f1be0ae9bf6587cbddbfc641aab9c (patch) | |
tree | 19b942f2f76ac87a508df1161091b088fcb616ad /drivers/net/ethernet/sfc/net_driver.h | |
parent | d3818c92afabecfe6b8e5d2e3734c8753522987c (diff) | |
parent | c2dbab39db1c3c2ccbdbb2c6bac6f07cc7a7c1f6 (diff) |
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/bwh/sfc-next
Ben Hutchings says:
====================
1. Fix potential badness when running a self-test with SR-IOV enabled.
2. Fix calculation of some interface statistics that could run backward.
3. Miscellaneous cleanup.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/net_driver.h')
-rw-r--r-- | drivers/net/ethernet/sfc/net_driver.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h index a1965c07d1e3..cd9c0a989692 100644 --- a/drivers/net/ethernet/sfc/net_driver.h +++ b/drivers/net/ethernet/sfc/net_driver.h | |||
@@ -68,6 +68,8 @@ | |||
68 | #define EFX_TXQ_TYPES 4 | 68 | #define EFX_TXQ_TYPES 4 |
69 | #define EFX_MAX_TX_QUEUES (EFX_TXQ_TYPES * EFX_MAX_CHANNELS) | 69 | #define EFX_MAX_TX_QUEUES (EFX_TXQ_TYPES * EFX_MAX_CHANNELS) |
70 | 70 | ||
71 | struct efx_self_tests; | ||
72 | |||
71 | /** | 73 | /** |
72 | * struct efx_special_buffer - An Efx special buffer | 74 | * struct efx_special_buffer - An Efx special buffer |
73 | * @addr: CPU base address of the buffer | 75 | * @addr: CPU base address of the buffer |
@@ -100,7 +102,7 @@ struct efx_special_buffer { | |||
100 | * @len: Length of this fragment. | 102 | * @len: Length of this fragment. |
101 | * This field is zero when the queue slot is empty. | 103 | * This field is zero when the queue slot is empty. |
102 | * @continuation: True if this fragment is not the end of a packet. | 104 | * @continuation: True if this fragment is not the end of a packet. |
103 | * @unmap_single: True if pci_unmap_single should be used. | 105 | * @unmap_single: True if dma_unmap_single should be used. |
104 | * @unmap_len: Length of this fragment to unmap | 106 | * @unmap_len: Length of this fragment to unmap |
105 | */ | 107 | */ |
106 | struct efx_tx_buffer { | 108 | struct efx_tx_buffer { |
@@ -901,7 +903,8 @@ static inline unsigned int efx_port_num(struct efx_nic *efx) | |||
901 | * @get_wol: Get WoL configuration from driver state | 903 | * @get_wol: Get WoL configuration from driver state |
902 | * @set_wol: Push WoL configuration to the NIC | 904 | * @set_wol: Push WoL configuration to the NIC |
903 | * @resume_wol: Synchronise WoL state between driver and MC (e.g. after resume) | 905 | * @resume_wol: Synchronise WoL state between driver and MC (e.g. after resume) |
904 | * @test_registers: Test read/write functionality of control registers | 906 | * @test_chip: Test registers. Should use efx_nic_test_registers(), and is |
907 | * expected to reset the NIC. | ||
905 | * @test_nvram: Test validity of NVRAM contents | 908 | * @test_nvram: Test validity of NVRAM contents |
906 | * @revision: Hardware architecture revision | 909 | * @revision: Hardware architecture revision |
907 | * @mem_map_size: Memory BAR mapped size | 910 | * @mem_map_size: Memory BAR mapped size |
@@ -946,7 +949,7 @@ struct efx_nic_type { | |||
946 | void (*get_wol)(struct efx_nic *efx, struct ethtool_wolinfo *wol); | 949 | void (*get_wol)(struct efx_nic *efx, struct ethtool_wolinfo *wol); |
947 | int (*set_wol)(struct efx_nic *efx, u32 type); | 950 | int (*set_wol)(struct efx_nic *efx, u32 type); |
948 | void (*resume_wol)(struct efx_nic *efx); | 951 | void (*resume_wol)(struct efx_nic *efx); |
949 | int (*test_registers)(struct efx_nic *efx); | 952 | int (*test_chip)(struct efx_nic *efx, struct efx_self_tests *tests); |
950 | int (*test_nvram)(struct efx_nic *efx); | 953 | int (*test_nvram)(struct efx_nic *efx); |
951 | 954 | ||
952 | int revision; | 955 | int revision; |