summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2005-09-21 08:39:16 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2005-09-21 08:39:16 +0000
commitc8d5cfaa8156d95d613635cbc38fc43148afa0e9 (patch)
tree8b714a11bf6ac69fb08c12db123703552311370b
parent9dd7775ec6752af400dcfbd53fc5a88c95b64549 (diff)
rename nsg to nsge in struct ami_passthrough to be consistent with the
naming elsewhere in this driver. suggested by marco@
-rw-r--r--sys/dev/ic/ami.c6
-rw-r--r--sys/dev/ic/amireg.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c
index 8613f6288ed..4acdd4e81e3 100644
--- a/sys/dev/ic/ami.c
+++ b/sys/dev/ic/ami.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ami.c,v 1.79 2005/09/21 08:36:35 dlg Exp $ */
+/* $OpenBSD: ami.c,v 1.80 2005/09/21 08:39:15 dlg Exp $ */
/*
* Copyright (c) 2001 Michael Shalayeff
@@ -1059,7 +1059,7 @@ ami_cmd(ccb, flags, wait)
struct ami_sgent *sgl = ccb->ccb_sglist;
if (cmd->acc_cmd == AMI_PASSTHRU) {
- ccb->ccb_pt->apt_nsg = dmap->dm_nsegs;
+ ccb->ccb_pt->apt_nsge = dmap->dm_nsegs;
ccb->ccb_pt->apt_data = ccb->ccb_sglistpa;
} else {
cmd->acc_mbox.amb_nsge = dmap->dm_nsegs;
@@ -1075,7 +1075,7 @@ ami_cmd(ccb, flags, wait)
}
} else {
if (cmd->acc_cmd == AMI_PASSTHRU) {
- ccb->ccb_pt->apt_nsg = 0;
+ ccb->ccb_pt->apt_nsge = 0;
ccb->ccb_pt->apt_data = htole32(sgd->ds_addr);
} else {
cmd->acc_mbox.amb_nsge = 0;
diff --git a/sys/dev/ic/amireg.h b/sys/dev/ic/amireg.h
index d77790e8f7b..0e7fb88944d 100644
--- a/sys/dev/ic/amireg.h
+++ b/sys/dev/ic/amireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: amireg.h,v 1.23 2005/09/18 06:59:32 dlg Exp $ */
+/* $OpenBSD: amireg.h,v 1.24 2005/09/21 08:39:15 dlg Exp $ */
/*
* Copyright (c) 2000 Michael Shalayeff
@@ -360,7 +360,7 @@ struct ami_passthrough {
u_int8_t apt_nsense;
#define AMI_MAX_SENSE 32
u_int8_t apt_sense[AMI_MAX_SENSE];
- u_int8_t apt_nsg;
+ u_int8_t apt_nsge;
u_int8_t apt_scsistat;
u_int32_t apt_data;
u_int32_t apt_datalen;