Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sbus set isp_xffree, like the PCI frontend does
details: https://anonhg.NetBSD.org/src/rev/281b89e2a8a1
branches: trunk
changeset: 781471:281b89e2a8a1
user: macallan <macallan%NetBSD.org@localhost>
date: Fri Sep 07 22:37:27 2012 +0000
description:
set isp_xffree, like the PCI frontend does
now this works again
diffstat:
sys/dev/sbus/isp_sbus.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r ed52858e4459 -r 281b89e2a8a1 sys/dev/sbus/isp_sbus.c
--- a/sys/dev/sbus/isp_sbus.c Fri Sep 07 21:18:58 2012 +0000
+++ b/sys/dev/sbus/isp_sbus.c Fri Sep 07 22:37:27 2012 +0000
@@ -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 @@
#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 @@
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) {
Home |
Main Index |
Thread Index |
Old Index