siena_nic.c (280563) | siena_nic.c (280588) |
---|---|
1/*- 2 * Copyright 2009 Solarflare Communications Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> | 1/*- 2 * Copyright 2009 Solarflare Communications Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 10 unchanged lines hidden (view full) --- 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 */ 25 26#include <sys/cdefs.h> |
27__FBSDID("$FreeBSD: stable/10/sys/dev/sfxge/common/siena_nic.c 280563 2015-03-25 11:06:16Z arybchik $"); | 27__FBSDID("$FreeBSD: stable/10/sys/dev/sfxge/common/siena_nic.c 280588 2015-03-25 13:11:19Z arybchik $"); |
28 29#include "efsys.h" 30#include "efx.h" 31#include "efx_impl.h" 32 33#if EFSYS_OPT_SIENA 34 35static __checkReturn int --- 288 unchanged lines hidden (view full) --- 324 if (MCDI_CMD_DWORD_FIELD(capabilities, CAPABILITIES_TURBO)) { 325 enp->en_features |= EFX_FEATURE_TURBO; 326 327 if (MCDI_CMD_DWORD_FIELD(capabilities, 328 CAPABILITIES_TURBO_ACTIVE)) 329 encp->enc_clk_mult = 2; 330 } 331 | 28 29#include "efsys.h" 30#include "efx.h" 31#include "efx_impl.h" 32 33#if EFSYS_OPT_SIENA 34 35static __checkReturn int --- 288 unchanged lines hidden (view full) --- 324 if (MCDI_CMD_DWORD_FIELD(capabilities, CAPABILITIES_TURBO)) { 325 enp->en_features |= EFX_FEATURE_TURBO; 326 327 if (MCDI_CMD_DWORD_FIELD(capabilities, 328 CAPABILITIES_TURBO_ACTIVE)) 329 encp->enc_clk_mult = 2; 330 } 331 |
332 encp->enc_evq_moderation_max = EFX_EV_TIMER_QUANTUM << 333 FRF_AB_TIMER_VAL_WIDTH / encp->enc_clk_mult; | 332 encp->enc_evq_timer_quantum_ns = 333 EFX_EVQ_SIENA_TIMER_QUANTUM_NS / encp->enc_clk_mult; 334 encp->enc_evq_timer_max_us = (encp->enc_evq_timer_quantum_ns << 335 FRF_CZ_TC_TIMER_VAL_WIDTH) / 1000; |
334 335 /* Resource limits */ 336 req.emr_cmd = MC_CMD_GET_RESOURCE_LIMITS; 337 EFX_STATIC_ASSERT(MC_CMD_GET_RESOURCE_LIMITS_IN_LEN == 0); 338 req.emr_in_buf = NULL; 339 req.emr_in_length = 0; 340 req.emr_out_buf = outbuf; 341 req.emr_out_length = MC_CMD_GET_RESOURCE_LIMITS_OUT_LEN; --- 645 unchanged lines hidden --- | 336 337 /* Resource limits */ 338 req.emr_cmd = MC_CMD_GET_RESOURCE_LIMITS; 339 EFX_STATIC_ASSERT(MC_CMD_GET_RESOURCE_LIMITS_IN_LEN == 0); 340 req.emr_in_buf = NULL; 341 req.emr_in_length = 0; 342 req.emr_out_buf = outbuf; 343 req.emr_out_length = MC_CMD_GET_RESOURCE_LIMITS_OUT_LEN; --- 645 unchanged lines hidden --- |