Deleted Added
full compact
clock.c (2103) clock.c (2112)
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz and Don Ahn.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * from: @(#)clock.c 7.2 (Berkeley) 5/12/91
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz and Don Ahn.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * from: @(#)clock.c 7.2 (Berkeley) 5/12/91
37 * $Id: clock.c,v 1.14 1994/08/15 03:15:18 wollman Exp $
37 * $Id: clock.c,v 1.15 1994/08/18 05:09:21 davidg Exp $
38 */
39
40/*
41 * Primitive clock interrupt routines.
42 */
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/time.h>

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

54
55/* X-tals being what they are, it's nice to be able to fudge this one... */
56/* Note, the name changed here from XTALSPEED to TIMER_FREQ rgrimes 4/26/93 */
57#ifndef TIMER_FREQ
58#define TIMER_FREQ 1193182 /* XXX - should be in isa.h */
59#endif
60#define TIMER_DIV(x) ((TIMER_FREQ+(x)/2)/(x))
61
38 */
39
40/*
41 * Primitive clock interrupt routines.
42 */
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/time.h>

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

54
55/* X-tals being what they are, it's nice to be able to fudge this one... */
56/* Note, the name changed here from XTALSPEED to TIMER_FREQ rgrimes 4/26/93 */
57#ifndef TIMER_FREQ
58#define TIMER_FREQ 1193182 /* XXX - should be in isa.h */
59#endif
60#define TIMER_DIV(x) ((TIMER_FREQ+(x)/2)/(x))
61
62void hardclock();
63void statclock();
64static int beeping;
65int timer0_divisor = TIMER_DIV(100); /* XXX should be hz */
66u_int timer0_prescale;
67static char timer0_state = 0, timer2_state = 0;
68static char timer0_reprogram = 0;
69static void (*timer_func)() = hardclock;
70static void (*new_function)();
71static u_int new_rate;

--- 470 unchanged lines hidden ---
62static int beeping;
63int timer0_divisor = TIMER_DIV(100); /* XXX should be hz */
64u_int timer0_prescale;
65static char timer0_state = 0, timer2_state = 0;
66static char timer0_reprogram = 0;
67static void (*timer_func)() = hardclock;
68static void (*new_function)();
69static u_int new_rate;

--- 470 unchanged lines hidden ---