pxa_icu.c (256281) | pxa_icu.c (278613) |
---|---|
1/*- 2 * Copyright (c) 2006 Benno Rice. 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. --- 9 unchanged lines hidden (view full) --- 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2006 Benno Rice. 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. --- 9 unchanged lines hidden (view full) --- 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include <sys/cdefs.h> |
26__FBSDID("$FreeBSD: stable/10/sys/arm/xscale/pxa/pxa_icu.c 193847 2009-06-09 18:18:41Z marcel $"); | 26__FBSDID("$FreeBSD: stable/10/sys/arm/xscale/pxa/pxa_icu.c 278613 2015-02-12 03:50:33Z ian $"); |
27 28#include <sys/param.h> 29#include <sys/systm.h> 30#include <sys/bus.h> 31#include <sys/kernel.h> 32#include <sys/module.h> 33#include <sys/malloc.h> 34#include <sys/rman.h> 35#include <sys/timetc.h> | 27 28#include <sys/param.h> 29#include <sys/systm.h> 30#include <sys/bus.h> 31#include <sys/kernel.h> 32#include <sys/module.h> 33#include <sys/malloc.h> 34#include <sys/rman.h> 35#include <sys/timetc.h> |
36#include <machine/armreg.h> |
|
36#include <machine/bus.h> 37#include <machine/intr.h> 38 39#include <arm/xscale/pxa/pxavar.h> 40#include <arm/xscale/pxa/pxareg.h> 41 42struct pxa_icu_softc { 43 struct resource * pi_res[1]; --- 56 unchanged lines hidden (view full) --- 100 101 /* Disable all interrupts. */ 102 pxa_icu_set_icmr(0); 103 104 /* Route all interrupts to IRQ rather than FIQ. */ 105 pxa_icu_set_iclr(0); 106 107 /* XXX: This should move to configure_final or something. */ | 37#include <machine/bus.h> 38#include <machine/intr.h> 39 40#include <arm/xscale/pxa/pxavar.h> 41#include <arm/xscale/pxa/pxareg.h> 42 43struct pxa_icu_softc { 44 struct resource * pi_res[1]; --- 56 unchanged lines hidden (view full) --- 101 102 /* Disable all interrupts. */ 103 pxa_icu_set_icmr(0); 104 105 /* Route all interrupts to IRQ rather than FIQ. */ 106 pxa_icu_set_iclr(0); 107 108 /* XXX: This should move to configure_final or something. */ |
108 enable_interrupts(I32_bit|F32_bit); | 109 enable_interrupts(PSR_I|PSR_F); |
109 110 return (0); 111} 112 113static device_method_t pxa_icu_methods[] = { 114 DEVMETHOD(device_probe, pxa_icu_probe), 115 DEVMETHOD(device_attach, pxa_icu_attach), 116 --- 142 unchanged lines hidden --- | 110 111 return (0); 112} 113 114static device_method_t pxa_icu_methods[] = { 115 DEVMETHOD(device_probe, pxa_icu_probe), 116 DEVMETHOD(device_attach, pxa_icu_attach), 117 --- 142 unchanged lines hidden --- |