Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Aug 2006 23:22:41 GMT
From:      Matt Jacob <mjacob@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 105378 for review
Message-ID:  <200608302322.k7UNMfcd046056@repoman.freebsd.org>

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

Change 105378 by mjacob@newisp on 2006/08/30 23:22:04

	Add a few missing 2400 specific register writes.
	
	At this point, the interrupt kick helper is gone, so the 24XX doesn't
	actually work at present (until we figure out how to re-arm interrupts).

Affected files ...

.. //depot/projects/newisp/dev/isp/isp.c#5 edit
.. //depot/projects/newisp/dev/isp/isp_freebsd.c#3 edit

Differences ...

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

@@ -5714,8 +5714,12 @@
 	/*
 	 * Clear the previous interrupt.
 	 */
-	ISP_WRITE(isp, HCCR, HCCR_CMD_CLEAR_RISC_INT);
-	ISP_WRITE(isp, BIU_SEMA, 0);
+	if (IS_24XX(isp)) {
+		ISP_WRITE(isp, BIU2400_HCCR, HCCR_2400_CMD_CLEAR_RISC_INT);
+	} else {
+		ISP_WRITE(isp, HCCR, HCCR_CMD_CLEAR_RISC_INT);
+		ISP_WRITE(isp, BIU_SEMA, 0);
+	}
 
 	/*
 	 * Continue with next word.

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

@@ -3192,7 +3192,11 @@
 void
 isp_uninit(ispsoftc_t *isp)
 {
-	ISP_WRITE(isp, HCCR, HCCR_CMD_RESET);
+	if (IS_24XX(isp)) {
+		ISP_WRITE(isp, BIU2400_HCCR, HCCR_2400_CMD_RESET);
+	} else {
+		ISP_WRITE(isp, HCCR, HCCR_CMD_RESET);
+	}
 	DISABLE_INTS(isp);
 }
 



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