Deleted Added
full compact
pcfclock.c (119418) pcfclock.c (126076)
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.

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

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 *
25 */
26
27#include <sys/cdefs.h>
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.

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

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 *
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/ppbus/pcfclock.c 119418 2003-08-24 17:55:58Z obrien $");
28__FBSDID("$FreeBSD: head/sys/dev/ppbus/pcfclock.c 126076 2004-02-21 19:42:58Z phk $");
29
30#include "opt_pcfclock.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/bus.h>
35#include <sys/sockio.h>
36#include <sys/mbuf.h>

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

62 (devclass_get_device(pcfclock_devclass, (unit)))
63
64static devclass_t pcfclock_devclass;
65
66static d_open_t pcfclock_open;
67static d_close_t pcfclock_close;
68static d_read_t pcfclock_read;
69
29
30#include "opt_pcfclock.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/bus.h>
35#include <sys/sockio.h>
36#include <sys/mbuf.h>

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

62 (devclass_get_device(pcfclock_devclass, (unit)))
63
64static devclass_t pcfclock_devclass;
65
66static d_open_t pcfclock_open;
67static d_close_t pcfclock_close;
68static d_read_t pcfclock_read;
69
70#define CDEV_MAJOR 140
71static struct cdevsw pcfclock_cdevsw = {
72 .d_open = pcfclock_open,
73 .d_close = pcfclock_close,
74 .d_read = pcfclock_read,
75 .d_name = PCFCLOCK_NAME,
70static struct cdevsw pcfclock_cdevsw = {
71 .d_open = pcfclock_open,
72 .d_close = pcfclock_close,
73 .d_read = pcfclock_read,
74 .d_name = PCFCLOCK_NAME,
76 .d_maj = CDEV_MAJOR,
77};
78
79#ifndef PCFCLOCK_MAX_RETRIES
80#define PCFCLOCK_MAX_RETRIES 10
81#endif
82
83#define AFC_HI 0
84#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 ---