Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenversion.c
Go to the documentation of this file.
00001 /* 00002 ReactOS Sound System 00003 Sound Blaster DSP support 00004 Version routine 00005 00006 Author: 00007 Andrew Greenwood (silverblade@reactos.org) 00008 00009 History: 00010 2 July 2008 - Created (split from sbdsp.c) 00011 00012 Notes: 00013 Functions documented in sbdsp.h 00014 */ 00015 00016 #include "precomp.h" 00017 00018 NTSTATUS 00019 SbDspGetVersion( 00020 IN PUCHAR BasePort, 00021 OUT PUCHAR MajorVersion, 00022 OUT PUCHAR MinorVersion, 00023 IN ULONG Timeout) 00024 { 00025 NTSTATUS Status; 00026 00027 /* Make sure our parameters are sane */ 00028 if ( ! MajorVersion ) 00029 return STATUS_INVALID_PARAMETER_2; 00030 00031 if ( ! MinorVersion ) 00032 return STATUS_INVALID_PARAMETER_3; 00033 00034 /* Send version request */ 00035 Status = SbDspWrite(BasePort, SB_DSP_VERSION, Timeout); 00036 if ( Status != STATUS_SUCCESS ) 00037 return Status; 00038 00039 /* Get the major version */ 00040 Status = SbDspRead(BasePort, MajorVersion, Timeout); 00041 if ( Status != STATUS_SUCCESS ) 00042 return FALSE; 00043 00044 /* Get the minor version */ 00045 Status = SbDspRead(BasePort, MinorVersion, Timeout); 00046 return Status; 00047 } Generated on Mon May 28 2012 04:19:01 for ReactOS by
1.7.6.1
|