at91_aic.c (266277) | at91_aic.c (278613) |
---|---|
1/*- 2 * Copyright (c) 2014 Warner Losh. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 12 unchanged lines hidden (view full) --- 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 */ 25 26#include "opt_platform.h" 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2014 Warner Losh. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 12 unchanged lines hidden (view full) --- 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 */ 25 26#include "opt_platform.h" 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: stable/10/sys/arm/at91/at91_aic.c 266277 2014-05-17 00:53:12Z ian $"); | 29__FBSDID("$FreeBSD: stable/10/sys/arm/at91/at91_aic.c 278613 2015-02-12 03:50:33Z ian $"); |
30 31#include <sys/param.h> 32#include <sys/bus.h> 33#include <sys/kernel.h> 34#include <sys/module.h> 35#include <sys/resource.h> 36#include <sys/systm.h> 37#include <sys/rman.h> 38 | 30 31#include <sys/param.h> 32#include <sys/bus.h> 33#include <sys/kernel.h> 34#include <sys/module.h> 35#include <sys/resource.h> 36#include <sys/systm.h> 37#include <sys/rman.h> 38 |
39#include <machine/armreg.h> |
|
39#include <machine/bus.h> 40#include <machine/cpu.h> 41#include <machine/cpufunc.h> 42#include <machine/frame.h> 43#include <machine/intr.h> 44#include <machine/resource.h> 45 46#include <arm/at91/at91var.h> --- 97 unchanged lines hidden (view full) --- 144 } 145 146 WR4(sc, IC_SPU, 32); 147 /* No debug. */ 148 WR4(sc, IC_DCR, 0); 149 /* Disable and clear all interrupts. */ 150 WR4(sc, IC_IDCR, 0xffffffff); 151 WR4(sc, IC_ICCR, 0xffffffff); | 40#include <machine/bus.h> 41#include <machine/cpu.h> 42#include <machine/cpufunc.h> 43#include <machine/frame.h> 44#include <machine/intr.h> 45#include <machine/resource.h> 46 47#include <arm/at91/at91var.h> --- 97 unchanged lines hidden (view full) --- 145 } 146 147 WR4(sc, IC_SPU, 32); 148 /* No debug. */ 149 WR4(sc, IC_DCR, 0); 150 /* Disable and clear all interrupts. */ 151 WR4(sc, IC_IDCR, 0xffffffff); 152 WR4(sc, IC_ICCR, 0xffffffff); |
152 enable_interrupts(I32_bit | F32_bit); | 153 enable_interrupts(PSR_I | PSR_F); |
153 154 return (err); 155} 156 157static void 158at91_aic_new_pass(device_t dev) 159{ 160 device_printf(dev, "Pass %d\n", bus_current_pass); --- 28 unchanged lines hidden --- | 154 155 return (err); 156} 157 158static void 159at91_aic_new_pass(device_t dev) 160{ 161 device_printf(dev, "Pass %d\n", bus_current_pass); --- 28 unchanged lines hidden --- |