aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/driver.h
diff options
context:
space:
mode:
authorHuy Nguyen <huyn@mellanox.com>2019-03-29 15:38:01 -0700
committerSaeed Mahameed <saeedm@mellanox.com>2019-04-02 12:49:38 -0700
commitaa8106f137b93628d531ef5ecbbcbecef99370d7 (patch)
treeaf753263dd0f2d44ab4ae117ff33ff7659a3dda0 /include/linux/mlx5/driver.h
parentnet/mlx5: Replace dev_err/warn/info by mlx5_core_err/warn/info (diff)
downloadlinux-dev-aa8106f137b93628d531ef5ecbbcbecef99370d7.tar.xz
linux-dev-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 '')
-rw-r--r--include/linux/mlx5/driver.h1
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;