xref: /linux/drivers/vdpa/pds/cmds.h (revision f2d14bc4e437b8ed21e6890ae047a6ec47c030d9)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright(c) 2023 Advanced Micro Devices, Inc */
3 
4 #ifndef _VDPA_CMDS_H_
5 #define _VDPA_CMDS_H_
6 
7 int pds_vdpa_init_hw(struct pds_vdpa_device *pdsv);
8 
9 int pds_vdpa_cmd_reset(struct pds_vdpa_device *pdsv);
10 int pds_vdpa_cmd_set_status(struct pds_vdpa_device *pdsv, u8 status);
11 int pds_vdpa_cmd_set_mac(struct pds_vdpa_device *pdsv, u8 *mac);
12 int pds_vdpa_cmd_set_max_vq_pairs(struct pds_vdpa_device *pdsv, u16 max_vqp);
13 int pds_vdpa_cmd_init_vq(struct pds_vdpa_device *pdsv, u16 qid, u16 invert_idx,
14 			 struct pds_vdpa_vq_info *vq_info);
15 int pds_vdpa_cmd_reset_vq(struct pds_vdpa_device *pdsv, u16 qid, u16 invert_idx,
16 			  struct pds_vdpa_vq_info *vq_info);
17 int pds_vdpa_cmd_set_features(struct pds_vdpa_device *pdsv, u64 features);
18 #endif /* _VDPA_CMDS_H_ */
19