diff options
author | Huy Nguyen <huyn@mellanox.com> | 2019-03-29 15:38:01 -0700 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-04-02 12:49:38 -0700 |
commit | aa8106f137b93628d531ef5ecbbcbecef99370d7 (patch) | |
tree | af753263dd0f2d44ab4ae117ff33ff7659a3dda0 /include/linux/mlx5/driver.h | |
parent | 98a8e6fc482d96809d90fcab661835ed299359c5 (diff) | |
download | linux-stable-aa8106f137b93628d531ef5ecbbcbecef99370d7.tar.gz linux-stable-aa8106f137b93628d531ef5ecbbcbecef99370d7.tar.bz2 linux-stable-aa8106f137b93628d531ef5ecbbcbecef99370d7.zip |
net/mlx5: Add explicit bar address field
Add bar_addr field to store bar-0 address to avoid calling
pci_resource_start with hard-coded bar-0 as parameter.
Also note that different mlx5 device types will have bar_addr
on different bars.
This patch does not change any functionality.
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Vu Pham <vuhuong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/driver.h')
-rw-r--r-- | include/linux/mlx5/driver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index d7f5c0e8c47a..c0ee597f5457 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h @@ -658,6 +658,7 @@ struct mlx5_core_dev { u64 sys_image_guid; phys_addr_t iseg_base; struct mlx5_init_seg __iomem *iseg; + phys_addr_t bar_addr; enum mlx5_device_state state; /* sync interface state */ struct mutex intf_state_mutex; |