Deleted Added
full compact
spkr.c (6152) spkr.c (7090)
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 * $Id: spkr.c,v 1.10 1994/10/14 16:37:58 ache Exp $
7 * $Id: spkr.c,v 1.11 1995/02/03 10:19:38 ache Exp $
8 */
9
10#include "speaker.h"
11
12#if NSPEAKER > 0
13
14#include <sys/param.h>
15#include <sys/systm.h>
16#include <sys/kernel.h>
17#include <sys/errno.h>
18#include <sys/buf.h>
8 */
9
10#include "speaker.h"
11
12#if NSPEAKER > 0
13
14#include <sys/param.h>
15#include <sys/systm.h>
16#include <sys/kernel.h>
17#include <sys/errno.h>
18#include <sys/buf.h>
19#include <sys/proc.h>
19#include <sys/uio.h>
20#include <i386/isa/isa.h>
21#include <i386/isa/timerreg.h>
20#include <sys/uio.h>
21#include <i386/isa/isa.h>
22#include <i386/isa/timerreg.h>
23#include <machine/clock.h>
22#include <machine/speaker.h>
23
24/**************** MACHINE DEPENDENT PART STARTS HERE *************************
25 *
26 * This section defines a function tone() which causes a tone of given
27 * frequency and duration from the 80x86's console speaker.
28 * Another function endtone() is defined to force sound off, and there is
29 * also a rest() entry point to do pauses.

--- 514 unchanged lines hidden ---
24#include <machine/speaker.h>
25
26/**************** MACHINE DEPENDENT PART STARTS HERE *************************
27 *
28 * This section defines a function tone() which causes a tone of given
29 * frequency and duration from the 80x86's console speaker.
30 * Another function endtone() is defined to force sound off, and there is
31 * also a rest() entry point to do pauses.

--- 514 unchanged lines hidden ---