Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Aug 2006 18:50:35 GMT
From:      Matt Jacob <mjacob@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 105129 for review
Message-ID:  <200608261850.k7QIoZRk001531@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105129

Change 105129 by mjacob@newisp on 2006/08/26 18:50:32

	Put lack of interrupts working hack in place for 24XX cards only.

Affected files ...

.. //depot/projects/newisp/dev/isp/isp_pci.c#3 edit

Differences ...

==== //depot/projects/newisp/dev/isp/isp_pci.c#3 (text+ko) ====

@@ -335,7 +335,7 @@
 	int16_t				pci_poff[_NREG_BLKS];
 	bus_dma_tag_t			dmat;
 	bus_dmamap_t			*dmaps;
-struct callout_handle xx;
+	struct callout_handle		xx;
 };
 static timeout_t isp_kick;
 
@@ -1097,7 +1097,8 @@
 	 */
 	ISP_UNLOCK(isp);
 
-	pcs->xx = timeout(isp_kick, isp, hz/10);
+	if (IS_24XX(isp))
+		pcs->xx = timeout(isp_kick, isp, hz/10);
 
 	return (0);
 
@@ -1152,7 +1153,9 @@
 	}
 	isp = (ispsoftc_t *) pcs;
 	ISP_LOCK(isp);
-	untimeout(isp_kick, isp, pcs->xx);
+	if (IS_24XX(isp)) {
+		untimeout(isp_kick, isp, pcs->xx);
+	}
 	DISABLE_INTS(isp);
 	ISP_UNLOCK(isp);
 	return (0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608261850.k7QIoZRk001531>