diff options
author | Amir Vadai <amirv@mellanox.com> | 2012-07-18 18:33:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-19 11:34:37 -0400 |
commit | d9236c3f10490cd0b3fd4516af12ba62dcbae0b0 (patch) | |
tree | 9fbfa70657455d1e22eecc2ef71f5e1dfa58c5be /include/linux/mlx4/device.h | |
parent | 122733a189d687087364d6dc3ecc7c682554f6a0 (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.h | 4 |
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, | |||
784 | int mlx4_fmr_free(struct mlx4_dev *dev, struct mlx4_fmr *fmr); | 785 | int mlx4_fmr_free(struct mlx4_dev *dev, struct mlx4_fmr *fmr); |
785 | int mlx4_SYNC_TPT(struct mlx4_dev *dev); | 786 | int mlx4_SYNC_TPT(struct mlx4_dev *dev); |
786 | int mlx4_test_interrupts(struct mlx4_dev *dev); | 787 | int mlx4_test_interrupts(struct mlx4_dev *dev); |
787 | int mlx4_assign_eq(struct mlx4_dev *dev, char* name , int* vector); | 788 | int mlx4_assign_eq(struct mlx4_dev *dev, char *name, struct cpu_rmap *rmap, |
789 | int *vector); | ||
788 | void mlx4_release_eq(struct mlx4_dev *dev, int vec); | 790 | void mlx4_release_eq(struct mlx4_dev *dev, int vec); |
789 | 791 | ||
790 | int mlx4_wol_read(struct mlx4_dev *dev, u64 *config, int port); | 792 | int mlx4_wol_read(struct mlx4_dev *dev, u64 *config, int port); |