efx.h (293927) | efx.h (293939) |
---|---|
1/*- 2 * Copyright (c) 2006-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) 2006-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: stable/10/sys/dev/sfxge/common/efx.h 293927 2016-01-14 14:16:26Z arybchik $ | 30 * $FreeBSD: stable/10/sys/dev/sfxge/common/efx.h 293939 2016-01-14 14:28:30Z arybchik $ |
31 */ 32 33#ifndef _SYS_EFX_H 34#define _SYS_EFX_H 35 36#include "efsys.h" 37#include "efx_phy_ids.h" 38 --- 157 unchanged lines hidden (view full) --- 196 197typedef struct efx_mcdi_req_s efx_mcdi_req_t; 198 199typedef enum efx_mcdi_exception_e { 200 EFX_MCDI_EXCEPTION_MC_REBOOT, 201 EFX_MCDI_EXCEPTION_MC_BADASSERT, 202} efx_mcdi_exception_t; 203 | 31 */ 32 33#ifndef _SYS_EFX_H 34#define _SYS_EFX_H 35 36#include "efsys.h" 37#include "efx_phy_ids.h" 38 --- 157 unchanged lines hidden (view full) --- 196 197typedef struct efx_mcdi_req_s efx_mcdi_req_t; 198 199typedef enum efx_mcdi_exception_e { 200 EFX_MCDI_EXCEPTION_MC_REBOOT, 201 EFX_MCDI_EXCEPTION_MC_BADASSERT, 202} efx_mcdi_exception_t; 203 |
204#if EFSYS_OPT_MCDI_LOGGING 205typedef enum efx_log_msg_e 206{ 207 EFX_LOG_INVALID, 208 EFX_LOG_MCDI_REQUEST, 209 EFX_LOG_MCDI_RESPONSE, 210} efx_log_msg_t; 211#endif /* EFSYS_OPT_MCDI_LOGGING */ 212 |
|
204typedef struct efx_mcdi_transport_s { 205 void *emt_context; 206 efsys_mem_t *emt_dma_mem; 207 void (*emt_execute)(void *, efx_mcdi_req_t *); 208 void (*emt_ev_cpl)(void *); 209 void (*emt_exception)(void *, efx_mcdi_exception_t); | 213typedef struct efx_mcdi_transport_s { 214 void *emt_context; 215 efsys_mem_t *emt_dma_mem; 216 void (*emt_execute)(void *, efx_mcdi_req_t *); 217 void (*emt_ev_cpl)(void *); 218 void (*emt_exception)(void *, efx_mcdi_exception_t); |
219#if EFSYS_OPT_MCDI_LOGGING 220 void (*emt_logger)(void *, efx_log_msg_t, 221 void *, size_t, void *, size_t); 222#endif /* EFSYS_OPT_MCDI_LOGGING */ |
|
210} efx_mcdi_transport_t; 211 212extern __checkReturn efx_rc_t 213efx_mcdi_init( 214 __in efx_nic_t *enp, 215 __in const efx_mcdi_transport_t *mtp); 216 217extern __checkReturn efx_rc_t --- 2093 unchanged lines hidden --- | 223} efx_mcdi_transport_t; 224 225extern __checkReturn efx_rc_t 226efx_mcdi_init( 227 __in efx_nic_t *enp, 228 __in const efx_mcdi_transport_t *mtp); 229 230extern __checkReturn efx_rc_t --- 2093 unchanged lines hidden --- |