Deleted Added
full compact
aintc.c (256281) aintc.c (266152)
1/*-
2 * Copyright (c) 2012 Damjan Marion <dmarion@Freebsd.org>
3 * All rights reserved.
4 *
5 * Based on OMAP3 INTC code by Ben Gray
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2012 Damjan Marion <dmarion@Freebsd.org>
3 * All rights reserved.
4 *
5 * Based on OMAP3 INTC code by Ben Gray
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: stable/10/sys/arm/ti/aintc.c 249181 2013-04-06 03:31:28Z gonzo $");
31__FBSDID("$FreeBSD: stable/10/sys/arm/ti/aintc.c 266152 2014-05-15 16:11:06Z ian $");
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/bus.h>
36#include <sys/kernel.h>
37#include <sys/ktr.h>
38#include <sys/module.h>
39#include <sys/rman.h>

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

76 bus_space_read_4(ti_aintc_sc->aintc_bst, ti_aintc_sc->aintc_bsh, reg)
77#define aintc_write_4(reg, val) \
78 bus_space_write_4(ti_aintc_sc->aintc_bst, ti_aintc_sc->aintc_bsh, reg, val)
79
80
81static int
82ti_aintc_probe(device_t dev)
83{
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/bus.h>
36#include <sys/kernel.h>
37#include <sys/ktr.h>
38#include <sys/module.h>
39#include <sys/rman.h>

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

76 bus_space_read_4(ti_aintc_sc->aintc_bst, ti_aintc_sc->aintc_bsh, reg)
77#define aintc_write_4(reg, val) \
78 bus_space_write_4(ti_aintc_sc->aintc_bst, ti_aintc_sc->aintc_bsh, reg, val)
79
80
81static int
82ti_aintc_probe(device_t dev)
83{
84 if (!ofw_bus_status_okay(dev))
85 return (ENXIO);
86
87
84 if (!ofw_bus_is_compatible(dev, "ti,aintc"))
85 return (ENXIO);
86 device_set_desc(dev, "TI AINTC Interrupt Controller");
87 return (BUS_PROBE_DEFAULT);
88}
89
90static int
91ti_aintc_attach(device_t dev)

--- 89 unchanged lines hidden ---
88 if (!ofw_bus_is_compatible(dev, "ti,aintc"))
89 return (ENXIO);
90 device_set_desc(dev, "TI AINTC Interrupt Controller");
91 return (BUS_PROBE_DEFAULT);
92}
93
94static int
95ti_aintc_attach(device_t dev)

--- 89 unchanged lines hidden ---