PCI: add a new function to map BAR offsets
authorYu Zhao <yu.zhao@intel.com>
Fri, 21 Nov 2008 18:41:27 +0000 (02:41 +0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 7 Jan 2009 19:13:04 +0000 (11:13 -0800)
commit613e7ed6f72b1a115f7ece8ce1b66cf095de1348
tree2af16f01cbf78f1de6b858788091a72fa57af6c8
parent3789fa8a2e534523c896a32a9f27f78d52ad7d82
PCI: add a new function to map BAR offsets

Add a function to map a given resource number to a corresponding
register so drivers can get the offset and type of device specific BARs.

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci.c
drivers/pci/pci.h
drivers/pci/setup-res.c