Commit 4ec5d023 authored by Srinivas Pandruvada's avatar Srinivas Pandruvada Committed by Hans de Goede

platform/x86/intel/vsec: Support private data

Add fields to struct intel_vsec_device, so that core module (which
creates aux bus devices) can pass private data to the client drivers.

For example there is one vsec device instance per CPU package. On a
multi package system, this private data can be used to pass the package
ID. This package id can be used by client drivers to change power
settings for a specific CPU package by targeting MMIO space of the
correct PCI device.
Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Acked-by: default avatarDavid E. Box <david.e.box@linux.intel.com>
Link: https://lore.kernel.org/r/20230202010738.2186174-4-srinivas.pandruvada@linux.intel.comReviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 251a4111
...@@ -38,6 +38,8 @@ struct intel_vsec_device { ...@@ -38,6 +38,8 @@ struct intel_vsec_device {
struct ida *ida; struct ida *ida;
struct intel_vsec_platform_info *info; struct intel_vsec_platform_info *info;
int num_resources; int num_resources;
void *priv_data;
size_t priv_data_size;
}; };
int intel_vsec_add_aux(struct pci_dev *pdev, struct device *parent, int intel_vsec_add_aux(struct pci_dev *pdev, struct device *parent,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment