diff options
author | Jiri Pirko <jiri@mellanox.com> | 2015-07-29 23:33:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-30 00:05:00 -0700 |
commit | 31557f0f9755696530d08465cf9940404f2d48e2 (patch) | |
tree | bff8b37aa9668a09fd99e34b492546bff60b5531 /drivers/net/ethernet/mellanox/mlxsw/port.h | |
parent | 4ec14b7634b298186f18f65d959354dc3c60e02c (diff) | |
download | linux-stable-31557f0f9755696530d08465cf9940404f2d48e2.tar.gz linux-stable-31557f0f9755696530d08465cf9940404f2d48e2.tar.bz2 linux-stable-31557f0f9755696530d08465cf9940404f2d48e2.zip |
mlxsw: Introduce Mellanox SwitchX-2 ASIC support
Benefit from the previously introduced Mellanox Switch infrastructure and
add driver for SwitchX-2 ASIC. Note that this driver is very simple now.
It implements bare minimum for getting device to work on slow-path.
Fast-path offload functionality is going to be added soon.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Elad Raz <eladr@mellanox.com>
Reviewed-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/port.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/port.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/port.h b/drivers/net/ethernet/mellanox/mlxsw/port.h index 4606966af980..726f5435b32f 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/port.h +++ b/drivers/net/ethernet/mellanox/mlxsw/port.h @@ -51,6 +51,10 @@ #define MLXSW_PORT_MAX_PHY_PORTS 0x40 #define MLXSW_PORT_MAX_PORTS MLXSW_PORT_MAX_PHY_PORTS +#define MLXSW_PORT_DEVID_BITS_OFFSET 10 +#define MLXSW_PORT_PHY_BITS_OFFSET 4 +#define MLXSW_PORT_PHY_BITS_MASK (MLXSW_PORT_MAX_PHY_PORTS - 1) + #define MLXSW_PORT_CPU_PORT 0x0 #define MLXSW_PORT_DONT_CARE (MLXSW_PORT_MAX_PORTS) |