Module Name:    src
Committed By:   macallan
Date:           Fri Sep  7 22:37:27 UTC 2012

Modified Files:
        src/sys/dev/sbus: isp_sbus.c

Log Message:
set isp_xffree, like the PCI frontend does
now this works again


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/dev/sbus/isp_sbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/sbus/isp_sbus.c
diff -u src/sys/dev/sbus/isp_sbus.c:1.80 src/sys/dev/sbus/isp_sbus.c:1.81
--- src/sys/dev/sbus/isp_sbus.c:1.80	Fri Mar 26 20:52:01 2010
+++ src/sys/dev/sbus/isp_sbus.c	Fri Sep  7 22:37:27 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_sbus.c,v 1.80 2010/03/26 20:52:01 mjacob Exp $ */
+/* $NetBSD: isp_sbus.c,v 1.81 2012/09/07 22:37:27 macallan Exp $ */
 /*
  * SBus specific probe and attach routines for Qlogic ISP SCSI adapters.
  *
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isp_sbus.c,v 1.80 2010/03/26 20:52:01 mjacob Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isp_sbus.c,v 1.81 2012/09/07 22:37:27 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -46,6 +46,7 @@ __KERNEL_RCSID(0, "$NetBSD: isp_sbus.c,v
 #include <machine/autoconf.h>
 #include <dev/sbus/sbusvar.h>
 #include <sys/reboot.h>
+#include "opt_isp.h"
 
 static void isp_sbus_reset0(ispsoftc_t *);
 static void isp_sbus_reset1(ispsoftc_t *);
@@ -357,6 +358,7 @@ isp_sbus_mbxdma(ispsoftc_t *isp)
 	for (n = 0; n < isp->isp_maxcmds - 1; n++) {
 		isp->isp_xflist[n].cmd = &isp->isp_xflist[n+1];
 	}
+	isp->isp_xffree = isp->isp_xflist;
 	n = sizeof (bus_dmamap_t) * isp->isp_maxcmds;
 	sbc->sbus_dmamap = (bus_dmamap_t *) malloc(n, M_DEVBUF, M_WAITOK);
 	if (sbc->sbus_dmamap == NULL) {

Reply via email to