aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/mlx4.h
diff options
context:
space:
mode:
authorEugenia Emantayev <eugenia@mellanox.com>2013-04-23 02:06:48 -0400
committerDavid S. Miller <davem@davemloft.net>2013-04-24 16:30:13 -0400
commitddd8a6c12d7e494902a9435a9a7a543ef730b2d8 (patch)
tree5dd526d9fef754d1de7fce210ee002e71cb1818d /drivers/net/ethernet/mellanox/mlx4/mlx4.h
parentd998735f443427c1530cac5eeda0a45c8cb60a57 (diff)
net/mlx4_core: Read HCA frequency and map internal clock
Read HCA frequency, read PCI clock bar and offset, map internal clock to PCI bar. Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com> Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mlx4.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/mlx4.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4.h b/drivers/net/ethernet/mellanox/mlx4/mlx4.h
index 252f4ba7f32c..0567f01938ed 100644
--- a/drivers/net/ethernet/mellanox/mlx4/mlx4.h
+++ b/drivers/net/ethernet/mellanox/mlx4/mlx4.h
@@ -87,7 +87,8 @@ enum {
87 MLX4_HCR_SIZE = 0x0001c, 87 MLX4_HCR_SIZE = 0x0001c,
88 MLX4_CLR_INT_SIZE = 0x00008, 88 MLX4_CLR_INT_SIZE = 0x00008,
89 MLX4_SLAVE_COMM_BASE = 0x0, 89 MLX4_SLAVE_COMM_BASE = 0x0,
90 MLX4_COMM_PAGESIZE = 0x1000 90 MLX4_COMM_PAGESIZE = 0x1000,
91 MLX4_CLOCK_SIZE = 0x00008
91}; 92};
92 93
93enum { 94enum {
@@ -403,6 +404,7 @@ struct mlx4_fw {
403 u64 clr_int_base; 404 u64 clr_int_base;
404 u64 catas_offset; 405 u64 catas_offset;
405 u64 comm_base; 406 u64 comm_base;
407 u64 clock_offset;
406 struct mlx4_icm *fw_icm; 408 struct mlx4_icm *fw_icm;
407 struct mlx4_icm *aux_icm; 409 struct mlx4_icm *aux_icm;
408 u32 catas_size; 410 u32 catas_size;
@@ -410,6 +412,7 @@ struct mlx4_fw {
410 u8 clr_int_bar; 412 u8 clr_int_bar;
411 u8 catas_bar; 413 u8 catas_bar;
412 u8 comm_bar; 414 u8 comm_bar;
415 u8 clock_bar;
413}; 416};
414 417
415struct mlx4_comm { 418struct mlx4_comm {
@@ -826,6 +829,7 @@ struct mlx4_priv {
826 struct list_head bf_list; 829 struct list_head bf_list;
827 struct mutex bf_mutex; 830 struct mutex bf_mutex;
828 struct io_mapping *bf_mapping; 831 struct io_mapping *bf_mapping;
832 void __iomem *clock_mapping;
829 int reserved_mtts; 833 int reserved_mtts;
830 int fs_hash_mode; 834 int fs_hash_mode;
831 u8 virt2phys_pkey[MLX4_MFUNC_MAX][MLX4_MAX_PORTS][MLX4_MAX_PORT_PKEYS]; 835 u8 virt2phys_pkey[MLX4_MFUNC_MAX][MLX4_MAX_PORTS][MLX4_MAX_PORT_PKEYS];