Skip to content

Commit

Permalink
Make the mlx5_vsc_wait_on_flag(9) function global.
Browse files Browse the repository at this point in the history
Submitted by:	kib@
MFC after:	3 days
Sponsored by:	Mellanox Technologies
  • Loading branch information
hselasky committed Oct 2, 2019
1 parent d6e923c commit d02d577
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions sys/dev/mlx5/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion sys/dev/mlx5/mlx5_core/mlx5_vsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d02d577

Please sign in to comment.