mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-22 18:41:06 +00:00
10659034c6
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>
20 lines
484 B
C
20 lines
484 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright(c) 2023 Advanced Micro Devices, Inc */
|
|
|
|
#ifndef _PDSC_AUXBUS_H_
|
|
#define _PDSC_AUXBUS_H_
|
|
|
|
#include <linux/auxiliary_bus.h>
|
|
|
|
struct pds_auxiliary_dev {
|
|
struct auxiliary_device aux_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_ */
|