Deleted Added
full compact
spic.c (302408) spic.c (320921)
1/*-
2 * Copyright (c) 2000 Nick Sayer
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

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

45 * ccw and cw, respectively
46 *
47 * What documentation exists is thanks to Andrew Tridge, and his page at
48 * http://samba.org/picturebook/ Special thanks also to Ian Dowse, who
49 * also provided sample code upon which this driver was based.
50 */
51
52#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2000 Nick Sayer
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

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

45 * ccw and cw, respectively
46 *
47 * What documentation exists is thanks to Andrew Tridge, and his page at
48 * http://samba.org/picturebook/ Special thanks also to Ian Dowse, who
49 * also provided sample code upon which this driver was based.
50 */
51
52#include <sys/cdefs.h>
53__FBSDID("$FreeBSD: stable/11/sys/i386/isa/spic.c 296137 2016-02-27 03:38:01Z jhibbits $");
53__FBSDID("$FreeBSD: stable/11/sys/i386/isa/spic.c 320921 2017-07-12 20:10:53Z jhb $");
54
55#include <sys/param.h>
56#include <sys/systm.h>
57#include <sys/kernel.h>
58#include <sys/module.h>
59#include <sys/bus.h>
60#include <machine/bus.h>
61#include <sys/rman.h>

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

345
346 spic_call1(sc, 0x82);
347 spic_call2(sc, 0x81, 0xff);
348 spic_call1(sc, 0x92);
349
350 /* There can be only one */
351 sc->sc_cdev = make_dev(&spic_cdevsw, 0, 0, 0, 0600, "jogdial");
352 sc->sc_cdev->si_drv1 = sc;
54
55#include <sys/param.h>
56#include <sys/systm.h>
57#include <sys/kernel.h>
58#include <sys/module.h>
59#include <sys/bus.h>
60#include <machine/bus.h>
61#include <sys/rman.h>

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

345
346 spic_call1(sc, 0x82);
347 spic_call2(sc, 0x81, 0xff);
348 spic_call1(sc, 0x92);
349
350 /* There can be only one */
351 sc->sc_cdev = make_dev(&spic_cdevsw, 0, 0, 0, 0600, "jogdial");
352 sc->sc_cdev->si_drv1 = sc;
353 device_printf(dev,
354 "WARNING: This driver is deprecated and will be removed.\n");
353
354 return 0;
355}
356
357static void
358spictimeout(void *arg)
359{
360 struct spic_softc *sc = arg;

--- 202 unchanged lines hidden ---
355
356 return 0;
357}
358
359static void
360spictimeout(void *arg)
361{
362 struct spic_softc *sc = arg;

--- 202 unchanged lines hidden ---