bcm2835_mbox.c (262586) | bcm2835_mbox.c (266152) |
---|---|
1/*- 2 * Copyright (c) 2012 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 --- 11 unchanged lines hidden (view full) --- 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 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2012 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 --- 11 unchanged lines hidden (view full) --- 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 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: stable/10/sys/arm/broadcom/bcm2835/bcm2835_mbox.c 262586 2014-02-28 00:39:35Z brueffer $"); | 28__FBSDID("$FreeBSD: stable/10/sys/arm/broadcom/bcm2835/bcm2835_mbox.c 266152 2014-05-15 16:11:06Z ian $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/kernel.h> 34#include <sys/module.h> 35#include <sys/malloc.h> 36#include <sys/rman.h> --- 86 unchanged lines hidden (view full) --- 123 } 124 MBOX_UNLOCK(sc); 125} 126 127static int 128bcm_mbox_probe(device_t dev) 129{ 130 | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/kernel.h> 34#include <sys/module.h> 35#include <sys/malloc.h> 36#include <sys/rman.h> --- 86 unchanged lines hidden (view full) --- 123 } 124 MBOX_UNLOCK(sc); 125} 126 127static int 128bcm_mbox_probe(device_t dev) 129{ 130 |
131 if (!ofw_bus_status_okay(dev)) 132 return (ENXIO); 133 |
|
131 if (ofw_bus_is_compatible(dev, "broadcom,bcm2835-mbox")) { 132 device_set_desc(dev, "BCM2835 VideoCore Mailbox"); 133 return(BUS_PROBE_DEFAULT); 134 } 135 136 return (ENXIO); 137} 138 --- 110 unchanged lines hidden --- | 134 if (ofw_bus_is_compatible(dev, "broadcom,bcm2835-mbox")) { 135 device_set_desc(dev, "BCM2835 VideoCore Mailbox"); 136 return(BUS_PROBE_DEFAULT); 137 } 138 139 return (ENXIO); 140} 141 --- 110 unchanged lines hidden --- |