bxe.c (304163) | bxe.c (305614) |
---|---|
1/*- 2 * Copyright (c) 2007-2014 QLogic Corporation. 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 * 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 22 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 24 * THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2007-2014 QLogic Corporation. 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 * 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 22 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 24 * THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: stable/11/sys/dev/bxe/bxe.c 304163 2016-08-15 15:23:45Z rstone $"); | 28__FBSDID("$FreeBSD: stable/11/sys/dev/bxe/bxe.c 305614 2016-09-08 15:05:25Z pfg $"); |
29 30#define BXE_DRIVER_VERSION "1.78.81" 31 32#include "bxe.h" 33#include "ecore_sp.h" 34#include "ecore_init.h" 35#include "ecore_init_ops.h" 36 --- 13290 unchanged lines hidden (view full) --- 13327 SHMEM_RD(sc, dev_info.shared_hw_config.config2); 13328 13329 sc->link_params.hw_led_mode = 13330 ((sc->devinfo.hw_config & SHARED_HW_CFG_LED_MODE_MASK) >> 13331 SHARED_HW_CFG_LED_MODE_SHIFT); 13332 13333 /* get the port feature config */ 13334 sc->port.config = | 29 30#define BXE_DRIVER_VERSION "1.78.81" 31 32#include "bxe.h" 33#include "ecore_sp.h" 34#include "ecore_init.h" 35#include "ecore_init_ops.h" 36 --- 13290 unchanged lines hidden (view full) --- 13327 SHMEM_RD(sc, dev_info.shared_hw_config.config2); 13328 13329 sc->link_params.hw_led_mode = 13330 ((sc->devinfo.hw_config & SHARED_HW_CFG_LED_MODE_MASK) >> 13331 SHARED_HW_CFG_LED_MODE_SHIFT); 13332 13333 /* get the port feature config */ 13334 sc->port.config = |
13335 SHMEM_RD(sc, dev_info.port_feature_config[port].config), | 13335 SHMEM_RD(sc, dev_info.port_feature_config[port].config); |
13336 13337 /* get the link params */ 13338 sc->link_params.speed_cap_mask[0] = 13339 SHMEM_RD(sc, dev_info.port_hw_config[port].speed_capability_mask); 13340 sc->link_params.speed_cap_mask[1] = 13341 SHMEM_RD(sc, dev_info.port_hw_config[port].speed_capability_mask2); 13342 13343 /* get the lane config */ --- 5651 unchanged lines hidden --- | 13336 13337 /* get the link params */ 13338 sc->link_params.speed_cap_mask[0] = 13339 SHMEM_RD(sc, dev_info.port_hw_config[port].speed_capability_mask); 13340 sc->link_params.speed_cap_mask[1] = 13341 SHMEM_RD(sc, dev_info.port_hw_config[port].speed_capability_mask2); 13342 13343 /* get the lane config */ --- 5651 unchanged lines hidden --- |