diff options
author | Matthew Garrett <mjg@redhat.com> | 2012-12-05 14:33:27 -0700 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-12-05 14:38:26 -0700 |
commit | 84c1b80e32638f881c17390dfe88143e5cd3f583 (patch) | |
tree | 64310c48ed0dce9d830bd60d280ac0fb59ee28a1 /include/linux/pci.h | |
parent | eca0d4676d8e29c209ddce0c0c1755472ffc70a6 (diff) | |
download | linux-stable-84c1b80e32638f881c17390dfe88143e5cd3f583.tar.gz linux-stable-84c1b80e32638f881c17390dfe88143e5cd3f583.tar.bz2 linux-stable-84c1b80e32638f881c17390dfe88143e5cd3f583.zip |
PCI: Add support for non-BAR ROMs
Platforms may provide their own mechanisms for obtaining ROMs. Add support
for using data provided by the platform in that case.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Seth Forshee <seth.forshee@canonical.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 195c2593bd31..f116b2d859dc 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -333,6 +333,8 @@ struct pci_dev { }; struct pci_ats *ats; /* Address Translation Service */ #endif + void *rom; /* Physical pointer to ROM if it's not from the BAR */ + size_t romlen; /* Length of ROM if it's not from the BAR */ }; static inline struct pci_dev *pci_physfn(struct pci_dev *dev) |