sp804.c (266070) | sp804.c (266152) |
---|---|
1/* 2 * Copyright (c) 2012 Oleksandr Tymoshenko <gonzo@freebsd.org> 3 * Copyright (c) 2012 Damjan Marion <dmarion@freebsd.org> 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: --- 12 unchanged lines hidden (view full) --- 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 28#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2012 Oleksandr Tymoshenko <gonzo@freebsd.org> 3 * Copyright (c) 2012 Damjan Marion <dmarion@freebsd.org> 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: --- 12 unchanged lines hidden (view full) --- 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 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: stable/10/sys/arm/versatile/sp804.c 266070 2014-05-14 18:25:13Z ian $"); | 29__FBSDID("$FreeBSD: stable/10/sys/arm/versatile/sp804.c 266152 2014-05-15 16:11:06Z ian $"); |
30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/bus.h> 34#include <sys/kernel.h> 35#include <sys/module.h> 36#include <sys/malloc.h> 37#include <sys/rman.h> --- 141 unchanged lines hidden (view full) --- 179 180 return (FILTER_HANDLED); 181} 182 183static int 184sp804_timer_probe(device_t dev) 185{ 186 | 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/bus.h> 34#include <sys/kernel.h> 35#include <sys/module.h> 36#include <sys/malloc.h> 37#include <sys/rman.h> --- 141 unchanged lines hidden (view full) --- 179 180 return (FILTER_HANDLED); 181} 182 183static int 184sp804_timer_probe(device_t dev) 185{ 186 |
187 if (!ofw_bus_status_okay(dev)) 188 return (ENXIO); 189 |
|
187 if (ofw_bus_is_compatible(dev, "arm,sp804")) { 188 device_set_desc(dev, "SP804 System Timer"); 189 return (BUS_PROBE_DEFAULT); 190 } 191 192 return (ENXIO); 193} 194 --- 165 unchanged lines hidden --- | 190 if (ofw_bus_is_compatible(dev, "arm,sp804")) { 191 device_set_desc(dev, "SP804 System Timer"); 192 return (BUS_PROBE_DEFAULT); 193 } 194 195 return (ENXIO); 196} 197 --- 165 unchanged lines hidden --- |