Deleted Added
full compact
pcfclock.c (83366) pcfclock.c (94154)
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 83366 2001-09-12 08:38:13Z julian $
24 * $FreeBSD: head/sys/dev/ppbus/pcfclock.c 94154 2002-04-07 22:06:20Z ticso $
25 *
26 */
27
28#include "opt_pcfclock.h"
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>

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

118
119#define PCFCLOCK_CMD_TIME 0 /* send current time */
120#define PCFCLOCK_CMD_COPY 7 /* copy received signal to PC */
121
122static void
123pcfclock_identify(driver_t *driver, device_t parent)
124{
125
25 *
26 */
27
28#include "opt_pcfclock.h"
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>

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

118
119#define PCFCLOCK_CMD_TIME 0 /* send current time */
120#define PCFCLOCK_CMD_COPY 7 /* copy received signal to PC */
121
122static void
123pcfclock_identify(driver_t *driver, device_t parent)
124{
125
126 BUS_ADD_CHILD(parent, 0, PCFCLOCK_NAME, 0);
126 BUS_ADD_CHILD(parent, 0, PCFCLOCK_NAME, -1);
127}
128
129static int
130pcfclock_probe(device_t dev)
131{
132 struct pcfclock_data *sc;
133
134 device_set_desc(dev, "PCF-1.0");

--- 208 unchanged lines hidden ---
127}
128
129static int
130pcfclock_probe(device_t dev)
131{
132 struct pcfclock_data *sc;
133
134 device_set_desc(dev, "PCF-1.0");

--- 208 unchanged lines hidden ---