summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci-bridge-emul.h
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2022-02-22 16:50:21 +0100
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2022-02-22 17:04:19 +0100
commit3767a9024252095654d4688ddc323b25404c00fc (patch)
tree49774fb1c615d2aacdcc5994c07703ad841d4026 /drivers/pci/pci-bridge-emul.h
parentPCI: pci-bridge-emul: Add support for PCIe extended capabilities (diff)
downloadlinux-3767a9024252095654d4688ddc323b25404c00fc.tar.xz
linux-3767a9024252095654d4688ddc323b25404c00fc.zip
PCI: pci-bridge-emul: Add support for PCI Bridge Subsystem Vendor ID capability
This is read-only capability in PCI config space. Put it between base PCI capability and base PCI Express capability. Driver just have to specify subsystem_vendor_id and subsystem_id fields in emulated bridge structure and pci-bridge-emul takes care of correctly compose PCI Bridge Subsystem Vendor ID capability. Link: https://lore.kernel.org/r/20220222155030.988-4-pali@kernel.org Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Diffstat (limited to 'drivers/pci/pci-bridge-emul.h')
-rw-r--r--drivers/pci/pci-bridge-emul.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pci-bridge-emul.h b/drivers/pci/pci-bridge-emul.h
index 6b5f75b2ad02..71392b67471d 100644
--- a/drivers/pci/pci-bridge-emul.h
+++ b/drivers/pci/pci-bridge-emul.h
@@ -132,6 +132,8 @@ struct pci_bridge_emul {
struct pci_bridge_reg_behavior *pcie_cap_regs_behavior;
void *data;
bool has_pcie;
+ u16 subsystem_vendor_id;
+ u16 subsystem_id;
};
enum {