# HG changeset patch # User nickg # Date 1064855568 0 # Node ID 29e672adfc0681575bc567a9f9fe0e73f8f19f7c # Parent 9ecd8873f6570f697d5e666294c6c49a3c706960 * src/pci.c (cyg_pci_get_device_info): Removed check for inactive BARs since the requirement for the BARs to be contiguous has been relaxed in more recent versions of the PCI standard. diff --git a/packages/io/pci/current/ChangeLog b/packages/io/pci/current/ChangeLog --- a/packages/io/pci/current/ChangeLog +++ b/packages/io/pci/current/ChangeLog @@ -1,3 +1,9 @@ +2003-09-29 Nick Garnett + + * src/pci.c (cyg_pci_get_device_info): Removed check for inactive + BARs since the requirement for the BARs to be contiguous has been + relaxed in more recent versions of the PCI standard. + 2003-08-08 Gary Thomas * include/pci.h: Add CYGARC_PCI_DMA_ADDRESS() macro - used to diff --git a/packages/io/pci/current/src/pci.c b/packages/io/pci/current/src/pci.c --- a/packages/io/pci/current/src/pci.c +++ b/packages/io/pci/current/src/pci.c @@ -150,12 +150,6 @@ cyg_pci_get_device_info ( cyg_pci_device dev_info->base_size[i] = size; dev_info->base_map[i] = 0xffffffff; - // No reason to scan beyond first inactive BAR. - if (size == 0) { - dev_info->num_bars = i; - break; - } - // Check for a 64bit memory region. if (CYG_PCI_CFG_BAR_SPACE_MEM == (size & CYG_PCI_CFG_BAR_SPACE_MASK)) { @@ -178,12 +172,6 @@ cyg_pci_get_device_info ( cyg_pci_device bar = dev_info->base_address[i]; - // No reason to scan beyond first inactive BAR. - if ((i != 0) && (bar == 0)) { - dev_info->num_bars = i; - break; - } - if ((bar & CYG_PCI_CFG_BAR_SPACE_MASK) == CYG_PCI_CFG_BAR_SPACE_IO) { dev_info->base_map[i] = (bar & CYG_PRI_CFG_BAR_IO_MASK) + HAL_PCI_PHYSICAL_IO_BASE; bar &= CYG_PRI_CFG_BAR_IO_MASK;