Add sysbeep() for the msmith RAID drivers.
This commit is contained in:
parent
278bc2896a
commit
838e4a7d9d
@ -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)
|
||||
{
|
||||
@ -64,6 +70,27 @@ resettodr(void)
|
||||
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);
|
||||
}
|
||||
|
||||
void
|
||||
setstatclockrate(int newhz)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user