Deleted Added
full compact
ds1672.c (191369) ds1672.c (246128)
1/*-
2 * Copyright (c) 2006 Sam Leffler. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */
24
25#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2006 Sam Leffler. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */
24
25#include <sys/cdefs.h>
26__FBSDID("$FreeBSD: head/sys/dev/iicbus/ds1672.c 191369 2009-04-21 22:48:12Z stas $");
26__FBSDID("$FreeBSD: head/sys/dev/iicbus/ds1672.c 246128 2013-01-30 18:01:20Z sbz $");
27/*
28 * Dallas Semiconductor DS1672 RTC sitting on the I2C bus.
29 */
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33#include <sys/module.h>
34#include <sys/clock.h>

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

162
163static device_method_t ds1672_methods[] = {
164 DEVMETHOD(device_probe, ds1672_probe),
165 DEVMETHOD(device_attach, ds1672_attach),
166
167 DEVMETHOD(clock_gettime, ds1672_gettime),
168 DEVMETHOD(clock_settime, ds1672_settime),
169
27/*
28 * Dallas Semiconductor DS1672 RTC sitting on the I2C bus.
29 */
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33#include <sys/module.h>
34#include <sys/clock.h>

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

162
163static device_method_t ds1672_methods[] = {
164 DEVMETHOD(device_probe, ds1672_probe),
165 DEVMETHOD(device_attach, ds1672_attach),
166
167 DEVMETHOD(clock_gettime, ds1672_gettime),
168 DEVMETHOD(clock_settime, ds1672_settime),
169
170 {0, 0},
170 DEVMETHOD_END
171};
172
173static driver_t ds1672_driver = {
174 "ds1672_rtc",
175 ds1672_methods,
176 sizeof(struct ds1672_softc),
177};
178static devclass_t ds1672_devclass;
179
180DRIVER_MODULE(ds1672, iicbus, ds1672_driver, ds1672_devclass, 0, 0);
181MODULE_VERSION(ds1672, 1);
182MODULE_DEPEND(ds1672, iicbus, 1, 1, 1);
171};
172
173static driver_t ds1672_driver = {
174 "ds1672_rtc",
175 ds1672_methods,
176 sizeof(struct ds1672_softc),
177};
178static devclass_t ds1672_devclass;
179
180DRIVER_MODULE(ds1672, iicbus, ds1672_driver, ds1672_devclass, 0, 0);
181MODULE_VERSION(ds1672, 1);
182MODULE_DEPEND(ds1672, iicbus, 1, 1, 1);