Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/sfxge/common/efx_mcdi.h
Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Lines | |||||
#if EFSYS_OPT_LOOPBACK | #if EFSYS_OPT_LOOPBACK | ||||
extern __checkReturn efx_rc_t | extern __checkReturn efx_rc_t | ||||
efx_mcdi_get_loopback_modes( | efx_mcdi_get_loopback_modes( | ||||
__in efx_nic_t *enp); | __in efx_nic_t *enp); | ||||
#endif /* EFSYS_OPT_LOOPBACK */ | #endif /* EFSYS_OPT_LOOPBACK */ | ||||
extern __checkReturn efx_rc_t | |||||
efx_mcdi_phy_module_get_info( | |||||
__in efx_nic_t *enp, | |||||
__in uint8_t dev_addr, | |||||
__in uint8_t offset, | |||||
__in uint8_t len, | |||||
__out_bcount(len) uint8_t *data); | |||||
#define MCDI_IN(_emr, _type, _ofst) \ | #define MCDI_IN(_emr, _type, _ofst) \ | ||||
((_type *)((_emr).emr_in_buf + (_ofst))) | ((_type *)((_emr).emr_in_buf + (_ofst))) | ||||
#define MCDI_IN2(_emr, _type, _ofst) \ | #define MCDI_IN2(_emr, _type, _ofst) \ | ||||
MCDI_IN(_emr, _type, MC_CMD_ ## _ofst ## _OFST) | MCDI_IN(_emr, _type, MC_CMD_ ## _ofst ## _OFST) | ||||
#define MCDI_IN_SET_BYTE(_emr, _ofst, _value) \ | #define MCDI_IN_SET_BYTE(_emr, _ofst, _value) \ | ||||
EFX_POPULATE_BYTE_1(*MCDI_IN2(_emr, efx_byte_t, _ofst), \ | EFX_POPULATE_BYTE_1(*MCDI_IN2(_emr, efx_byte_t, _ofst), \ | ||||
▲ Show 20 Lines • Show All 162 Lines • Show Last 20 Lines |