svn commit: r352967 - in head/sys/dev/mlx5: . mlx5_core
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Oct 2 09:31:37 UTC 2019
Author: hselasky
Date: Wed Oct 2 09:31:36 2019
New Revision: 352967
URL: https://svnweb.freebsd.org/changeset/base/352967
Log:
Make the mlx5_vsc_wait_on_flag(9) function global.
Submitted by: kib@
MFC after: 3 days
Sponsored by: Mellanox Technologies
Modified:
head/sys/dev/mlx5/driver.h
head/sys/dev/mlx5/mlx5_core/mlx5_vsc.c
Modified: head/sys/dev/mlx5/driver.h
==============================================================================
--- head/sys/dev/mlx5/driver.h Wed Oct 2 09:29:55 2019 (r352966)
+++ head/sys/dev/mlx5/driver.h Wed Oct 2 09:31:36 2019 (r352967)
@@ -1096,6 +1096,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: head/sys/dev/mlx5/mlx5_core/mlx5_vsc.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_core/mlx5_vsc.c Wed Oct 2 09:29:55 2019 (r352966)
+++ head/sys/dev/mlx5/mlx5_core/mlx5_vsc.c Wed Oct 2 09:31:36 2019 (r352967)
@@ -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-head
mailing list