summaryrefslogtreecommitdiffstats
path: root/Documentation/telephony
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@infradead.org>2008-09-29 01:36:11 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-10-20 20:01:48 +0200
commitaa42d7c6138afdc54f74e971456a0fbfec16b77b (patch)
tree2fb140d3c6e3924b6c91e736df327d6668d68b2a /Documentation/telephony
parentpowerpc/PCI: Add legacy PCI access via sysfs (diff)
downloadlinux-aa42d7c6138afdc54f74e971456a0fbfec16b77b.tar.xz
linux-aa42d7c6138afdc54f74e971456a0fbfec16b77b.zip
PCI: introduce an pci_ioremap(pdev, barnr) function
A common thing in many PCI drivers is to ioremap() an entire bar. This is a slightly fragile thing right now, needing both an address and a size, and many driver writers do.. various things there. This patch introduces an pci_ioremap() function taking just a PCI device struct and the bar number as arguments, and figures this all out itself, in one place. In addition, we can add various sanity checks to this function (the patch already checks to make sure that the bar in question really is a MEM bar; few to no drivers do that sort of thing). Hopefully with this type of API we get less chance of mistakes in drivers with ioremap() operations. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'Documentation/telephony')
0 files changed, 0 insertions, 0 deletions