aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4/device.h
diff options
context:
space:
mode:
authorAmir Vadai <amirv@mellanox.com>2012-07-18 18:33:51 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-19 11:34:37 -0400
commitd9236c3f10490cd0b3fd4516af12ba62dcbae0b0 (patch)
tree9fbfa70657455d1e22eecc2ef71f5e1dfa58c5be /include/linux/mlx4/device.h
parent122733a189d687087364d6dc3ecc7c682554f6a0 (diff)
{NET,IB}/mlx4: Add rmap support to mlx4_assign_eq
Enable callers of mlx4_assign_eq to supply a pointer to cpu_rmap. If supplied, the assigned IRQ is tracked using rmap infrastructure. Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4/device.h')
-rw-r--r--include/linux/mlx4/device.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index 6f0d133cc7ad..4d7761f8c3f6 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -36,6 +36,7 @@
36#include <linux/pci.h> 36#include <linux/pci.h>
37#include <linux/completion.h> 37#include <linux/completion.h>
38#include <linux/radix-tree.h> 38#include <linux/radix-tree.h>
39#include <linux/cpu_rmap.h>
39 40
40#include <linux/atomic.h> 41#include <linux/atomic.h>
41 42
@@ -784,7 +785,8 @@ void mlx4_fmr_unmap(struct mlx4_dev *dev, struct mlx4_fmr *fmr,
784int mlx4_fmr_free(struct mlx4_dev *dev, struct mlx4_fmr *fmr); 785int mlx4_fmr_free(struct mlx4_dev *dev, struct mlx4_fmr *fmr);
785int mlx4_SYNC_TPT(struct mlx4_dev *dev); 786int mlx4_SYNC_TPT(struct mlx4_dev *dev);
786int mlx4_test_interrupts(struct mlx4_dev *dev); 787int mlx4_test_interrupts(struct mlx4_dev *dev);
787int mlx4_assign_eq(struct mlx4_dev *dev, char* name , int* vector); 788int mlx4_assign_eq(struct mlx4_dev *dev, char *name, struct cpu_rmap *rmap,
789 int *vector);
788void mlx4_release_eq(struct mlx4_dev *dev, int vec); 790void mlx4_release_eq(struct mlx4_dev *dev, int vec);
789 791
790int mlx4_wol_read(struct mlx4_dev *dev, u64 *config, int port); 792int mlx4_wol_read(struct mlx4_dev *dev, u64 *config, int port);