efx_impl.h (299318) | efx_impl.h (299320) |
---|---|
1/*- 2 * Copyright (c) 2007-2015 Solarflare Communications Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright notice, --- 13 unchanged lines hidden (view full) --- 22 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 23 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 * The views and conclusions contained in the software and documentation are 27 * those of the authors and should not be interpreted as representing official 28 * policies, either expressed or implied, of the FreeBSD Project. 29 * | 1/*- 2 * Copyright (c) 2007-2015 Solarflare Communications Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright notice, --- 13 unchanged lines hidden (view full) --- 22 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 23 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * 26 * The views and conclusions contained in the software and documentation are 27 * those of the authors and should not be interpreted as representing official 28 * policies, either expressed or implied, of the FreeBSD Project. 29 * |
30 * $FreeBSD: head/sys/dev/sfxge/common/efx_impl.h 299318 2016-05-10 06:51:20Z arybchik $ | 30 * $FreeBSD: head/sys/dev/sfxge/common/efx_impl.h 299320 2016-05-10 07:01:06Z arybchik $ |
31 */ 32 33#ifndef _SYS_EFX_IMPL_H 34#define _SYS_EFX_IMPL_H 35 36#include "efsys.h" 37#include "efx_check.h" 38#include "efx.h" 39#include "efx_regs.h" 40#include "efx_regs_ef10.h" 41 42/* FIXME: Add definition for driver generated software events */ 43#ifndef ESE_DZ_EV_CODE_DRV_GEN_EV 44#define ESE_DZ_EV_CODE_DRV_GEN_EV FSE_AZ_EV_CODE_DRV_GEN_EV 45#endif 46 47 | 31 */ 32 33#ifndef _SYS_EFX_IMPL_H 34#define _SYS_EFX_IMPL_H 35 36#include "efsys.h" 37#include "efx_check.h" 38#include "efx.h" 39#include "efx_regs.h" 40#include "efx_regs_ef10.h" 41 42/* FIXME: Add definition for driver generated software events */ 43#ifndef ESE_DZ_EV_CODE_DRV_GEN_EV 44#define ESE_DZ_EV_CODE_DRV_GEN_EV FSE_AZ_EV_CODE_DRV_GEN_EV 45#endif 46 47 |
48#if EFSYS_OPT_FALCON 49#include "falcon_impl.h" 50#endif /* EFSYS_OPT_FALCON */ 51 | |
52#if EFSYS_OPT_SIENA 53#include "siena_impl.h" 54#endif /* EFSYS_OPT_SIENA */ 55 56#if EFSYS_OPT_HUNTINGTON 57#include "hunt_impl.h" 58#endif /* EFSYS_OPT_HUNTINGTON */ 59 --- 378 unchanged lines hidden (view full) --- 438} falconsiena_filter_tbl_t; 439 440typedef struct falconsiena_filter_s { 441 falconsiena_filter_tbl_t fsf_tbl[EFX_FS_FILTER_NTBLS]; 442 unsigned int fsf_depth[EFX_FS_FILTER_NTYPES]; 443} falconsiena_filter_t; 444 445typedef struct efx_filter_s { | 48#if EFSYS_OPT_SIENA 49#include "siena_impl.h" 50#endif /* EFSYS_OPT_SIENA */ 51 52#if EFSYS_OPT_HUNTINGTON 53#include "hunt_impl.h" 54#endif /* EFSYS_OPT_HUNTINGTON */ 55 --- 378 unchanged lines hidden (view full) --- 434} falconsiena_filter_tbl_t; 435 436typedef struct falconsiena_filter_s { 437 falconsiena_filter_tbl_t fsf_tbl[EFX_FS_FILTER_NTBLS]; 438 unsigned int fsf_depth[EFX_FS_FILTER_NTYPES]; 439} falconsiena_filter_t; 440 441typedef struct efx_filter_s { |
446#if EFSYS_OPT_FALCON || EFSYS_OPT_SIENA | 442#if EFSYS_OPT_SIENA |
447 falconsiena_filter_t *ef_falconsiena_filter; | 443 falconsiena_filter_t *ef_falconsiena_filter; |
448#endif /* EFSYS_OPT_FALCON || EFSYS_OPT_SIENA */ | 444#endif /* EFSYS_OPT_SIENA */ |
449#if EFSYS_OPT_HUNTINGTON || EFSYS_OPT_MEDFORD 450 ef10_filter_table_t *ef_ef10_filter_table; 451#endif /* EFSYS_OPT_HUNTINGTON || EFSYS_OPT_MEDFORD */ 452} efx_filter_t; 453 454extern void 455falconsiena_filter_tbl_clear( 456 __in efx_nic_t *enp, --- 206 unchanged lines hidden (view full) --- 663 efx_rx_scale_support_t en_rss_support; 664 uint32_t en_rss_context; 665#endif /* EFSYS_OPT_RX_SCALE */ 666 uint32_t en_vport_id; 667#if EFSYS_OPT_LICENSING 668 efx_lic_ops_t *en_elop; 669#endif 670 union { | 445#if EFSYS_OPT_HUNTINGTON || EFSYS_OPT_MEDFORD 446 ef10_filter_table_t *ef_ef10_filter_table; 447#endif /* EFSYS_OPT_HUNTINGTON || EFSYS_OPT_MEDFORD */ 448} efx_filter_t; 449 450extern void 451falconsiena_filter_tbl_clear( 452 __in efx_nic_t *enp, --- 206 unchanged lines hidden (view full) --- 659 efx_rx_scale_support_t en_rss_support; 660 uint32_t en_rss_context; 661#endif /* EFSYS_OPT_RX_SCALE */ 662 uint32_t en_vport_id; 663#if EFSYS_OPT_LICENSING 664 efx_lic_ops_t *en_elop; 665#endif 666 union { |
671#if EFSYS_OPT_FALCON 672 struct { 673 falcon_spi_dev_t enu_fsd[FALCON_SPI_NTYPES]; 674 falcon_i2c_t enu_fip; 675 boolean_t enu_i2c_locked; 676#if EFSYS_OPT_FALCON_NIC_CFG_OVERRIDE 677 const uint8_t *enu_forced_cfg; 678#endif /* EFSYS_OPT_FALCON_NIC_CFG_OVERRIDE */ 679 uint8_t enu_mon_devid; 680 uint16_t enu_board_rev; 681 boolean_t enu_internal_sram; 682 uint8_t enu_sram_num_bank; 683 uint8_t enu_sram_bank_size; 684 } falcon; 685#endif /* EFSYS_OPT_FALCON */ | |
686#if EFSYS_OPT_SIENA 687 struct { 688#if EFSYS_OPT_NVRAM || EFSYS_OPT_VPD 689 unsigned int enu_partn_mask; 690#endif /* EFSYS_OPT_NVRAM || EFSYS_OPT_VPD */ 691#if EFSYS_OPT_VPD 692 caddr_t enu_svpd; 693 size_t enu_svpd_length; --- 517 unchanged lines hidden --- | 667#if EFSYS_OPT_SIENA 668 struct { 669#if EFSYS_OPT_NVRAM || EFSYS_OPT_VPD 670 unsigned int enu_partn_mask; 671#endif /* EFSYS_OPT_NVRAM || EFSYS_OPT_VPD */ 672#if EFSYS_OPT_VPD 673 caddr_t enu_svpd; 674 size_t enu_svpd_length; --- 517 unchanged lines hidden --- |