Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/scsictl Fixup scsi_mode_select().
details: https://anonhg.NetBSD.org/src/rev/fa3ea750a300
branches: trunk
changeset: 514574:fa3ea750a300
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Sep 05 16:25:17 2001 +0000
description:
Fixup scsi_mode_select().
diffstat:
sbin/scsictl/extern.h | 4 ++--
sbin/scsictl/scsi_subr.c | 7 ++++---
2 files changed, 6 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r d6dd3d55d48c -r fa3ea750a300 sbin/scsictl/extern.h
--- a/sbin/scsictl/extern.h Wed Sep 05 16:23:10 2001 +0000
+++ b/sbin/scsictl/extern.h Wed Sep 05 16:25:17 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.2 1998/11/12 01:16:08 thorpej Exp $ */
+/* $NetBSD: extern.h,v 1.3 2001/09/05 16:25:17 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -47,5 +47,5 @@
/* scsi_subr.c */
void scsi_command __P((int, void *, size_t, void *, size_t, int, int));
void scsi_mode_sense __P((int, u_int8_t, u_int8_t, void *, size_t));
-void scsi_mode_select __P((int, u_int8_t, u_int8_t, void *, size_t));
+void scsi_mode_select __P((int, u_int8_t, void *, size_t));
void scsi_strvis __P((char *, size_t, const char *, size_t));
diff -r d6dd3d55d48c -r fa3ea750a300 sbin/scsictl/scsi_subr.c
--- a/sbin/scsictl/scsi_subr.c Wed Sep 05 16:23:10 2001 +0000
+++ b/sbin/scsictl/scsi_subr.c Wed Sep 05 16:25:17 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scsi_subr.c,v 1.4 2001/05/15 15:11:02 bouyer Exp $ */
+/* $NetBSD: scsi_subr.c,v 1.5 2001/09/05 16:25:18 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -117,9 +117,9 @@
}
void
-scsi_mode_select(fd, pgcode, pctl, buf, len)
+scsi_mode_select(fd, byte2, buf, len)
int fd;
- u_int8_t pgcode, pctl;
+ u_int8_t byte2;
void *buf;
size_t len;
{
@@ -128,6 +128,7 @@
memset(&cmd, 0, sizeof(cmd));
cmd.opcode = MODE_SELECT;
+ cmd.byte2 = SMS_PF | byte2;
cmd.u_len.scsi.length = len;
scsi_command(fd, &cmd, sizeof(cmd), buf, len, 10000, SCCMD_WRITE);
Home |
Main Index |
Thread Index |
Old Index