gpiobusvar.h (274670) | gpiobusvar.h (277996) |
---|---|
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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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 * | 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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 * $FreeBSD: head/sys/dev/gpio/gpiobusvar.h 274670 2014-11-18 17:22:08Z loos $ | 26 * $FreeBSD: head/sys/dev/gpio/gpiobusvar.h 277996 2015-01-31 19:32:14Z loos $ |
27 * 28 */ 29 30#ifndef __GPIOBUS_H__ 31#define __GPIOBUS_H__ 32 33#include "opt_platform.h" 34 --- 55 unchanged lines hidden (view full) --- 90 pcell_t *gpios, uint32_t *pin, uint32_t *flags) 91{ 92 return (GPIO_MAP_GPIOS(bus, dev, gparent, gcells, gpios, pin, flags)); 93} 94 95device_t ofw_gpiobus_add_fdt_child(device_t, phandle_t); 96#endif 97int gpio_check_flags(uint32_t, uint32_t); | 27 * 28 */ 29 30#ifndef __GPIOBUS_H__ 31#define __GPIOBUS_H__ 32 33#include "opt_platform.h" 34 --- 55 unchanged lines hidden (view full) --- 90 pcell_t *gpios, uint32_t *pin, uint32_t *flags) 91{ 92 return (GPIO_MAP_GPIOS(bus, dev, gparent, gcells, gpios, pin, flags)); 93} 94 95device_t ofw_gpiobus_add_fdt_child(device_t, phandle_t); 96#endif 97int gpio_check_flags(uint32_t, uint32_t); |
98device_t gpiobus_attach_bus(device_t); 99int gpiobus_detach_bus(device_t); |
|
98int gpiobus_init_softc(device_t); 99 100extern driver_t gpiobus_driver; 101 102#endif /* __GPIOBUS_H__ */ | 100int gpiobus_init_softc(device_t); 101 102extern driver_t gpiobus_driver; 103 104#endif /* __GPIOBUS_H__ */ |