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

miniport.cpp
Go to the documentation of this file.
00001 /*
00002  * COPYRIGHT:       See COPYING in the top level directory
00003  * PROJECT:         ReactOS Kernel Streaming
00004  * FILE:            drivers/wdm/audio/backpln/portcls/miniport.cpp
00005  * PURPOSE:         Miniport construction api
00006  * PROGRAMMER:      Andrew Greenwood
00007  */
00008 
00009 #include "private.hpp"
00010 
00011 NTSTATUS
00012 NTAPI
00013 PcNewMiniport(
00014     OUT PMINIPORT* OutMiniport,
00015     IN  REFCLSID ClassId)
00016 {
00017     NTSTATUS Status = STATUS_INVALID_PARAMETER;
00018 
00019     DPRINT("PcNewMiniport entered\n");
00020     PC_ASSERT_IRQL_EQUAL(PASSIVE_LEVEL);
00021 
00022     if (!OutMiniport)
00023     {
00024         DPRINT("PcNewMiniport was supplied a NULL OutPort parameter\n");
00025         return STATUS_INVALID_PARAMETER;
00026     }
00027 
00028     if (IsEqualGUIDAligned(ClassId, CLSID_MiniportDriverDMusUART) ||
00029         IsEqualGUIDAligned(ClassId, CLSID_MiniportDriverUart) ||
00030         IsEqualGUIDAligned(ClassId, CLSID_MiniportDriverDMusUARTCapture))
00031     {
00032         Status = NewMiniportDMusUART(OutMiniport, ClassId);
00033     }
00034     else if (IsEqualGUIDAligned(ClassId, CLSID_MiniportDriverFmSynth) ||
00035              IsEqualGUIDAligned(ClassId, CLSID_MiniportDriverFmSynthWithVol))
00036     {
00037         Status = NewMiniportFmSynth(OutMiniport, ClassId);
00038     }
00039     else
00040     {
00041         Status = STATUS_INVALID_PARAMETER;
00042     }
00043 
00044     DPRINT("PcNewMiniport Status %x\n", Status);
00045     return Status;
00046 }
00047 

Generated on Sun May 27 2012 04:28:34 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.