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
)
24 UCHAR PrimaryBus
, BaseBus
, SecondaryBus
, SubordinateBus
;
26 /* Get all relevant bus number details */
27 PrimaryBus
= PdoExtension
->Dependent
.type1
.PrimaryBus
;
28 BaseBus
= PdoExtension
->ParentFdoExtension
->BaseBus
;
29 SecondaryBus
= PdoExtension
->Dependent
.type1
.SecondaryBus
;
30 SubordinateBus
= PdoExtension
->Dependent
.type1
.SubordinateBus
;
32 /* The primary bus should be the base bus of the parent */
33 if ((PrimaryBus
!= BaseBus
) || (SecondaryBus
<= PrimaryBus
)) return FALSE
;
35 /* The subordinate should be a higher bus number than the secondary */
36 return SubordinateBus
>= SecondaryBus
;