ath9k_htc: Fix an endian issue
[deliverable/linux.git] / drivers / net / sfc / workarounds.h
CommitLineData
8ceee660
BH
1/****************************************************************************
2 * Driver for Solarflare Solarstorm network controllers and boards
906bb26c 3 * Copyright 2006-2009 Solarflare Communications Inc.
8ceee660
BH
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 as published
7 * by the Free Software Foundation, incorporated herein by reference.
8 */
9
10#ifndef EFX_WORKAROUNDS_H
11#define EFX_WORKAROUNDS_H
12
13/*
14 * Hardware workarounds.
15 * Bug numbers are from Solarflare's Bugzilla.
16 */
17
18#define EFX_WORKAROUND_ALWAYS(efx) 1
daeda630
BH
19#define EFX_WORKAROUND_FALCON_A(efx) (efx_nic_rev(efx) <= EFX_REV_FALCON_A1)
20#define EFX_WORKAROUND_FALCON_AB(efx) (efx_nic_rev(efx) <= EFX_REV_FALCON_B0)
8880f4ec 21#define EFX_WORKAROUND_SIENA(efx) (efx_nic_rev(efx) == EFX_REV_SIENA_A0)
8fbca791 22#define EFX_WORKAROUND_10G(efx) 1
8ceee660
BH
23
24/* XAUI resets if link not detected */
25#define EFX_WORKAROUND_5147 EFX_WORKAROUND_ALWAYS
8ceee660
BH
26/* RX PCIe double split performance issue */
27#define EFX_WORKAROUND_7575 EFX_WORKAROUND_ALWAYS
3e133c44 28/* Bit-bashed I2C reads cause performance drop */
6f158d5f 29#define EFX_WORKAROUND_7884 EFX_WORKAROUND_10G
8ceee660
BH
30/* TX_EV_PKT_ERR can be caused by a dangling TX descriptor
31 * or a PCIe error (bug 11028) */
32#define EFX_WORKAROUND_10727 EFX_WORKAROUND_ALWAYS
33/* Transmit flow control may get disabled */
fb45f2c1 34#define EFX_WORKAROUND_11482 EFX_WORKAROUND_FALCON_AB
bb145a9e 35/* Truncated IPv4 packets can confuse the TX packet parser */
fb45f2c1 36#define EFX_WORKAROUND_15592 EFX_WORKAROUND_FALCON_AB
8880f4ec 37/* Legacy ISR read can return zero once */
41b7e4c3 38#define EFX_WORKAROUND_15783 EFX_WORKAROUND_ALWAYS
8880f4ec
BH
39/* Legacy interrupt storm when interrupt fifo fills */
40#define EFX_WORKAROUND_17213 EFX_WORKAROUND_SIENA
8ceee660
BH
41
42/* Spurious parity errors in TSORT buffers */
43#define EFX_WORKAROUND_5129 EFX_WORKAROUND_FALCON_A
63f19884
BH
44/* Unaligned read request >512 bytes after aligning may break TSORT */
45#define EFX_WORKAROUND_5391 EFX_WORKAROUND_FALCON_A
8ceee660
BH
46/* iSCSI parsing errors */
47#define EFX_WORKAROUND_5583 EFX_WORKAROUND_FALCON_A
48/* RX events go missing */
49#define EFX_WORKAROUND_5676 EFX_WORKAROUND_FALCON_A
50/* RX_RESET on A1 */
51#define EFX_WORKAROUND_6555 EFX_WORKAROUND_FALCON_A
52/* Increase filter depth to avoid RX_RESET */
53#define EFX_WORKAROUND_7244 EFX_WORKAROUND_FALCON_A
54/* Flushes may never complete */
fd371e32 55#define EFX_WORKAROUND_7803 EFX_WORKAROUND_FALCON_AB
8ceee660
BH
56/* Leak overlength packets rather than free */
57#define EFX_WORKAROUND_8071 EFX_WORKAROUND_FALCON_A
58
59#endif /* EFX_WORKAROUNDS_H */
This page took 0.377303 seconds and 5 git commands to generate.