ReactOS 0.4.15-dev-8419-g7f0e8a3
version.c
Go to the documentation of this file.
1/*
2 ReactOS Sound System
3 Sound Blaster DSP support
4 Version routine
5
6 Author:
7 Andrew Greenwood (silverblade@reactos.org)
8
9 History:
10 2 July 2008 - Created (split from sbdsp.c)
11
12 Notes:
13 Functions documented in sbdsp.h
14*/
15
16#include "precomp.h"
17
20 IN PUCHAR BasePort,
24{
26
27 /* Make sure our parameters are sane */
28 if ( ! MajorVersion )
30
31 if ( ! MinorVersion )
33
34 /* Send version request */
36 if ( Status != STATUS_SUCCESS )
37 return Status;
38
39 /* Get the major version */
41 if ( Status != STATUS_SUCCESS )
42 return FALSE;
43
44 /* Get the minor version */
46 return Status;
47}
LONG NTSTATUS
Definition: precomp.h:26
#define FALSE
Definition: types.h:117
ULONG MajorVersion
Definition: ros_glue.cpp:4
ULONG MinorVersion
Definition: ros_glue.cpp:5
Status
Definition: gdiplustypes.h:25
#define STATUS_INVALID_PARAMETER_2
Definition: ntstatus.h:476
#define STATUS_INVALID_PARAMETER_3
Definition: ntstatus.h:477
static ULONG Timeout
Definition: ping.c:61
NTSTATUS SbDspWrite(IN PUCHAR BasePort, IN UCHAR DataByte, IN ULONG Timeout)
Definition: dsp_io.c:99
NTSTATUS SbDspRead(IN PUCHAR BasePort, OUT PUCHAR DataByte, IN ULONG Timeout)
Definition: dsp_io.c:120
#define SB_DSP_VERSION
Definition: sbdsp.h:78
NTSTATUS SbDspGetVersion(IN PUCHAR BasePort, OUT PUCHAR MajorVersion, OUT PUCHAR MinorVersion, IN ULONG Timeout)
Definition: version.c:19
#define STATUS_SUCCESS
Definition: shellext.h:65
#define IN
Definition: typedefs.h:39
unsigned char * PUCHAR
Definition: typedefs.h:53
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40