ReactOS
0.4.16-dev-300-g2aadf2e
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
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
18
NTSTATUS
19
SbDspGetVersion
(
20
IN
PUCHAR
BasePort,
21
OUT
PUCHAR
MajorVersion
,
22
OUT
PUCHAR
MinorVersion
,
23
IN
ULONG
Timeout
)
24
{
25
NTSTATUS
Status
;
26
27
/* Make sure our parameters are sane */
28
if
( !
MajorVersion
)
29
return
STATUS_INVALID_PARAMETER_2
;
30
31
if
( !
MinorVersion
)
32
return
STATUS_INVALID_PARAMETER_3
;
33
34
/* Send version request */
35
Status
=
SbDspWrite
(BasePort,
SB_DSP_VERSION
,
Timeout
);
36
if
(
Status
!=
STATUS_SUCCESS
)
37
return
Status
;
38
39
/* Get the major version */
40
Status
=
SbDspRead
(BasePort,
MajorVersion
,
Timeout
);
41
if
(
Status
!=
STATUS_SUCCESS
)
42
return
FALSE
;
43
44
/* Get the minor version */
45
Status
=
SbDspRead
(BasePort,
MinorVersion
,
Timeout
);
46
return
Status
;
47
}
NTSTATUS
LONG NTSTATUS
Definition:
precomp.h:26
FALSE
#define FALSE
Definition:
types.h:117
MajorVersion
ULONG MajorVersion
Definition:
ros_glue.cpp:4
MinorVersion
ULONG MinorVersion
Definition:
ros_glue.cpp:5
Status
Status
Definition:
gdiplustypes.h:25
STATUS_INVALID_PARAMETER_2
#define STATUS_INVALID_PARAMETER_2
Definition:
ntstatus.h:476
STATUS_INVALID_PARAMETER_3
#define STATUS_INVALID_PARAMETER_3
Definition:
ntstatus.h:477
Timeout
static ULONG Timeout
Definition:
ping.c:61
SbDspWrite
NTSTATUS SbDspWrite(IN PUCHAR BasePort, IN UCHAR DataByte, IN ULONG Timeout)
Definition:
dsp_io.c:99
SbDspRead
NTSTATUS SbDspRead(IN PUCHAR BasePort, OUT PUCHAR DataByte, IN ULONG Timeout)
Definition:
dsp_io.c:120
SB_DSP_VERSION
#define SB_DSP_VERSION
Definition:
sbdsp.h:78
SbDspGetVersion
NTSTATUS SbDspGetVersion(IN PUCHAR BasePort, OUT PUCHAR MajorVersion, OUT PUCHAR MinorVersion, IN ULONG Timeout)
Definition:
version.c:19
STATUS_SUCCESS
#define STATUS_SUCCESS
Definition:
shellext.h:65
IN
#define IN
Definition:
typedefs.h:39
PUCHAR
unsigned char * PUCHAR
Definition:
typedefs.h:53
ULONG
uint32_t ULONG
Definition:
typedefs.h:59
OUT
#define OUT
Definition:
typedefs.h:40
precomp.h
sdk
lib
drivers
sound
soundblaster
version.c
Generated on Thu Nov 28 2024 06:13:40 for ReactOS by
1.9.6