Commit 02e6c8cb authored by Jie Lei's avatar Jie Lei Committed by JangShui Yang
Browse files

hns3 udma: Interface for adding a user ctrl.

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I9E9HL


CVE: NA

--------------------------------------------------------

The user ctrl interface is added to the patch.

Fixes: 178ed4fc ("hns3 udma: support POE mode.")
Signed-off-by: default avatarJie Lei <leijie31@huawei.com>
Signed-off-by: default avatarWeibo Zhao <zhaoweibo3@huawei.com>
parent 2156b7a9
Loading
Loading
Loading
Loading
+29 −1
Original line number Diff line number Diff line
@@ -17,5 +17,33 @@
#define _UDMA_USER_CTL_H

int udma_user_ctl(struct ubcore_device *dev, struct ubcore_user_ctl *k_user_ctl);

int udma_user_ctl_config_poe(struct ubcore_ucontext *uctx, struct ubcore_user_ctl_in *in,
			     struct ubcore_user_ctl_out *out,
			     struct ubcore_udrv_priv *udrv_data);
int udma_user_ctl_config_poe(struct ubcore_ucontext *uctx, struct ubcore_user_ctl_in *in,
			     struct ubcore_user_ctl_out *out,
			     struct ubcore_udrv_priv *udrv_data);
int udma_user_ctl_query_poe(struct ubcore_ucontext *uctx, struct ubcore_user_ctl_in *in,
			    struct ubcore_user_ctl_out *out,
			    struct ubcore_udrv_priv *udrv_data);
int udma_user_ctl_dca_shrink(struct ubcore_ucontext *uctx, struct ubcore_user_ctl_in *in,
			     struct ubcore_user_ctl_out *out,
			     struct ubcore_udrv_priv *udrv_data);
int udma_user_ctl_dca_attach(struct ubcore_ucontext *uctx, struct ubcore_user_ctl_in *in,
			     struct ubcore_user_ctl_out *out,
			     struct ubcore_udrv_priv  *udrv_data);
int udma_user_ctl_dca_detach(struct ubcore_ucontext *uctx, struct ubcore_user_ctl_in *in,
			     struct ubcore_user_ctl_out *out,
			     struct ubcore_udrv_priv *udrv_data);
int udma_user_ctl_dca_query(struct ubcore_ucontext *uctx, struct ubcore_user_ctl_in *in,
			    struct ubcore_user_ctl_out *out,
			    struct ubcore_udrv_priv *udrv_data);
int udma_user_ctl_flush_cqe(struct ubcore_ucontext *uctx, struct ubcore_user_ctl_in *in,
			    struct ubcore_user_ctl_out *out,
			    struct ubcore_udrv_priv *udrv_data);
int udma_user_ctl_dca_reg(struct ubcore_ucontext *uctx, struct ubcore_user_ctl_in *in,
			  struct ubcore_user_ctl_out *out, struct ubcore_udrv_priv *udrv_data);
int udma_user_ctl_dca_dereg(struct ubcore_ucontext *uctx, struct ubcore_user_ctl_in *in,
			    struct ubcore_user_ctl_out *out,
			    struct ubcore_udrv_priv *udrv_data);
#endif /* _UDMA_USER_CTL_H */