Deleted Added
full compact
intr.h (299117) intr.h (299928)
1/*-
2 * Copyright (c) 2015-2016 Svatopluk Kraus
3 * Copyright (c) 2015-2016 Michal Meloun
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*-
2 * Copyright (c) 2015-2016 Svatopluk Kraus
3 * Copyright (c) 2015-2016 Michal Meloun
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/sys/intr.h 299117 2016-05-05 13:31:19Z skra $
27 * $FreeBSD: head/sys/sys/intr.h 299928 2016-05-16 09:11:40Z andrew $
28 */
29
30#ifndef _SYS_INTR_H_
31#define _SYS_INTR_H_
32
33#include <sys/systm.h>
34
35#define INTR_IRQ_INVALID 0xFFFFFFFF

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

123int intr_release_irq(device_t, struct resource *);
124
125int intr_setup_irq(device_t, struct resource *, driver_filter_t, driver_intr_t,
126 void *, int, void **);
127int intr_teardown_irq(device_t, struct resource *, void *);
128
129int intr_describe_irq(device_t, struct resource *, void *, const char *);
130
28 */
29
30#ifndef _SYS_INTR_H_
31#define _SYS_INTR_H_
32
33#include <sys/systm.h>
34
35#define INTR_IRQ_INVALID 0xFFFFFFFF

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

123int intr_release_irq(device_t, struct resource *);
124
125int intr_setup_irq(device_t, struct resource *, driver_filter_t, driver_intr_t,
126 void *, int, void **);
127int intr_teardown_irq(device_t, struct resource *, void *);
128
129int intr_describe_irq(device_t, struct resource *, void *, const char *);
130
131/* MSI/MSI-X handling */
132int intr_msi_register(device_t, intptr_t);
133int intr_alloc_msi(device_t, device_t, intptr_t, int, int, int *);
134int intr_release_msi(device_t, device_t, intptr_t, int, int *);
135int intr_map_msi(device_t, device_t, intptr_t, int, uint64_t *, uint32_t *);
136int intr_alloc_msix(device_t, device_t, intptr_t, int *);
137int intr_release_msix(device_t, device_t, intptr_t, int);
138
131#ifdef DEV_ACPI
132u_int intr_acpi_map_irq(device_t, u_int, enum intr_polarity,
133 enum intr_trigger);
134#endif
135#ifdef FDT
136u_int intr_fdt_map_irq(phandle_t, pcell_t *, u_int);
137#endif
138u_int intr_gpio_map_irq(device_t dev, u_int pin_num, u_int pin_flags,

--- 21 unchanged lines hidden ---
139#ifdef DEV_ACPI
140u_int intr_acpi_map_irq(device_t, u_int, enum intr_polarity,
141 enum intr_trigger);
142#endif
143#ifdef FDT
144u_int intr_fdt_map_irq(phandle_t, pcell_t *, u_int);
145#endif
146u_int intr_gpio_map_irq(device_t dev, u_int pin_num, u_int pin_flags,

--- 21 unchanged lines hidden ---