PCI scan by BAR number
Added BAR (Base Address Registers) as a parameter for PCI scan. Some devices (as UART in Quark) use two set of BARs for different purposes. A driver may require only one of them. BARs are numbered from 0 to PCI_MAX_BARS. PCI_BAR_ANY means ignore the BAR number. Constants are defined in drivers/pci.h If device class is not specified as a scanning parameter, and set to 0, ignore it. Change-Id: I6b7116c5c6cf9c470ab22bec9eb74842f15b5d99 Signed-off-by: Dmitriy Korovkin <dmitriy.korovkin@windriver.com>
This commit is contained in:
parent
c462756fb9
commit
627155afeb
2 changed files with 17 additions and 5 deletions
|
@ -43,6 +43,9 @@ Module declares routines of PCI bus initialization and query
|
|||
#define BAR_SPACE_MEM 0
|
||||
#define BAR_SPACE_IO 1
|
||||
|
||||
#define PCI_MAX_BARS 6
|
||||
#define PCI_BAR_ANY PCI_MAX_BARS
|
||||
|
||||
/* PCI device information */
|
||||
|
||||
struct pci_dev_info {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue