net/mlx5_core: Use hardware registers description header file
authorEli Cohen <eli@mellanox.com>
Thu, 2 Oct 2014 09:19:43 +0000 (12:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Oct 2014 22:42:31 +0000 (15:42 -0700)
commitd29b796adada8780db3512c4a34b339f9aeef1ae
tree0a115b543505a3e9d5d7a4c2d22f058497e1076e
parentc7a08ac7ee68b9af0d5af99c7b34b574cac4d144
net/mlx5_core: Use hardware registers description header file

Add an auto generated header file that describes hardware registers along with
set of macros that set/get values. The macros do static checks to avoid
overflow, handle endianess, and overall provide a clean way to code commands.
Currently the header file is small and we will add structs as we make use of
the macros.
A few commands were removed from the commands enum since they are not supported
currently and will be added when support is available.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/qp.c
include/linux/mlx5/device.h
include/linux/mlx5/driver.h
include/linux/mlx5/mlx5_ifc.h [new file with mode: 0644]