Deleted Added
full compact
atrtc.c (26309) atrtc.c (26373)
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.85 1997/05/29 05:00:35 peter Exp $
37 * $Id: clock.c,v 1.86 1997/05/31 09:27:30 peter Exp $
38 */
39
40/*
41 * Routines to handle clock hardware.
42 */
43
44/*
45 * inittodr, settodr and support routines written

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

62#include <machine/cons.h>
63#endif
64#include <machine/cpu.h>
65#include <machine/frame.h>
66#include <machine/ipl.h>
67
68#include <i386/isa/icu.h>
69#include <i386/isa/isa.h>
38 */
39
40/*
41 * Routines to handle clock hardware.
42 */
43
44/*
45 * inittodr, settodr and support routines written

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

62#include <machine/cons.h>
63#endif
64#include <machine/cpu.h>
65#include <machine/frame.h>
66#include <machine/ipl.h>
67
68#include <i386/isa/icu.h>
69#include <i386/isa/isa.h>
70#include <i386/isa/isa_device.h>
70#include <i386/isa/intr_machdep.h>
71#include <i386/isa/rtc.h>
72#include <i386/isa/timerreg.h>
73
74/*
75 * 32-bit time_t's can't reach leap years before 1904 or after 2036, so we
76 * can use a simple formula for leap years.
77 */
78#define LEAPYEAR(y) ((u_int)(y) % 4 == 0)

--- 957 unchanged lines hidden ---
71#include <i386/isa/rtc.h>
72#include <i386/isa/timerreg.h>
73
74/*
75 * 32-bit time_t's can't reach leap years before 1904 or after 2036, so we
76 * can use a simple formula for leap years.
77 */
78#define LEAPYEAR(y) ((u_int)(y) % 4 == 0)

--- 957 unchanged lines hidden ---