Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2002 20:20:06 -0800 (PST)
From:      "David E. O'Brien" <obrien@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 8537 for review
Message-ID:  <200203280420.g2S4K6G33829@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=8537

Change 8537 by obrien@obrien_trang on 2002/03/27 20:19:42

	Add sysbeep() for the msmith RAID drivers.

Affected files ...

... //depot/projects/sparc64/sys/sparc64/sparc64/clock.c#9 edit

Differences ...

==== //depot/projects/sparc64/sys/sparc64/sparc64/clock.c#9 (text+ko) ====

@@ -28,11 +28,17 @@
 
 #include <sys/param.h>
 #include <sys/systm.h>
+#include <sys/lock.h>
+#include <sys/mutex.h>
+#include <machine/clock.h>
 
 u_long tick_increment;
 u_long tick_freq;
 u_long tick_MHz;
 
+struct mtx clock_lock;
+static int beeping = 0;
+
 void
 cpu_initclocks(void)
 {
@@ -56,3 +62,24 @@
 {
 	TODO;
 }
+
+static void
+sysbeepstop(void *chan)
+{
+#warning sysbeepstop() needs filling in.
+	beeping = 0;
+}
+
+int
+sysbeep(int pitch, int period)
+{
+	/*
+	 * XXX: function exists to enable RAID drivers to compile at the moment.
+	 */
+#warning sysbeep() needs filling in.
+	mtx_lock_spin(&clock_lock);
+	timeout(sysbeepstop, (void *)NULL, period);
+	mtx_unlock_spin(&clock_lock);
+
+	return (0);
+}

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




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