Deleted Added
full compact
spkr.c (61994) spkr.c (69774)
1/*
2 * spkr.c -- device driver for console speaker
3 *
4 * v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993
5 * modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su>
6 *
1/*
2 * spkr.c -- device driver for console speaker
3 *
4 * v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993
5 * modified for FreeBSD by Andrew A. Chernov <ache@astral.msk.su>
6 *
7 * $FreeBSD: head/sys/dev/speaker/spkr.c 61994 2000-06-23 07:44:33Z msmith $
7 * $FreeBSD: head/sys/dev/speaker/spkr.c 69774 2000-12-08 20:09:00Z phk $
8 */
9
10#include <sys/param.h>
11#include <sys/systm.h>
12#include <sys/bus.h>
13#include <sys/kernel.h>
14#include <sys/module.h>
15#include <sys/uio.h>

--- 24 unchanged lines hidden (view full) ---

40 /* name */ "spkr",
41 /* maj */ CDEV_MAJOR,
42 /* dump */ nodump,
43 /* psize */ nopsize,
44 /* flags */ 0,
45 /* bmaj */ -1
46};
47
8 */
9
10#include <sys/param.h>
11#include <sys/systm.h>
12#include <sys/bus.h>
13#include <sys/kernel.h>
14#include <sys/module.h>
15#include <sys/uio.h>

--- 24 unchanged lines hidden (view full) ---

40 /* name */ "spkr",
41 /* maj */ CDEV_MAJOR,
42 /* dump */ nodump,
43 /* psize */ nopsize,
44 /* flags */ 0,
45 /* bmaj */ -1
46};
47
48MALLOC_DEFINE(M_SPKR, "spkr", "Speaker buffer");
48static MALLOC_DEFINE(M_SPKR, "spkr", "Speaker buffer");
49
50/**************** MACHINE DEPENDENT PART STARTS HERE *************************
51 *
52 * This section defines a function tone() which causes a tone of given
53 * frequency and duration from the ISA console speaker.
54 * Another function endtone() is defined to force sound off, and there is
55 * also a rest() entry point to do pauses.
56 *

--- 586 unchanged lines hidden ---
49
50/**************** MACHINE DEPENDENT PART STARTS HERE *************************
51 *
52 * This section defines a function tone() which causes a tone of given
53 * frequency and duration from the ISA console speaker.
54 * Another function endtone() is defined to force sound off, and there is
55 * also a rest() entry point to do pauses.
56 *

--- 586 unchanged lines hidden ---