Deleted Added
full compact
gpiobus.c (213277) gpiobus.c (215142)
1/*-
2 * Copyright (c) 2009 Oleksandr Tymoshenko <gonzo@freebsd.org>
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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009 Oleksandr Tymoshenko <gonzo@freebsd.org>
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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/gpio/gpiobus.c 213277 2010-09-29 20:53:33Z gonzo $");
28__FBSDID("$FreeBSD: head/sys/dev/gpio/gpiobus.c 215142 2010-11-11 20:18:33Z thompsa $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/malloc.h>
33#include <sys/module.h>
34#include <sys/kernel.h>
35#include <sys/queue.h>
36#include <sys/sysctl.h>

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

476 DEVMETHOD(gpiobus_pin_setflags, gpiobus_pin_setflags),
477 DEVMETHOD(gpiobus_pin_get, gpiobus_pin_get),
478 DEVMETHOD(gpiobus_pin_set, gpiobus_pin_set),
479 DEVMETHOD(gpiobus_pin_toggle, gpiobus_pin_toggle),
480
481 { 0, 0 }
482};
483
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/malloc.h>
33#include <sys/module.h>
34#include <sys/kernel.h>
35#include <sys/queue.h>
36#include <sys/sysctl.h>

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

476 DEVMETHOD(gpiobus_pin_setflags, gpiobus_pin_setflags),
477 DEVMETHOD(gpiobus_pin_get, gpiobus_pin_get),
478 DEVMETHOD(gpiobus_pin_set, gpiobus_pin_set),
479 DEVMETHOD(gpiobus_pin_toggle, gpiobus_pin_toggle),
480
481 { 0, 0 }
482};
483
484static driver_t gpiobus_driver = {
484driver_t gpiobus_driver = {
485 "gpiobus",
486 gpiobus_methods,
487 sizeof(struct gpiobus_softc)
488};
489
490devclass_t gpiobus_devclass;
491
492DRIVER_MODULE(gpiobus, gpio, gpiobus_driver, gpiobus_devclass, 0, 0);
493MODULE_VERSION(gpiobus, 1);
485 "gpiobus",
486 gpiobus_methods,
487 sizeof(struct gpiobus_softc)
488};
489
490devclass_t gpiobus_devclass;
491
492DRIVER_MODULE(gpiobus, gpio, gpiobus_driver, gpiobus_devclass, 0, 0);
493MODULE_VERSION(gpiobus, 1);