mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 21:19:04 -04:00
IB/mlx5: Add support for DEVX general command
Add support to run general firmware command via the DEVX interface. A command that works on some object (e.g. CQ, WQ, etc.) will be added in next patches while maintaining the required object lock. Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
parent
a8b92ca1b0
commit
8aa8c95ce4
2 changed files with 100 additions and 0 deletions
|
|
@ -45,4 +45,17 @@ enum mlx5_ib_alloc_dm_attrs {
|
|||
MLX5_IB_ATTR_ALLOC_DM_RESP_PAGE_INDEX,
|
||||
};
|
||||
|
||||
enum mlx5_ib_devx_methods {
|
||||
MLX5_IB_METHOD_DEVX_OTHER = (1U << UVERBS_ID_NS_SHIFT),
|
||||
};
|
||||
|
||||
enum mlx5_ib_devx_other_attrs {
|
||||
MLX5_IB_ATTR_DEVX_OTHER_CMD_IN = (1U << UVERBS_ID_NS_SHIFT),
|
||||
MLX5_IB_ATTR_DEVX_OTHER_CMD_OUT,
|
||||
};
|
||||
|
||||
enum mlx5_ib_devx_objects {
|
||||
MLX5_IB_OBJECT_DEVX = (1U << UVERBS_ID_NS_SHIFT),
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue