Deleted Added
full compact
watchdog.c (126370) watchdog.c (130585)
1/*-
2 * Copyright (c) 2004 Poul-Henning Kamp
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2004 Poul-Henning Kamp
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/dev/watchdog/watchdog.c 126370 2004-02-28 20:06:59Z phk $");
29__FBSDID("$FreeBSD: head/sys/dev/watchdog/watchdog.c 130585 2004-06-16 09:47:26Z phk $");
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/conf.h>
34#include <sys/uio.h>
35#include <sys/kernel.h>
36#include <sys/malloc.h>
37#include <sys/module.h>
38#include <sys/watchdog.h>
39#include <sys/bus.h>
40#include <machine/bus.h>
41
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/conf.h>
34#include <sys/uio.h>
35#include <sys/kernel.h>
36#include <sys/malloc.h>
37#include <sys/module.h>
38#include <sys/watchdog.h>
39#include <sys/bus.h>
40#include <machine/bus.h>
41
42static dev_t wd_dev;
42static struct cdev *wd_dev;
43
44static int
43
44static int
45wd_ioctl(dev_t dev __unused, u_long cmd, caddr_t data,
45wd_ioctl(struct cdev *dev __unused, u_long cmd, caddr_t data,
46 int flags __unused, struct thread *td)
47{
48 int error;
49 u_int u;
50
51 if (cmd != WDIOCPATPAT)
52 return (ENOIOCTL);
53 u = *(u_int *)data;

--- 36 unchanged lines hidden ---
46 int flags __unused, struct thread *td)
47{
48 int error;
49 u_int u;
50
51 if (cmd != WDIOCPATPAT)
52 return (ENOIOCTL);
53 u = *(u_int *)data;

--- 36 unchanged lines hidden ---