svn commit: r353208 - in stable/11/sys/dev/mlx5: . mlx5_core

Hans Petter Selasky hselasky at FreeBSD.org
Mon Oct 7 09:04:33 UTC 2019


Author: hselasky
Date: Mon Oct  7 09:04:32 2019
New Revision: 353208
URL: https://svnweb.freebsd.org/changeset/base/353208

Log:
  MFC r352967:
  Make the mlx5_vsc_wait_on_flag(9) function global.
  
  Submitted by:	kib@
  Sponsored by:	Mellanox Technologies

Modified:
  stable/11/sys/dev/mlx5/driver.h
  stable/11/sys/dev/mlx5/mlx5_core/mlx5_vsc.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/mlx5/driver.h
==============================================================================
--- stable/11/sys/dev/mlx5/driver.h	Mon Oct  7 09:03:51 2019	(r353207)
+++ stable/11/sys/dev/mlx5/driver.h	Mon Oct  7 09:04:32 2019	(r353208)
@@ -1070,6 +1070,7 @@ int mlx5_vsc_find_cap(struct mlx5_core_dev *mdev);
 int mlx5_vsc_lock(struct mlx5_core_dev *mdev);
 void mlx5_vsc_unlock(struct mlx5_core_dev *mdev);
 int mlx5_vsc_set_space(struct mlx5_core_dev *mdev, u16 space);
+int mlx5_vsc_wait_on_flag(struct mlx5_core_dev *mdev, u32 expected);
 int mlx5_vsc_write(struct mlx5_core_dev *mdev, u32 addr, const u32 *data);
 int mlx5_vsc_read(struct mlx5_core_dev *mdev, u32 addr, u32 *data);
 int mlx5_vsc_lock_addr_space(struct mlx5_core_dev *mdev, u32 addr);

Modified: stable/11/sys/dev/mlx5/mlx5_core/mlx5_vsc.c
==============================================================================
--- stable/11/sys/dev/mlx5/mlx5_core/mlx5_vsc.c	Mon Oct  7 09:03:51 2019	(r353207)
+++ stable/11/sys/dev/mlx5/mlx5_core/mlx5_vsc.c	Mon Oct  7 09:04:32 2019	(r353208)
@@ -96,7 +96,8 @@ void mlx5_vsc_unlock(struct mlx5_core_dev *mdev)
 	pci_write_config(dev, vsc_addr + MLX5_VSC_SEMA_OFFSET, 0, 4);
 }
 
-static int mlx5_vsc_wait_on_flag(struct mlx5_core_dev *mdev, u32 expected)
+int
+mlx5_vsc_wait_on_flag(struct mlx5_core_dev *mdev, u32 expected)
 {
 	device_t dev = mdev->pdev->dev.bsddev;
 	int vsc_addr = mdev->vsc_addr;


More information about the svn-src-all mailing list