2001-03-14 10:04:11 -05:00
|
|
|
$OpenBSD: patch-toscsi_c,v 1.1 2001/03/14 15:04:12 naddy Exp $
|
1999-07-23 07:12:59 -04:00
|
|
|
--- toscsi.c.orig Sat Jan 2 00:57:46 1999
|
2001-03-14 10:04:11 -05:00
|
|
|
+++ toscsi.c Wed Mar 14 15:23:38 2001
|
|
|
|
@@ -182,6 +182,16 @@ toscsi_readsectors (toscsi_handle *hdl,
|
1999-07-23 07:12:59 -04:00
|
|
|
(char *) buf, SCCMD_READ,
|
|
|
|
"v 0 0 v:i3 0 0 0 v 0 0",
|
|
|
|
readcmd, sec, secread);
|
|
|
|
+ else if (readcmd == 0xbe)
|
|
|
|
+ /*
|
|
|
|
+ * Actually the ATAPI read command, but as OpenBSD
|
|
|
|
+ * now can attach ATAPI CDs through the SCSI layer,
|
|
|
|
+ * this is good to support.
|
|
|
|
+ */
|
|
|
|
+ scsireq_build (hdl->sreq, SECTORSIZE * secread,
|
|
|
|
+ (char *) buf, SCCMD_READ,
|
|
|
|
+ "v 4 0 v:i3 0 0 v 0xf8",
|
|
|
|
+ readcmd, sec, secread);
|
|
|
|
else
|
|
|
|
scsireq_build (hdl->sreq, SECTORSIZE * secread,
|
|
|
|
(char *) buf, SCCMD_READ,
|