summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/intel/vsec.h
diff options
context:
space:
mode:
authorDavid E. Box <david.e.box@linux.intel.com>2023-11-29 14:21:20 -0800
committerHans de Goede <hdegoede@redhat.com>2023-12-04 14:53:43 +0100
commite97ec7f621fbfdce07bf1b98a26883ee19281747 (patch)
tree3f88a0283e17f7829dc71a89cd35e3e2bb159e1f /drivers/platform/x86/intel/vsec.h
parent4edbd117ba3f7beacfb439aad60e8a5de77114b4 (diff)
downloadlinux-e97ec7f621fbfdce07bf1b98a26883ee19281747.tar.gz
linux-e97ec7f621fbfdce07bf1b98a26883ee19281747.tar.bz2
linux-e97ec7f621fbfdce07bf1b98a26883ee19281747.zip
platform/x86/intel/vsec: Add base address field
Some devices may emulate PCI VSEC capabilities in MMIO. In such cases the BAR is not readable from a config space. Provide a field for drivers to indicate the base address to be used. Signed-off-by: David E. Box <david.e.box@linux.intel.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20231129222132.2331261-9-david.e.box@linux.intel.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform/x86/intel/vsec.h')
-rw-r--r--drivers/platform/x86/intel/vsec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/platform/x86/intel/vsec.h b/drivers/platform/x86/intel/vsec.h
index bb8b6452df70..e23e76129691 100644
--- a/drivers/platform/x86/intel/vsec.h
+++ b/drivers/platform/x86/intel/vsec.h
@@ -73,6 +73,7 @@ struct intel_vsec_platform_info {
struct intel_vsec_header **headers;
unsigned long caps;
unsigned long quirks;
+ u64 base_addr;
};
struct intel_vsec_device {
@@ -85,6 +86,7 @@ struct intel_vsec_device {
void *priv_data;
size_t priv_data_size;
unsigned long quirks;
+ u64 base_addr;
};
int intel_vsec_add_aux(struct pci_dev *pdev, struct device *parent,