1 .\" $NetBSD: intersil7170.4,v 1.11 2006/10/04 17:55:54 wiz Exp $
3 .\" Copyright (c) 2000 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Paul Kranenburg.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
36 .Tn Intersil ICM7170 time-of-day clock driver
38 .In dev/ic/intersil7170reg.h
39 .In dev/ic/intersil7170var.h
40 .Cd "define intersil7170"
41 .Cd "file dev/ic/intersil7170.c intersil7170"
45 driver provides access to the
47 time-of-day clock chip.
48 Access methods to retrieve and set date and time
49 are provided through the
54 To tie an instance of this device to the system, use the
55 .Fn intersil7170_attach
57 .Fa intersil7170_softc
58 structure defined as follows:
61 .Fn intersil7170_attach "struct intersil7170_softc *"
64 struct intersil7170_softc {
66 bus_space_tag_t sc_bst;
67 bus_space_handle_t sc_bsh;
68 struct todr_chip_handle sc_handle;
74 .Bl -tag -width Dv -offset indent
77 Specify bus space access to the chip's non-volatile memory
78 .Pq including the clock registers .
80 TODR handle passed to the
86 The actual year represented by the clock's
89 This is generally dependent on the system configuration in which
90 the clock device is mounted.
91 For instance, on Sun Microsystems machines
92 the convention is to have clock's two-digit year represent the year 1968.
94 This flag is used to specify machine-dependent features.
97 Note that if the resulting date retrieved with the todr_gettime() method
98 is earlier that January 1, 1970, the driver will assume that the chip's
99 year counter actually represents a year in the 21st century.
100 This behaviour can be overridden by setting the
101 .Va INTERSIL7170_NO_CENT_ADJUST
110 driver first appeared in
115 driver was written by