Commit f082eac9 authored by Charles Davis's avatar Charles Davis Committed by Alexandre Julliard

ntdll: Implement CDROM_GetInterfaceInfo() on Mac OS.

parent eeb3e86f
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment