1/*- 2 * Copyright (c) 2009-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_mcdi.h 292055 2015-12-10 07:42:56Z arybchik $ |
31 */ 32 33#ifndef _SYS_EFX_MCDI_H 34#define _SYS_EFX_MCDI_H 35 36#include "efx.h" 37#include "efx_regs.h" 38#include "efx_regs_mcdi.h" --- 342 unchanged lines hidden (view full) --- 381 MC_CMD_ ## _field) 382 383#define MCDI_EV_FIELD(_eqp, _field) \ 384 EFX_QWORD_FIELD(*_eqp, MCDI_EVENT_ ## _field) 385 386#define MCDI_CMD_DWORD_FIELD(_edp, _field) \ 387 EFX_DWORD_FIELD(*_edp, MC_CMD_ ## _field) 388 |
389#define EFX_MCDI_HAVE_PRIVILEGE(mask, priv) \ 390 (((mask) & (MC_CMD_PRIVILEGE_MASK_IN_GRP_ ## priv)) == \ |
391 (MC_CMD_PRIVILEGE_MASK_IN_GRP_ ## priv)) 392 |
393typedef enum efx_mcdi_feature_id_e { 394 EFX_MCDI_FEATURE_FW_UPDATE = 0, 395 EFX_MCDI_FEATURE_LINK_CONTROL, 396 EFX_MCDI_FEATURE_MACADDR_CHANGE, 397 EFX_MCDI_FEATURE_MAC_SPOOFING, 398 EFX_MCDI_FEATURE_NIDS 399} efx_mcdi_feature_id_t; 400 |
401#ifdef __cplusplus 402} 403#endif 404 405#endif /* _SYS_EFX_MCDI_H */ |