diff options
Diffstat (limited to 'include/linux/mlx4/driver.h')
-rw-r--r-- | include/linux/mlx4/driver.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mlx4/driver.h b/include/linux/mlx4/driver.h index 53c5fdb6eac4..e1eebf78caba 100644 --- a/include/linux/mlx4/driver.h +++ b/include/linux/mlx4/driver.h | |||
@@ -34,6 +34,7 @@ | |||
34 | #define MLX4_DRIVER_H | 34 | #define MLX4_DRIVER_H |
35 | 35 | ||
36 | #include <linux/device.h> | 36 | #include <linux/device.h> |
37 | #include <linux/mlx4/device.h> | ||
37 | 38 | ||
38 | struct mlx4_dev; | 39 | struct mlx4_dev; |
39 | 40 | ||
@@ -49,10 +50,14 @@ struct mlx4_interface { | |||
49 | void (*remove)(struct mlx4_dev *dev, void *context); | 50 | void (*remove)(struct mlx4_dev *dev, void *context); |
50 | void (*event) (struct mlx4_dev *dev, void *context, | 51 | void (*event) (struct mlx4_dev *dev, void *context, |
51 | enum mlx4_dev_event event, int port); | 52 | enum mlx4_dev_event event, int port); |
53 | void * (*get_dev)(struct mlx4_dev *dev, void *context, u8 port); | ||
52 | struct list_head list; | 54 | struct list_head list; |
55 | enum mlx4_protocol protocol; | ||
53 | }; | 56 | }; |
54 | 57 | ||
55 | int mlx4_register_interface(struct mlx4_interface *intf); | 58 | int mlx4_register_interface(struct mlx4_interface *intf); |
56 | void mlx4_unregister_interface(struct mlx4_interface *intf); | 59 | void mlx4_unregister_interface(struct mlx4_interface *intf); |
57 | 60 | ||
61 | void *mlx4_get_protocol_dev(struct mlx4_dev *dev, enum mlx4_protocol proto, int port); | ||
62 | |||
58 | #endif /* MLX4_DRIVER_H */ | 63 | #endif /* MLX4_DRIVER_H */ |