summaryrefslogtreecommitdiff
path: root/drivers/vdpa/pds/aux_drv.h
diff options
context:
space:
mode:
authorShannon Nelson <shannon.nelson@amd.com>2023-05-20 00:56:24 +0300
committerMichael S. Tsirkin <mst@redhat.com>2023-06-27 17:47:08 +0300
commita16291b5bcbbd75586c8396555a0ee9fd4183372 (patch)
tree130f6927abe4aab55544e0f6e26f9cb2fd359639 /drivers/vdpa/pds/aux_drv.h
parent5d7d82d39eb4cab2c7d0d85baaee0fc45d2c7900 (diff)
downloadlinux-a16291b5bcbbd75586c8396555a0ee9fd4183372.tar.xz
pds_vdpa: Add new vDPA driver for AMD/Pensando DSC
This is the initial auxiliary driver framework for a new vDPA device driver, an auxiliary_bus client of the pds_core driver. The pds_core driver supplies the PCI services for the VF device and for accessing the adminq in the PF device. This patch adds the very basics of registering for the auxiliary device and setting up debugfs entries. Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> Acked-by: Jason Wang <jasowang@redhat.com> Message-Id: <20230519215632.12343-4-shannon.nelson@amd.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vdpa/pds/aux_drv.h')
-rw-r--r--drivers/vdpa/pds/aux_drv.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/vdpa/pds/aux_drv.h b/drivers/vdpa/pds/aux_drv.h
new file mode 100644
index 000000000000..f1e99359424e
--- /dev/null
+++ b/drivers/vdpa/pds/aux_drv.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/* Copyright(c) 2023 Advanced Micro Devices, Inc */
+
+#ifndef _AUX_DRV_H_
+#define _AUX_DRV_H_
+
+#define PDS_VDPA_DRV_DESCRIPTION "AMD/Pensando vDPA VF Device Driver"
+#define PDS_VDPA_DRV_NAME KBUILD_MODNAME
+
+struct pds_vdpa_aux {
+ struct pds_auxiliary_dev *padev;
+
+ struct dentry *dentry;
+};
+#endif /* _AUX_DRV_H_ */