diff options
-rw-r--r-- | drivers/net/ethernet/sfc/mcdi.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/mcdi.h b/drivers/net/ethernet/sfc/mcdi.h index dc25caaa3983..3ba2e5b5a9cc 100644 --- a/drivers/net/ethernet/sfc/mcdi.h +++ b/drivers/net/ethernet/sfc/mcdi.h | |||
@@ -113,11 +113,13 @@ extern void efx_mcdi_sensor_event(struct efx_nic *efx, efx_qword_t *ev); | |||
113 | #define MCDI_EVENT_FIELD(_ev, _field) \ | 113 | #define MCDI_EVENT_FIELD(_ev, _field) \ |
114 | EFX_QWORD_FIELD(_ev, MCDI_EVENT_ ## _field) | 114 | EFX_QWORD_FIELD(_ev, MCDI_EVENT_ ## _field) |
115 | #define MCDI_ARRAY_FIELD(_buf, _field1, _type, _index, _field2) \ | 115 | #define MCDI_ARRAY_FIELD(_buf, _field1, _type, _index, _field2) \ |
116 | EFX_DWORD_FIELD( \ | 116 | EFX_EXTRACT_DWORD( \ |
117 | *((efx_dword_t *) \ | 117 | *((efx_dword_t *) \ |
118 | (MCDI_ARRAY_PTR(_buf, _field1, _type, _index) + \ | 118 | (MCDI_ARRAY_PTR(_buf, _field1, _type, _index) + \ |
119 | (MC_CMD_ ## _type ## _TYPEDEF_ ## _field2 ## _OFST & ~3))), \ | 119 | (MC_CMD_ ## _type ## _TYPEDEF_ ## _field2 ## _OFST & ~3))), \ |
120 | MC_CMD_ ## _type ## _TYPEDEF_ ## _field2) | 120 | MC_CMD_ ## _type ## _TYPEDEF_ ## _field2 ## _LBN & 0x1f, \ |
121 | (MC_CMD_ ## _type ## _TYPEDEF_ ## _field2 ## _LBN & 0x1f) + \ | ||
122 | MC_CMD_ ## _type ## _TYPEDEF_ ## _field2 ## _WIDTH - 1) | ||
121 | 123 | ||
122 | extern void efx_mcdi_print_fwver(struct efx_nic *efx, char *buf, size_t len); | 124 | extern void efx_mcdi_print_fwver(struct efx_nic *efx, char *buf, size_t len); |
123 | extern int efx_mcdi_drv_attach(struct efx_nic *efx, bool driver_operating, | 125 | extern int efx_mcdi_drv_attach(struct efx_nic *efx, bool driver_operating, |