summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/probe_roms.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-03-08 10:36:19 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2011-03-15 15:34:15 -0700
commit5d94e81f69d4b1d1102d3ab557ce0a817c11fbbb (patch)
tree9cd387df3bd7660708b153a745c9b45a7bc16139 /arch/x86/include/asm/probe_roms.h
parent45bb1674b976ef81429c1e42de05844b49d45dea (diff)
x86: Introduce pci_map_biosrom()
The isci driver needs to retrieve its preboot OROM image which contains necessary runtime parameters like platform specific sas addresses and phy configuration. There is no ROM BAR associated with this area, instead we will need to scan legacy expansion ROM space. 1/ Promote the probe_roms_32 implementation to x86-64 2/ Add a facility to find and map an adapter rom by pci device (according to PCI Firmware Specification Revision 3.0) Signed-off-by: Dave Jiang <dave.jiang@intel.com> LKML-Reference: <20110308183226.6246.90354.stgit@localhost6.localdomain6> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/include/asm/probe_roms.h')
-rw-r--r--arch/x86/include/asm/probe_roms.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/include/asm/probe_roms.h b/arch/x86/include/asm/probe_roms.h
new file mode 100644
index 000000000000..4950a0b1d09c
--- /dev/null
+++ b/arch/x86/include/asm/probe_roms.h
@@ -0,0 +1,8 @@
+#ifndef _PROBE_ROMS_H_
+#define _PROBE_ROMS_H_
+struct pci_dev;
+
+extern void __iomem *pci_map_biosrom(struct pci_dev *pdev);
+extern void pci_unmap_biosrom(void __iomem *rom);
+extern size_t pci_biosrom_size(struct pci_dev *pdev);
+#endif