1 /* $OpenBSD: clockvar.h,v 1.1 1998/01/29 15:06:19 pefo Exp $ */
2 /* $NetBSD: clockvar.h,v 1.1 1995/06/28 02:44:59 cgd Exp $ */
3
4 /*
5 * Copyright (c) 1994, 1995 Carnegie-Mellon University.
6 * All rights reserved.
7 *
8 * Author: Chris G. Demetriou
9 * Adopted for r4400: Per Fogelstrom
10 *
11 * Permission to use, copy, modify and distribute this software and
12 * its documentation is hereby granted, provided that both the copyright
13 * notice and this permission notice appear in all copies of the
14 * software, derivative works or modified versions, and any portions
15 * thereof, and that both notices appear in supporting documentation.
16 *
17 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
18 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
19 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
20 *
21 * Carnegie Mellon requests users of this software to return to
22 *
23 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
24 * School of Computer Science
25 * Carnegie Mellon University
26 * Pittsburgh PA 15213-3890
27 *
28 * any improvements or extensions that they make and grant Carnegie the
29 * rights to redistribute these changes.
30 *
31 * JNPR: clockvar.h,v 1.3 2006/08/07 05:38:57 katta
32 * $FreeBSD: releng/9.0/sys/mips/include/clockvar.h 202175 2010-01-12 21:36:08Z imp $
33 */
34
35 /*
36 * Definitions for "cpu-independent" clock handling for the mips arc arch.
37 */
38
39 /*
40 * clocktime structure:
41 *
42 * structure passed to TOY clocks when setting them. broken out this
43 * way, so that the time_t -> field conversion can be shared.
44 */
45 struct tod_time {
46 int year; /* year - 1900 */
47 int mon; /* month (1 - 12) */
48 int day; /* day (1 - 31) */
49 int hour; /* hour (0 - 23) */
50 int min; /* minute (0 - 59) */
51 int sec; /* second (0 - 59) */
52 int dow; /* day of week (0 - 6; 0 = Sunday) */
53 };
54
55 int clockinitted;
Cache object: ef24e4c17867b0b8438440d7b933f159
|