1/*- 2 * Copyright (c) 2012, 2013 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Oleksandr Rybalko under sponsorship 6 * from the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: stable/10/sys/arm/freescale/imx/tzic.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> --- 31 unchanged lines hidden (view full) --- 71#define tzic_write_4(reg, val) \ 72 bus_space_write_4(tzic_sc->tzic_bst, tzic_sc->tzic_bsh, reg, val) 73 74static void tzic_post_filter(void *); 75 76static int 77tzic_probe(device_t dev) 78{ |
79 80 if (!ofw_bus_status_okay(dev)) 81 return (ENXIO); 82 |
83 if (ofw_bus_is_compatible(dev, "fsl,tzic")) { 84 device_set_desc(dev, "TrustZone Interrupt Controller"); 85 return (BUS_PROBE_DEFAULT); 86 } 87 return (ENXIO); 88} 89 90static int --- 101 unchanged lines hidden --- |