drm/nouveau: consume the return of large GSP message
[drm/drm-misc.git] / drivers / net / ethernet / sfc / workarounds.h
blobe10e7f84958dffbfa766a3a1ef513a2097732024
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /****************************************************************************
3 * Driver for Solarflare network controllers and boards
4 * Copyright 2006-2013 Solarflare Communications Inc.
5 */
7 #ifndef EFX_WORKAROUNDS_H
8 #define EFX_WORKAROUNDS_H
11 * Hardware workarounds.
12 * Bug numbers are from Solarflare's Bugzilla.
15 #define EFX_WORKAROUND_EF10(efx) (efx_nic_rev(efx) >= EFX_REV_HUNT_A0)
17 /* Lockup when writing event block registers at gen2/gen3 */
18 #define EFX_EF10_WORKAROUND_35388(efx) \
19 (((struct efx_ef10_nic_data *)efx->nic_data)->workaround_35388)
20 #define EFX_WORKAROUND_35388(efx) \
21 (efx_nic_rev(efx) == EFX_REV_HUNT_A0 && EFX_EF10_WORKAROUND_35388(efx))
23 /* Moderation timer access must go through MCDI */
24 #define EFX_EF10_WORKAROUND_61265(efx) \
25 (((struct efx_ef10_nic_data *)efx->nic_data)->workaround_61265)
27 #endif /* EFX_WORKAROUNDS_H */