Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Feb 2008 21:57:39 GMT
From:      "Randall R. Stewart" <rrs@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 135838 for review
Message-ID:  <200802202157.m1KLvdZQ006093@repoman.freebsd.org>

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

Change 135838 by rrs@rrs-mips2-jnpr on 2008/02/20 21:56:49

	Add tick timer to run octeon LED panel every 1 second.
	       Probably need to take this back out after we are more stable,
	       for now it gives us a visual feedback that things are working.

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/mips/tick.c#4 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/sys/mips/mips/tick.c#4 (text+ko) ====

@@ -191,6 +191,11 @@
 	return (0);
 }
 
+#ifdef TARGET_OCTEON
+int wheel_run = 0;
+#define OCTEON_TICK_COUNT 100
+void  octeon_led_run_wheel(void);
+#endif
 /*
  * Device section of file below
  */
@@ -213,6 +218,14 @@
 	usermode = tf->sr & MIPS_SR_KSU_USER;
 	pc = tf->pc;
 
+#ifdef TARGET_OCTEON
+	/* Run the FreeBSD display once every N ticks  */
+	wheel_run++;
+	if(wheel_run >= OCTEON_TICK_COUNT) {
+	  wheel_run = 0;
+	  octeon_led_run_wheel();
+	}
+#endif	
 	if (clocks_running) {
 		hardclock(usermode, pc);
 	}



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