]> err.no Git - linux-2.6/commit
PCI : Add selected_regions funcs
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Mon, 18 Dec 2006 01:31:06 +0000 (10:31 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Feb 2007 23:50:03 +0000 (15:50 -0800)
commitc87deff776feacd05a7411097e8c8c57e549e638
tree1de3284a522df6b58be50251f1dcb9dbaff8dad7
parent38cc13022ed3cea949722d5a6f49025da82c9fd0
PCI : Add selected_regions funcs

This patch adds the following changes into generic PCI code especially
for PCI legacy I/O port free drivers.

     - Added new pci_request_selected_regions() and
       pci_release_selected_regions() for PCI legacy I/O port free
       drivers in order to request/release only the selected regions.

     - Added helper routine pci_select_bars() which makes proper mask
       of BARs from the specified resource type. This would be very
       helpful for users of pci_enable_device_bars().

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Cc: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/pci.c
include/linux/pci.h