ofw_gpiobus.c (265191) | ofw_gpiobus.c (265289) |
---|---|
1/*- 2 * Copyright (c) 2009, Nathan Whitehorn <nwhitehorn@FreeBSD.org> 3 * Copyright (c) 2013, Luiz Otavio O Souza <loos@FreeBSD.org> 4 * Copyright (c) 2013 The FreeBSD Foundation 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009, Nathan Whitehorn <nwhitehorn@FreeBSD.org> 3 * Copyright (c) 2013, Luiz Otavio O Souza <loos@FreeBSD.org> 4 * Copyright (c) 2013 The FreeBSD Foundation 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/dev/gpio/ofw_gpiobus.c 265191 2014-05-01 14:09:47Z loos $"); | 30__FBSDID("$FreeBSD: head/sys/dev/gpio/ofw_gpiobus.c 265289 2014-05-03 20:33:00Z loos $"); |
31 32#include <sys/param.h> | 31 32#include <sys/param.h> |
33#include <sys/systm.h> |
|
33#include <sys/bus.h> | 34#include <sys/bus.h> |
34#include <sys/gpio.h> | |
35#include <sys/kernel.h> | 35#include <sys/kernel.h> |
36#include <sys/malloc.h> |
|
36#include <sys/module.h> | 37#include <sys/module.h> |
37#include <sys/systm.h> | |
38 39#include <dev/gpio/gpiobusvar.h> 40#include <dev/ofw/ofw_bus.h> | 38 39#include <dev/gpio/gpiobusvar.h> 40#include <dev/ofw/ofw_bus.h> |
41#include <dev/ofw/openfirm.h> | |
42 43#include "gpio_if.h" | 41 42#include "gpio_if.h" |
44#include "gpiobus_if.h" | |
45 46static int ofw_gpiobus_parse_gpios(struct gpiobus_softc *, 47 struct gpiobus_ivar *, phandle_t); 48static struct ofw_gpiobus_devinfo *ofw_gpiobus_setup_devinfo(device_t, 49 phandle_t); 50static void ofw_gpiobus_destroy_devinfo(struct ofw_gpiobus_devinfo *); 51 52device_t --- 343 unchanged lines hidden --- | 43 44static int ofw_gpiobus_parse_gpios(struct gpiobus_softc *, 45 struct gpiobus_ivar *, phandle_t); 46static struct ofw_gpiobus_devinfo *ofw_gpiobus_setup_devinfo(device_t, 47 phandle_t); 48static void ofw_gpiobus_destroy_devinfo(struct ofw_gpiobus_devinfo *); 49 50device_t --- 343 unchanged lines hidden --- |