rt305x_gpiovar.h (277971) | rt305x_gpiovar.h (277996) |
---|---|
1/*- 2 * Copyright (c) 2010 Aleksandr Rybalko. 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) 2010 Aleksandr Rybalko. 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/mips/rt305x/rt305x_gpiovar.h 277971 2015-01-31 12:43:30Z loos $ | 26 * $FreeBSD: head/sys/mips/rt305x/rt305x_gpiovar.h 277996 2015-01-31 19:32:14Z loos $ |
27 */ 28#ifndef _RT305X_GPIOVAR_H_ 29#define _RT305X_GPIOVAR_H_ 30 31struct rt305x_gpio_softc { 32 device_t dev; | 27 */ 28#ifndef _RT305X_GPIOVAR_H_ 29#define _RT305X_GPIOVAR_H_ 30 31struct rt305x_gpio_softc { 32 device_t dev; |
33 device_t busdev; |
|
33 struct mtx gpio_mtx; 34 struct resource *gpio_mem_res; 35 int gpio_mem_rid; 36 struct resource *gpio_irq_res; 37 int gpio_irq_rid; 38 void *gpio_ih; 39 int gpio_npins; 40 struct gpio_pin gpio_pins[NGPIO]; 41 int reset_gpio; 42 int reset_gpio_last; 43 time_t reset_gpio_ontime; 44}; 45 46#endif /* _RT305X_GPIOVAR_H_ */ 47 48 | 34 struct mtx gpio_mtx; 35 struct resource *gpio_mem_res; 36 int gpio_mem_rid; 37 struct resource *gpio_irq_res; 38 int gpio_irq_rid; 39 void *gpio_ih; 40 int gpio_npins; 41 struct gpio_pin gpio_pins[NGPIO]; 42 int reset_gpio; 43 int reset_gpio_last; 44 time_t reset_gpio_ontime; 45}; 46 47#endif /* _RT305X_GPIOVAR_H_ */ 48 49 |