diff options
author | Tejun Heo <htejun@gmail.com> | 2007-01-20 08:00:28 +0100 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-09 23:39:37 +0100 |
commit | d24bbbf251e70bf984cbaa9b1fcadc5f56fc3ae9 (patch) | |
tree | 3e3c18f9eebe5136e221d5f3219fa3f62badd8b0 /include | |
parent | libata: remove unused functions (diff) | |
download | linux-d24bbbf251e70bf984cbaa9b1fcadc5f56fc3ae9.tar.xz linux-d24bbbf251e70bf984cbaa9b1fcadc5f56fc3ae9.zip |
devres: implement pcim_iomap_regions()
Implement pcim_iomap_regions(). This function takes mask of BARs to
request and iomap. No BAR should have length of zero. BARs are
iomapped using pcim_iomap_table().
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/io.h b/include/linux/io.h index f5edf9c5de0a..45a9c944cb0a 100644 --- a/include/linux/io.h +++ b/include/linux/io.h @@ -45,6 +45,8 @@ void __iomem * pcim_iomap(struct pci_dev *pdev, int bar, unsigned long maxlen); void pcim_iounmap(struct pci_dev *pdev, void __iomem *addr); void __iomem * const * pcim_iomap_table(struct pci_dev *pdev); +int pcim_iomap_regions(struct pci_dev *pdev, u16 mask, const char *name); + /** * check_signature - find BIOS signatures * @io_addr: mmio address to check |