Deleted Added
full compact
pcfclock.c (108321) pcfclock.c (111815)
1/*
2 * Copyright (c) 2000 Sascha Schumann. 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.

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

16 * EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
18 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
19 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
20 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
21 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
22 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 *
1/*
2 * Copyright (c) 2000 Sascha Schumann. 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.

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

16 * EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
18 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
19 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
20 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
21 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
22 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 *
24 * $FreeBSD: head/sys/dev/ppbus/pcfclock.c 108321 2002-12-27 16:32:10Z rwatson $
24 * $FreeBSD: head/sys/dev/ppbus/pcfclock.c 111815 2003-03-03 12:15:54Z phk $
25 *
26 */
27
28#include "opt_pcfclock.h"
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>

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

62static devclass_t pcfclock_devclass;
63
64static d_open_t pcfclock_open;
65static d_close_t pcfclock_close;
66static d_read_t pcfclock_read;
67
68#define CDEV_MAJOR 140
69static struct cdevsw pcfclock_cdevsw = {
25 *
26 */
27
28#include "opt_pcfclock.h"
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>

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

62static devclass_t pcfclock_devclass;
63
64static d_open_t pcfclock_open;
65static d_close_t pcfclock_close;
66static d_read_t pcfclock_read;
67
68#define CDEV_MAJOR 140
69static struct cdevsw pcfclock_cdevsw = {
70 /* open */ pcfclock_open,
71 /* close */ pcfclock_close,
72 /* read */ pcfclock_read,
73 /* write */ nowrite,
74 /* ioctl */ noioctl,
75 /* poll */ nopoll,
76 /* mmap */ nommap,
77 /* strategy */ nostrategy,
78 /* name */ PCFCLOCK_NAME,
79 /* maj */ CDEV_MAJOR,
80 /* dump */ nodump,
81 /* psize */ nopsize,
82 /* flags */ 0,
70 .d_open = pcfclock_open,
71 .d_close = pcfclock_close,
72 .d_read = pcfclock_read,
73 .d_name = PCFCLOCK_NAME,
74 .d_maj = CDEV_MAJOR,
83};
84
85#ifndef PCFCLOCK_MAX_RETRIES
86#define PCFCLOCK_MAX_RETRIES 10
87#endif
88
89#define AFC_HI 0
90#define AFC_LO AUTOFEED

--- 252 unchanged lines hidden ---
75};
76
77#ifndef PCFCLOCK_MAX_RETRIES
78#define PCFCLOCK_MAX_RETRIES 10
79#endif
80
81#define AFC_HI 0
82#define AFC_LO AUTOFEED

--- 252 unchanged lines hidden ---