From owner-p4-projects Wed Mar 27 20:20:21 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 980E037B417; Wed, 27 Mar 2002 20:20:08 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 275AA37B41B for ; Wed, 27 Mar 2002 20:20:07 -0800 (PST) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2S4K6G33829 for perforce@freebsd.org; Wed, 27 Mar 2002 20:20:06 -0800 (PST) (envelope-from obrien@freebsd.org) Date: Wed, 27 Mar 2002 20:20:06 -0800 (PST) Message-Id: <200203280420.g2S4K6G33829@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to obrien@freebsd.org using -f From: "David E. O'Brien" Subject: PERFORCE change 8537 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 #include +#include +#include +#include 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