ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

busno.c
Go to the documentation of this file.
00001 /*
00002  * PROJECT:         ReactOS PCI Bus Driver
00003  * LICENSE:         BSD - See COPYING.ARM in the top level directory
00004  * FILE:            drivers/bus/pci/pci/busno.c
00005  * PURPOSE:         Bus Number Management
00006  * PROGRAMMERS:     ReactOS Portable Systems Group
00007  */
00008 
00009 /* INCLUDES *******************************************************************/
00010 
00011 #include <pci.h>
00012 #define NDEBUG
00013 #include <debug.h>
00014 
00015 /* GLOBALS ********************************************************************/
00016 
00017 /* FUNCTIONS ******************************************************************/
00018 
00019 BOOLEAN
00020 NTAPI
00021 PciAreBusNumbersConfigured(IN PPCI_PDO_EXTENSION PdoExtension)
00022 {
00023     UCHAR PrimaryBus, BaseBus, SecondaryBus, SubordinateBus;
00024 
00025     PAGED_CODE();
00026 
00027     /* Get all relevant bus number details */
00028     PrimaryBus = PdoExtension->Dependent.type1.PrimaryBus;
00029     BaseBus = PdoExtension->ParentFdoExtension->BaseBus;
00030     SecondaryBus = PdoExtension->Dependent.type1.SecondaryBus;
00031     SubordinateBus = PdoExtension->Dependent.type1.SubordinateBus;
00032 
00033     /* The primary bus should be the base bus of the parent */
00034     if ((PrimaryBus != BaseBus) || (SecondaryBus <= PrimaryBus)) return FALSE;
00035 
00036     /* The subordinate should be a higher bus number than the secondary */
00037     return SubordinateBus >= SecondaryBus;
00038 }
00039 
00040 /* EOF */

Generated on Sun May 27 2012 04:27:29 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.