Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
eb71e504
Commit
eb71e504
authored
Sep 19, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
Sep 19, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added SC_GET_DEVTYPE.
parent
e4fbab57
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
winaspi32.c
dlls/wnaspi32/winaspi32.c
+22
-2
No files found.
dlls/wnaspi32/winaspi32.c
View file @
eb71e504
...
...
@@ -357,9 +357,29 @@ DWORD __cdecl SendASPI32Command(LPSRB lpSRB)
lpSRB
->
inquiry
.
HA_Unique
[
6
]
=
0x02
;
/* Maximum Transfer Length (128K, Byte> 4-7) */
FIXME
(
"ASPI: Partially implemented SC_HA_INQUIRY for adapter %d.
\n
"
,
lpSRB
->
inquiry
.
SRB_HaId
);
return
SS_COMP
;
case
SC_GET_DEV_TYPE
:
FIXME
(
"Not implemented SC_GET_DEV_TYPE
\n
"
);
case
SC_GET_DEV_TYPE
:
{
SRB
tmpsrb
;
char
inqbuf
[
200
];
memset
(
&
tmpsrb
,
0
,
sizeof
(
tmpsrb
));
tmpsrb
.
cmd
.
SRB_Cmd
=
SC_EXEC_SCSI_CMD
;
#define X(x) tmpsrb.cmd.SRB_##x = lpSRB->devtype.SRB_##x
X
(
Status
);
X
(
HaId
);
X
(
Flags
);
X
(
Target
);
X
(
Lun
);
#undef X
tmpsrb
.
cmd
.
SRB_BufLen
=
sizeof
(
inqbuf
);
tmpsrb
.
cmd
.
SRB_BufPointer
=
inqbuf
;
tmpsrb
.
cmd
.
CDBByte
[
0
]
=
0x12
;
/* INQUIRY */
tmpsrb
.
cmd
.
CDBByte
[
4
]
=
sizeof
(
inqbuf
);
tmpsrb
.
cmd
.
SRB_CDBLen
=
6
;
ASPI_ExecScsiCmd
(
&
tmpsrb
.
cmd
);
#define X(x) lpSRB->devtype.SRB_##x = tmpsrb.cmd.SRB_##x
X
(
Status
);
#undef X
lpSRB
->
devtype
.
SRB_DeviceType
=
inqbuf
[
0
]
>>
3
;
FIXME
(
"returning devicetype %d for target %d
\n
"
,
inqbuf
[
0
]
>>
3
,
tmpsrb
.
cmd
.
SRB_Target
);
break
;
}
case
SC_EXEC_SCSI_CMD
:
return
ASPI_ExecScsiCmd
(
&
lpSRB
->
cmd
);
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment