summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHuy Nguyen <huyn@mellanox.com>2019-03-30 01:38:01 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2019-04-02 22:49:38 +0300
commitaa8106f137b93628d531ef5ecbbcbecef99370d7 (patch)
treeaf753263dd0f2d44ab4ae117ff33ff7659a3dda0 /include
parent98a8e6fc482d96809d90fcab661835ed299359c5 (diff)
downloadlinux-aa8106f137b93628d531ef5ecbbcbecef99370d7.tar.xz
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')
-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;