siena_mcdi.c (300607) | siena_mcdi.c (300840) |
---|---|
1/*- 2 * Copyright (c) 2012-2016 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, --- 15 unchanged lines hidden (view full) --- 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 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2012-2016 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, --- 15 unchanged lines hidden (view full) --- 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 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/siena_mcdi.c 300607 2016-05-24 12:16:57Z arybchik $"); | 32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/siena_mcdi.c 300840 2016-05-27 11:44:40Z arybchik $"); |
33 34#include "efx.h" 35#include "efx_impl.h" 36 37#if EFSYS_OPT_SIENA && EFSYS_OPT_MCDI 38 39#define SIENA_MCDI_PDU(_emip) \ 40 (((emip)->emi_port == 1) \ --- 128 unchanged lines hidden (view full) --- 169 __in efx_nic_t *enp, 170 __in const efx_mcdi_transport_t *mtp) 171{ 172 efx_mcdi_iface_t *emip = &(enp->en_mcdi.em_emip); 173 efx_oword_t oword; 174 unsigned int portnum; 175 efx_rc_t rc; 176 | 33 34#include "efx.h" 35#include "efx_impl.h" 36 37#if EFSYS_OPT_SIENA && EFSYS_OPT_MCDI 38 39#define SIENA_MCDI_PDU(_emip) \ 40 (((emip)->emi_port == 1) \ --- 128 unchanged lines hidden (view full) --- 169 __in efx_nic_t *enp, 170 __in const efx_mcdi_transport_t *mtp) 171{ 172 efx_mcdi_iface_t *emip = &(enp->en_mcdi.em_emip); 173 efx_oword_t oword; 174 unsigned int portnum; 175 efx_rc_t rc; 176 |
177 _NOTE(ARGUNUSED(mtp)) 178 |
|
177 EFSYS_ASSERT(enp->en_family == EFX_FAMILY_SIENA); 178 179 /* Determine the port number to use for MCDI */ 180 EFX_BAR_READO(enp, FR_AZ_CS_DEBUG_REG, &oword); 181 portnum = EFX_OWORD_FIELD(oword, FRF_CZ_CS_PORT_NUM); 182 183 if (portnum == 0) { 184 /* Presumably booted from ROM; only MCDI port 1 will work */ --- 22 unchanged lines hidden (view full) --- 207 208 return (rc); 209} 210 211 void 212siena_mcdi_fini( 213 __in efx_nic_t *enp) 214{ | 179 EFSYS_ASSERT(enp->en_family == EFX_FAMILY_SIENA); 180 181 /* Determine the port number to use for MCDI */ 182 EFX_BAR_READO(enp, FR_AZ_CS_DEBUG_REG, &oword); 183 portnum = EFX_OWORD_FIELD(oword, FRF_CZ_CS_PORT_NUM); 184 185 if (portnum == 0) { 186 /* Presumably booted from ROM; only MCDI port 1 will work */ --- 22 unchanged lines hidden (view full) --- 209 210 return (rc); 211} 212 213 void 214siena_mcdi_fini( 215 __in efx_nic_t *enp) 216{ |
217 _NOTE(ARGUNUSED(enp)) |
|
215} 216 217 __checkReturn efx_rc_t 218siena_mcdi_feature_supported( 219 __in efx_nic_t *enp, 220 __in efx_mcdi_feature_id_t id, 221 __out boolean_t *supportedp) 222{ --- 26 unchanged lines hidden --- | 218} 219 220 __checkReturn efx_rc_t 221siena_mcdi_feature_supported( 222 __in efx_nic_t *enp, 223 __in efx_mcdi_feature_id_t id, 224 __out boolean_t *supportedp) 225{ --- 26 unchanged lines hidden --- |