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
f082eac9
Commit
f082eac9
authored
Mar 01, 2011
by
Charles Davis
Committed by
Alexandre Julliard
Mar 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement CDROM_GetInterfaceInfo() on Mac OS.
parent
eeb3e86f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
cdrom.c
dlls/ntdll/cdrom.c
+20
-0
No files found.
dlls/ntdll/cdrom.c
View file @
f082eac9
...
...
@@ -103,7 +103,16 @@ typedef struct
uint64_t
senseLen
;
}
dk_scsi_command_t
;
typedef
struct
{
uint64_t
bus
;
uint64_t
port
;
uint64_t
target
;
uint64_t
lun
;
}
dk_scsi_identify_t
;
#define DKIOCSCSICOMMAND _IOWR('d', 253, dk_scsi_command_t)
#define DKIOCSCSIIDENTIFY _IOR('d', 254, dk_scsi_identify_t)
#endif
...
...
@@ -630,6 +639,17 @@ static int CDROM_GetInterfaceInfo(int fd, UCHAR* iface, UCHAR* port, UCHAR* devi
}
}
return
0
;
#elif defined(__APPLE__)
dk_scsi_identify_t
addr
;
if
(
ioctl
(
fd
,
DKIOCSCSIIDENTIFY
,
&
addr
)
!=
-
1
)
{
*
port
=
addr
.
bus
;
*
iface
=
addr
.
port
;
*
device
=
addr
.
target
;
*
lun
=
addr
.
lun
;
return
1
;
}
return
0
;
#else
FIXME
(
"not implemented on this O/S
\n
"
);
return
0
;
...
...
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