diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2008-12-12 22:00:17 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-12 22:00:17 -0800 |
commit | e6fa2eb789f49dc51a20d3db0d410bc8158abb43 (patch) | |
tree | 4b61712a720b2f90b47fe69127a76f258e3322f8 /drivers/net/sfc/enum.h | |
parent | 766ca0fa6bf1600bdf4bc7726c74f14c8455c6b8 (diff) | |
download | blackbird-op-linux-e6fa2eb789f49dc51a20d3db0d410bc8158abb43.tar.gz blackbird-op-linux-e6fa2eb789f49dc51a20d3db0d410bc8158abb43.zip |
sfc: Add support for Solarflare 10Xpress SFT9001
Add type codes for the new PHY and rename the SFX7101 type code.
Add definition of clause 22 extension MMD.
Adapt the 10Xpress SFX7101 code to support the SFT9001 as well.
Clean up register definitions.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/enum.h')
-rw-r--r-- | drivers/net/sfc/enum.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/sfc/enum.h b/drivers/net/sfc/enum.h index 0c2e41ce8b4a..60cbc6e1e66b 100644 --- a/drivers/net/sfc/enum.h +++ b/drivers/net/sfc/enum.h @@ -58,6 +58,9 @@ extern const char *efx_loopback_mode_names[]; #define LOOPBACK_INTERNAL(_efx) \ (!!(LOOPBACKS_INTERNAL & LOOPBACK_MASK(_efx))) +#define LOOPBACK_CHANGED(_from, _to, _mask) \ + (!!((LOOPBACK_MASK(_from) ^ LOOPBACK_MASK(_to)) & (_mask))) + #define LOOPBACK_OUT_OF(_from, _to, _mask) \ ((LOOPBACK_MASK(_from) & (_mask)) && !(LOOPBACK_MASK(_to) & (_mask))) |