Deleted Added
full compact
gpiobusvar.h (302408) gpiobusvar.h (308333)
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: stable/11/sys/dev/gpio/gpiobusvar.h 301539 2016-06-07 05:08:24Z mmel $
26 * $FreeBSD: stable/11/sys/dev/gpio/gpiobusvar.h 308333 2016-11-05 10:23:02Z mmel $
27 *
28 */
29
30#ifndef __GPIOBUS_H__
31#define __GPIOBUS_H__
32
33#include "opt_platform.h"
34

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

65#define GPIO_INTR_CONFORM GPIO_INTR_NONE
66
67struct gpiobus_pin_data
68{
69 int mapped; /* pin is mapped/reserved. */
70 char *name; /* pin name. */
71};
72
27 *
28 */
29
30#ifndef __GPIOBUS_H__
31#define __GPIOBUS_H__
32
33#include "opt_platform.h"
34

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

65#define GPIO_INTR_CONFORM GPIO_INTR_NONE
66
67struct gpiobus_pin_data
68{
69 int mapped; /* pin is mapped/reserved. */
70 char *name; /* pin name. */
71};
72
73#ifdef INTRNG
73struct intr_map_data_gpio {
74 struct intr_map_data hdr;
75 u_int gpio_pin_num;
76 u_int gpio_pin_flags;
77 u_int gpio_intr_mode;
78};
74struct intr_map_data_gpio {
75 struct intr_map_data hdr;
76 u_int gpio_pin_num;
77 u_int gpio_pin_flags;
78 u_int gpio_intr_mode;
79};
80#endif
79
80struct gpiobus_softc
81{
82 struct mtx sc_mtx; /* bus mutex */
83 struct rman sc_intr_rman; /* isr resources */
84 device_t sc_busdev; /* bus device */
85 device_t sc_owner; /* bus owner */
86 device_t sc_dev; /* driver device */

--- 65 unchanged lines hidden ---
81
82struct gpiobus_softc
83{
84 struct mtx sc_mtx; /* bus mutex */
85 struct rman sc_intr_rman; /* isr resources */
86 device_t sc_busdev; /* bus device */
87 device_t sc_owner; /* bus owner */
88 device_t sc_dev; /* driver device */

--- 65 unchanged lines hidden ---