summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorChristopher Pascoe <pascoe@cvs.openbsd.org>2007-04-07 13:23:31 +0000
committerChristopher Pascoe <pascoe@cvs.openbsd.org>2007-04-07 13:23:31 +0000
commiteffa7ae0b051e87a64051ff68b2a009d70872257 (patch)
tree25c1509568f405152590e67849740283959916af /sys
parent63c48c8753342b41a93c4ce2e7454657f35bb8ac (diff)
Fill out control information for ATAPI commands.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/sili.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ic/sili.c b/sys/dev/ic/sili.c
index 5bc28a355b3..13fb1823ead 100644
--- a/sys/dev/ic/sili.c
+++ b/sys/dev/ic/sili.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sili.c,v 1.19 2007/04/07 13:15:03 pascoe Exp $ */
+/* $OpenBSD: sili.c,v 1.20 2007/04/07 13:23:30 pascoe Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -575,6 +575,11 @@ sili_ata_cmd(struct ata_xfer *xa)
if (xa->flags & ATA_F_PACKET) {
atapi = ccb->ccb_cmd;
+ if (xa->flags & ATA_F_WRITE)
+ atapi->control = htole16(SILI_PRB_PACKET_WRITE);
+ else
+ atapi->control = htole16(SILI_PRB_PACKET_READ);
+
sgl = atapi->sgl;
sgllen = sizeofa(atapi->sgl);