pds_core: add the aux client API
Add the client API operations for running adminq commands. The core registers the client with the FW, then the client has a context for requesting adminq services. We expect to add additional operations for other clients, including requesting additional private adminqs and IRQs, but don't have the need yet. Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> Acked-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
40ced89445
commit
10659034c6
@@ -11,4 +11,10 @@ struct pds_auxiliary_dev {
|
||||
struct pci_dev *vf_pdev;
|
||||
u16 client_id;
|
||||
};
|
||||
|
||||
int pds_client_adminq_cmd(struct pds_auxiliary_dev *padev,
|
||||
union pds_core_adminq_cmd *req,
|
||||
size_t req_len,
|
||||
union pds_core_adminq_comp *resp,
|
||||
u64 flags);
|
||||
#endif /* _PDSC_AUXBUS_H_ */
|
||||
|
||||
@@ -61,4 +61,6 @@ enum pds_core_logical_qtype {
|
||||
};
|
||||
|
||||
void *pdsc_get_pf_struct(struct pci_dev *vf_pdev);
|
||||
int pds_client_register(struct pci_dev *pf_pdev, char *devname);
|
||||
int pds_client_unregister(struct pci_dev *pf_pdev, u16 client_id);
|
||||
#endif /* _PDS_COMMON_H_ */
|
||||
|
||||
Reference in New Issue
Block a user