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

VOID DetectApmBios ( PCONFIGURATION_COMPONENT_DATA  SystemKey,
ULONG BusNumber 
)

Definition at line 59 of file hwapm.c.

Referenced by PcHwDetect().

{
    PCONFIGURATION_COMPONENT_DATA BiosKey;
    CM_PARTIAL_RESOURCE_LIST PartialResourceList;

    if (FindApmBios())
    {
        /* Create 'Configuration Data' value */
        memset(&PartialResourceList, 0, sizeof(CM_PARTIAL_RESOURCE_LIST));
        PartialResourceList.Version = 0;
        PartialResourceList.Revision = 0;
        PartialResourceList.Count = 0;

        /* Create new bus key */
        FldrCreateComponentKey(SystemKey,
                               AdapterClass,
                               MultiFunctionAdapter,
                               0x0,
                               0x0,
                               0xFFFFFFFF,
                               "APM",
                               &PartialResourceList,
                               sizeof(CM_PARTIAL_RESOURCE_LIST) -
                                   sizeof(CM_PARTIAL_RESOURCE_DESCRIPTOR),
                               &BiosKey);

        /* Increment bus number */
        (*BusNumber)++;
    }

    /* FIXME: Add configuration data */
}

Generated on Sat May 26 2012 04:46:16 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.