2011-11-16 17:11:13 +00:00
|
|
|
/*-
|
2017-11-27 14:52:40 +00:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
|
|
|
*
|
2016-05-24 12:16:57 +00:00
|
|
|
* Copyright (c) 2009-2016 Solarflare Communications Inc.
|
2015-05-25 08:34:55 +00:00
|
|
|
* All rights reserved.
|
2011-11-16 17:11:13 +00:00
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
2015-05-25 08:34:55 +00:00
|
|
|
* modification, are permitted provided that the following conditions are met:
|
2011-11-16 17:11:13 +00:00
|
|
|
*
|
2015-05-25 08:34:55 +00:00
|
|
|
* 1. Redistributions of source code must retain the above copyright notice,
|
|
|
|
* this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
|
|
* this list of conditions and the following disclaimer in the documentation
|
|
|
|
* and/or other materials provided with the distribution.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
|
|
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
|
|
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
|
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
|
|
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
|
|
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
|
|
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
|
|
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
|
|
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
* The views and conclusions contained in the software and documentation are
|
|
|
|
* those of the authors and should not be interpreted as representing official
|
|
|
|
* policies, either expressed or implied, of the FreeBSD Project.
|
2011-11-28 17:19:05 +00:00
|
|
|
*
|
|
|
|
* $FreeBSD$
|
2011-11-16 17:11:13 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SYS_SIENA_IMPL_H
|
|
|
|
#define _SYS_SIENA_IMPL_H
|
|
|
|
|
|
|
|
#include "efx.h"
|
|
|
|
#include "efx_regs.h"
|
|
|
|
#include "efx_mcdi.h"
|
|
|
|
#include "siena_flash.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-11-24 15:23:58 +00:00
|
|
|
#ifndef EFX_TXQ_DC_SIZE
|
|
|
|
#define EFX_TXQ_DC_SIZE 1 /* 16 descriptors */
|
|
|
|
#endif
|
|
|
|
#ifndef EFX_RXQ_DC_SIZE
|
|
|
|
#define EFX_RXQ_DC_SIZE 3 /* 64 descriptors */
|
|
|
|
#endif
|
|
|
|
#define EFX_TXQ_DC_NDESCS(_dcsize) (8 << (_dcsize))
|
|
|
|
|
2011-11-16 17:11:13 +00:00
|
|
|
#define SIENA_NVRAM_CHUNK 0x80
|
|
|
|
|
2018-11-24 15:23:58 +00:00
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_nic_probe(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_nic_reset(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_nic_init(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
|
|
|
#if EFSYS_OPT_DIAG
|
|
|
|
|
2018-11-24 16:29:11 +00:00
|
|
|
extern efx_sram_pattern_fn_t __efx_sram_pattern_fns[];
|
|
|
|
|
|
|
|
typedef struct siena_register_set_s {
|
|
|
|
unsigned int address;
|
|
|
|
unsigned int step;
|
|
|
|
unsigned int rows;
|
|
|
|
efx_oword_t mask;
|
|
|
|
} siena_register_set_t;
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_nic_register_test(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
|
|
|
#endif /* EFSYS_OPT_DIAG */
|
|
|
|
|
|
|
|
extern void
|
|
|
|
siena_nic_fini(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
|
|
|
extern void
|
|
|
|
siena_nic_unprobe(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
|
|
|
#define SIENA_SRAM_ROWS 0x12000
|
|
|
|
|
|
|
|
extern void
|
|
|
|
siena_sram_init(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
|
|
|
#if EFSYS_OPT_DIAG
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_sram_test(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in efx_sram_pattern_fn_t func);
|
|
|
|
|
|
|
|
#endif /* EFSYS_OPT_DIAG */
|
|
|
|
|
2015-05-25 08:34:55 +00:00
|
|
|
#if EFSYS_OPT_MCDI
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2015-05-25 08:34:55 +00:00
|
|
|
siena_mcdi_init(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in const efx_mcdi_transport_t *mtp);
|
|
|
|
|
|
|
|
extern void
|
2016-01-14 09:00:35 +00:00
|
|
|
siena_mcdi_send_request(
|
2016-12-28 11:43:11 +00:00
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in_bcount(hdr_len) void *hdrp,
|
|
|
|
__in size_t hdr_len,
|
|
|
|
__in_bcount(sdu_len) void *sdup,
|
|
|
|
__in size_t sdu_len);
|
2015-05-25 08:34:55 +00:00
|
|
|
|
2015-12-11 07:20:33 +00:00
|
|
|
extern __checkReturn boolean_t
|
|
|
|
siena_mcdi_poll_response(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
2015-12-08 06:25:52 +00:00
|
|
|
extern void
|
|
|
|
siena_mcdi_read_response(
|
2016-01-13 07:46:21 +00:00
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__out_bcount(length) void *bufferp,
|
|
|
|
__in size_t offset,
|
|
|
|
__in size_t length);
|
2015-12-08 06:25:52 +00:00
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern efx_rc_t
|
2015-05-25 08:34:55 +00:00
|
|
|
siena_mcdi_poll_reboot(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
|
|
|
extern void
|
|
|
|
siena_mcdi_fini(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2015-12-10 07:42:56 +00:00
|
|
|
siena_mcdi_feature_supported(
|
2015-12-01 15:38:39 +00:00
|
|
|
__in efx_nic_t *enp,
|
2015-12-10 07:42:56 +00:00
|
|
|
__in efx_mcdi_feature_id_t id,
|
2015-05-25 08:34:55 +00:00
|
|
|
__out boolean_t *supportedp);
|
|
|
|
|
2016-12-30 11:56:12 +00:00
|
|
|
extern void
|
|
|
|
siena_mcdi_get_timeout(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in efx_mcdi_req_t *emrp,
|
|
|
|
__out uint32_t *timeoutp);
|
|
|
|
|
2015-05-25 08:34:55 +00:00
|
|
|
#endif /* EFSYS_OPT_MCDI */
|
2011-11-16 17:11:13 +00:00
|
|
|
|
|
|
|
#if EFSYS_OPT_NVRAM || EFSYS_OPT_VPD
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_nvram_partn_lock(
|
|
|
|
__in efx_nic_t *enp,
|
2016-01-12 15:31:20 +00:00
|
|
|
__in uint32_t partn);
|
2011-11-16 17:11:13 +00:00
|
|
|
|
2016-12-29 08:28:42 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_nvram_partn_unlock(
|
|
|
|
__in efx_nic_t *enp,
|
2018-11-23 10:20:20 +00:00
|
|
|
__in uint32_t partn,
|
|
|
|
__out_opt uint32_t *verify_resultp);
|
2011-11-16 17:11:13 +00:00
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_nvram_get_dynamic_cfg(
|
|
|
|
__in efx_nic_t *enp,
|
2016-01-12 15:31:20 +00:00
|
|
|
__in uint32_t partn,
|
2011-11-16 17:11:13 +00:00
|
|
|
__in boolean_t vpd,
|
|
|
|
__out siena_mc_dynamic_config_hdr_t **dcfgp,
|
|
|
|
__out size_t *sizep);
|
|
|
|
|
|
|
|
#endif /* EFSYS_OPT_VPD || EFSYS_OPT_NVRAM */
|
|
|
|
|
|
|
|
#if EFSYS_OPT_NVRAM
|
|
|
|
|
|
|
|
#if EFSYS_OPT_DIAG
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_nvram_test(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
|
|
|
#endif /* EFSYS_OPT_DIAG */
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2015-05-25 08:34:55 +00:00
|
|
|
siena_nvram_get_subtype(
|
|
|
|
__in efx_nic_t *enp,
|
2016-01-12 15:31:20 +00:00
|
|
|
__in uint32_t partn,
|
2015-05-25 08:34:55 +00:00
|
|
|
__out uint32_t *subtypep);
|
|
|
|
|
2016-01-13 06:44:05 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
|
|
|
siena_nvram_type_to_partn(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in efx_nvram_type_t type,
|
|
|
|
__out uint32_t *partnp);
|
|
|
|
|
2016-01-14 09:01:53 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
|
|
|
siena_nvram_partn_size(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in uint32_t partn,
|
|
|
|
__out size_t *sizep);
|
|
|
|
|
2016-01-15 06:28:58 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
|
|
|
siena_nvram_partn_rw_start(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in uint32_t partn,
|
|
|
|
__out size_t *chunk_sizep);
|
|
|
|
|
2016-01-15 15:19:18 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
|
|
|
siena_nvram_partn_read(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in uint32_t partn,
|
|
|
|
__in unsigned int offset,
|
|
|
|
__out_bcount(size) caddr_t data,
|
|
|
|
__in size_t size);
|
|
|
|
|
2016-01-17 05:12:37 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
|
|
|
siena_nvram_partn_erase(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in uint32_t partn,
|
|
|
|
__in unsigned int offset,
|
|
|
|
__in size_t size);
|
|
|
|
|
2016-01-18 06:13:09 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
|
|
|
siena_nvram_partn_write(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in uint32_t partn,
|
|
|
|
__in unsigned int offset,
|
|
|
|
__out_bcount(size) caddr_t data,
|
|
|
|
__in size_t size);
|
|
|
|
|
2016-12-29 08:28:42 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2016-01-18 06:14:43 +00:00
|
|
|
siena_nvram_partn_rw_finish(
|
|
|
|
__in efx_nic_t *enp,
|
2018-11-23 10:20:20 +00:00
|
|
|
__in uint32_t partn,
|
|
|
|
__out_opt uint32_t *verify_resultp);
|
2016-01-18 06:14:43 +00:00
|
|
|
|
2016-01-18 06:16:51 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
|
|
|
siena_nvram_partn_get_version(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in uint32_t partn,
|
|
|
|
__out uint32_t *subtypep,
|
|
|
|
__out_ecount(4) uint16_t version[4]);
|
|
|
|
|
2016-01-18 06:18:01 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
|
|
|
siena_nvram_partn_set_version(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in uint32_t partn,
|
|
|
|
__in_ecount(4) uint16_t version[4]);
|
2016-01-18 06:14:43 +00:00
|
|
|
|
2011-11-16 17:11:13 +00:00
|
|
|
#endif /* EFSYS_OPT_NVRAM */
|
|
|
|
|
|
|
|
#if EFSYS_OPT_VPD
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_vpd_init(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_vpd_size(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__out size_t *sizep);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_vpd_read(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__out_bcount(size) caddr_t data,
|
|
|
|
__in size_t size);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_vpd_verify(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in_bcount(size) caddr_t data,
|
|
|
|
__in size_t size);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_vpd_reinit(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in_bcount(size) caddr_t data,
|
|
|
|
__in size_t size);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_vpd_get(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in_bcount(size) caddr_t data,
|
|
|
|
__in size_t size,
|
|
|
|
__inout efx_vpd_value_t *evvp);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_vpd_set(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in_bcount(size) caddr_t data,
|
|
|
|
__in size_t size,
|
|
|
|
__in efx_vpd_value_t *evvp);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_vpd_next(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in_bcount(size) caddr_t data,
|
|
|
|
__in size_t size,
|
|
|
|
__out efx_vpd_value_t *evvp,
|
|
|
|
__inout unsigned int *contp);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_vpd_write(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in_bcount(size) caddr_t data,
|
|
|
|
__in size_t size);
|
|
|
|
|
|
|
|
extern void
|
|
|
|
siena_vpd_fini(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
|
|
|
#endif /* EFSYS_OPT_VPD */
|
|
|
|
|
|
|
|
typedef struct siena_link_state_s {
|
|
|
|
uint32_t sls_adv_cap_mask;
|
|
|
|
uint32_t sls_lp_cap_mask;
|
2016-12-28 11:01:01 +00:00
|
|
|
unsigned int sls_fcntl;
|
2011-11-16 17:11:13 +00:00
|
|
|
efx_link_mode_t sls_link_mode;
|
|
|
|
#if EFSYS_OPT_LOOPBACK
|
|
|
|
efx_loopback_type_t sls_loopback;
|
|
|
|
#endif
|
|
|
|
boolean_t sls_mac_up;
|
|
|
|
} siena_link_state_t;
|
|
|
|
|
|
|
|
extern void
|
|
|
|
siena_phy_link_ev(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in efx_qword_t *eqp,
|
|
|
|
__out efx_link_mode_t *link_modep);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_phy_get_link(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__out siena_link_state_t *slsp);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_phy_power(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in boolean_t on);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_phy_reconfigure(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_phy_verify(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_phy_oui_get(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__out uint32_t *ouip);
|
|
|
|
|
|
|
|
#if EFSYS_OPT_PHY_STATS
|
|
|
|
|
2015-11-29 05:38:40 +00:00
|
|
|
extern void
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_phy_decode_stats(
|
2015-11-29 05:38:40 +00:00
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in uint32_t vmask,
|
|
|
|
__in_opt efsys_mem_t *esmp,
|
|
|
|
__out_opt uint64_t *smaskp,
|
|
|
|
__inout_ecount_opt(EFX_PHY_NSTATS) uint32_t *stat);
|
2011-11-16 17:11:13 +00:00
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_phy_stats_update(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in efsys_mem_t *esmp,
|
2015-11-29 05:38:40 +00:00
|
|
|
__inout_ecount(EFX_PHY_NSTATS) uint32_t *stat);
|
2011-11-16 17:11:13 +00:00
|
|
|
|
|
|
|
#endif /* EFSYS_OPT_PHY_STATS */
|
|
|
|
|
2015-05-25 08:34:55 +00:00
|
|
|
#if EFSYS_OPT_BIST
|
2011-11-16 17:11:13 +00:00
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_phy_bist_start(
|
|
|
|
__in efx_nic_t *enp,
|
2015-05-25 08:34:55 +00:00
|
|
|
__in efx_bist_type_t type);
|
2011-11-16 17:11:13 +00:00
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_phy_bist_poll(
|
|
|
|
__in efx_nic_t *enp,
|
2015-05-25 08:34:55 +00:00
|
|
|
__in efx_bist_type_t type,
|
|
|
|
__out efx_bist_result_t *resultp,
|
2011-11-16 17:11:13 +00:00
|
|
|
__out_opt __drv_when(count > 0, __notnull)
|
2016-12-28 11:01:01 +00:00
|
|
|
uint32_t *value_maskp,
|
2011-11-16 17:11:13 +00:00
|
|
|
__out_ecount_opt(count) __drv_when(count > 0, __notnull)
|
|
|
|
unsigned long *valuesp,
|
|
|
|
__in size_t count);
|
|
|
|
|
|
|
|
extern void
|
|
|
|
siena_phy_bist_stop(
|
|
|
|
__in efx_nic_t *enp,
|
2015-05-25 08:34:55 +00:00
|
|
|
__in efx_bist_type_t type);
|
2011-11-16 17:11:13 +00:00
|
|
|
|
2015-05-25 08:34:55 +00:00
|
|
|
#endif /* EFSYS_OPT_BIST */
|
2011-11-16 17:11:13 +00:00
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_mac_poll(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__out efx_link_mode_t *link_modep);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_mac_up(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__out boolean_t *mac_upp);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_mac_reconfigure(
|
|
|
|
__in efx_nic_t *enp);
|
|
|
|
|
2016-05-17 06:25:00 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
|
|
|
siena_mac_pdu_get(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__out size_t *pdu);
|
|
|
|
|
2011-11-16 17:11:13 +00:00
|
|
|
#if EFSYS_OPT_LOOPBACK
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_mac_loopback_set(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in efx_link_mode_t link_mode,
|
|
|
|
__in efx_loopback_type_t loopback_type);
|
|
|
|
|
|
|
|
#endif /* EFSYS_OPT_LOOPBACK */
|
|
|
|
|
|
|
|
#if EFSYS_OPT_MAC_STATS
|
|
|
|
|
2016-12-29 06:54:40 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
|
|
|
siena_mac_stats_get_mask(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__inout_bcount(mask_size) uint32_t *maskp,
|
|
|
|
__in size_t mask_size);
|
|
|
|
|
2015-11-29 05:42:49 +00:00
|
|
|
extern __checkReturn efx_rc_t
|
2011-11-16 17:11:13 +00:00
|
|
|
siena_mac_stats_update(
|
|
|
|
__in efx_nic_t *enp,
|
|
|
|
__in efsys_mem_t *esmp,
|
2015-11-27 16:16:45 +00:00
|
|
|
__inout_ecount(EFX_MAC_NSTATS) efsys_stat_t *stat,
|
2015-11-27 16:21:14 +00:00
|
|
|
__inout_opt uint32_t *generationp);
|
2011-11-16 17:11:13 +00:00
|
|
|
|
|
|
|
#endif /* EFSYS_OPT_MAC_STATS */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _SYS_SIENA_IMPL_H */
|