summaryrefslogtreecommitdiffstats
path: root/sys/dev/speaker
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-12-15 00:54:32 +0000
committerbde <bde@FreeBSD.org>1995-12-15 00:54:32 +0000
commit78ea2a381b4a1829338088dc12e054d05bd32b59 (patch)
tree0e4fed627017f370a1dc320465630b9b87d4f4af /sys/dev/speaker
parent54924772e9c10201de95bda5b1765dc4efc93604 (diff)
downloadFreeBSD-src-78ea2a381b4a1829338088dc12e054d05bd32b59.zip
FreeBSD-src-78ea2a381b4a1829338088dc12e054d05bd32b59.tar.gz
Completed function declarations and/or added prototypes and/or added
#includes to get prototypes.
Diffstat (limited to 'sys/dev/speaker')
-rw-r--r--sys/dev/speaker/spkr.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/speaker/spkr.c b/sys/dev/speaker/spkr.c
index 07cdb72..b81d8dd 100644
--- a/sys/dev/speaker/spkr.c
+++ b/sys/dev/speaker/spkr.c
@@ -4,7 +4,7 @@
* v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993
* modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su>
*
- * $Id: spkr.c,v 1.21 1995/12/08 11:15:21 julian Exp $
+ * $Id: spkr.c,v 1.22 1995/12/08 23:20:48 phk Exp $
*/
#include "speaker.h"
@@ -81,6 +81,13 @@ static struct cdevsw spkr_cdevsw =
#define SPKRPRI PSOCK
static char endtone, endrest;
+static void tone __P((unsigned int thz, unsigned int ticks));
+static void rest __P((int ticks));
+static void playinit __P((void));
+static void playtone __P((int pitch, int value, int sustain));
+static int abs __P((int n));
+static void playstring __P((char *cp, size_t slen));
+
static void tone(thz, ticks)
/* emit tone of frequency thz for given number of ticks */
unsigned int thz, ticks;
OpenPOWER on IntegriCloud