Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenminiport.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
1.7.6.1
|