2 * PROJECT: ReactOS PCI Bus Driver
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: drivers/bus/pci/pci/busno.c
5 * PURPOSE: Bus Number Management
6 * PROGRAMMERS: ReactOS Portable Systems Group
9 /* INCLUDES *******************************************************************/
15 /* GLOBALS ********************************************************************/
17 /* FUNCTIONS ******************************************************************/
21 PciAreBusNumbersConfigured(IN PPCI_PDO_EXTENSION PdoExtension
)
23 UCHAR PrimaryBus
, BaseBus
, SecondaryBus
, SubordinateBus
;
27 /* Get all relevant bus number details */
28 PrimaryBus
= PdoExtension
->Dependent
.type1
.PrimaryBus
;
29 BaseBus
= PdoExtension
->ParentFdoExtension
->BaseBus
;
30 SecondaryBus
= PdoExtension
->Dependent
.type1
.SecondaryBus
;
31 SubordinateBus
= PdoExtension
->Dependent
.type1
.SubordinateBus
;
33 /* The primary bus should be the base bus of the parent */
34 if ((PrimaryBus
!= BaseBus
) || (SecondaryBus
<= PrimaryBus
)) return FALSE
;
36 /* The subordinate should be a higher bus number than the secondary */
37 return SubordinateBus
>= SecondaryBus
;