mlx4_QUERY_ADAPTER
int mlx4_QUERY_ADAPTER(struct mlx4_dev *dev, struct mlx4_adapter *adapter);
err = mlx4_QUERY_ADAPTER(dev, &adapter);