Support ATAPI read CD command, as that is usable with the new atapiscsi work
This commit is contained in:
parent
51e13c9bd1
commit
696be49c5e
19
audio/tosha/patches/patch-ad
Normal file
19
audio/tosha/patches/patch-ad
Normal file
@ -0,0 +1,19 @@
|
||||
--- toscsi.c.orig Sat Jan 2 00:57:46 1999
|
||||
+++ toscsi.c Fri Jul 23 12:17:12 1999
|
||||
@@ -182,6 +182,16 @@
|
||||
(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,
|
Loading…
x
Reference in New Issue
Block a user