bcm2835_intr.c (299117) | bcm2835_intr.c (300149) |
---|---|
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: head/sys/arm/broadcom/bcm2835/bcm2835_intr.c 299117 2016-05-05 13:31:19Z skra $"); | 31__FBSDID("$FreeBSD: head/sys/arm/broadcom/bcm2835/bcm2835_intr.c 300149 2016-05-18 15:05:44Z andrew $"); |
32 33#include "opt_platform.h" 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/bus.h> 38#include <sys/kernel.h> 39#include <sys/ktr.h> --- 296 unchanged lines hidden (view full) --- 336 } else 337 return (ENXIO); 338 339 error = intr_isrc_register(&bii->bii_isrc, sc->sc_dev, 0, 340 "%s,%u", name, irq); 341 if (error != 0) 342 return (error); 343 } | 32 33#include "opt_platform.h" 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/bus.h> 38#include <sys/kernel.h> 39#include <sys/ktr.h> --- 296 unchanged lines hidden (view full) --- 336 } else 337 return (ENXIO); 338 339 error = intr_isrc_register(&bii->bii_isrc, sc->sc_dev, 0, 340 "%s,%u", name, irq); 341 if (error != 0) 342 return (error); 343 } |
344 return (intr_pic_register(sc->sc_dev, xref)); | 344 if (intr_pic_register(sc->sc_dev, xref) == NULL) 345 return (ENXIO); 346 347 return (0); |
345} 346#endif 347 348static int 349bcm_intc_probe(device_t dev) 350{ 351 352 if (!ofw_bus_status_okay(dev)) --- 188 unchanged lines hidden --- | 348} 349#endif 350 351static int 352bcm_intc_probe(device_t dev) 353{ 354 355 if (!ofw_bus_status_okay(dev)) --- 188 unchanged lines hidden --- |