ixp425_timer.c (256281) | ixp425_timer.c (278613) |
---|---|
1/* $NetBSD: ixp425_timer.c,v 1.11 2006/04/10 03:36:03 simonb Exp $ */ 2 3/* 4 * Copyright (c) 2003 5 * Ichiro FUKUHARA <ichiro@ichiro.org>. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 */ 35 36#include <sys/cdefs.h> | 1/* $NetBSD: ixp425_timer.c,v 1.11 2006/04/10 03:36:03 simonb Exp $ */ 2 3/* 4 * Copyright (c) 2003 5 * Ichiro FUKUHARA <ichiro@ichiro.org>. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 */ 35 36#include <sys/cdefs.h> |
37__FBSDID("$FreeBSD: stable/10/sys/arm/xscale/ixp425/ixp425_timer.c 186352 2008-12-20 03:26:09Z sam $"); | 37__FBSDID("$FreeBSD: stable/10/sys/arm/xscale/ixp425/ixp425_timer.c 278613 2015-02-12 03:50:33Z ian $"); |
38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/kernel.h> 42#include <sys/module.h> 43#include <sys/time.h> 44#include <sys/bus.h> 45#include <sys/resource.h> 46#include <sys/rman.h> 47#include <sys/timetc.h> 48 | 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/kernel.h> 42#include <sys/module.h> 43#include <sys/time.h> 44#include <sys/bus.h> 45#include <sys/resource.h> 46#include <sys/rman.h> 47#include <sys/timetc.h> 48 |
49#include <machine/armreg.h> |
|
49#include <machine/bus.h> 50#include <machine/cpu.h> 51#include <machine/cpufunc.h> 52#include <machine/frame.h> 53#include <machine/resource.h> 54#include <machine/intr.h> 55#include <arm/xscale/ixp425/ixp425reg.h> 56#include <arm/xscale/ixp425/ixp425var.h> --- 113 unchanged lines hidden (view full) --- 170 stathz = 0; 171 172 if (profhz != 0) 173 printf("Cannot get %d Hz profclock\n", profhz); 174 profhz = 0; 175 176 /* Report the clock frequency. */ 177 | 50#include <machine/bus.h> 51#include <machine/cpu.h> 52#include <machine/cpufunc.h> 53#include <machine/frame.h> 54#include <machine/resource.h> 55#include <machine/intr.h> 56#include <arm/xscale/ixp425/ixp425reg.h> 57#include <arm/xscale/ixp425/ixp425var.h> --- 113 unchanged lines hidden (view full) --- 171 stathz = 0; 172 173 if (profhz != 0) 174 printf("Cannot get %d Hz profclock\n", profhz); 175 profhz = 0; 176 177 /* Report the clock frequency. */ 178 |
178 oldirqstate = disable_interrupts(I32_bit); | 179 oldirqstate = disable_interrupts(PSR_I); |
179 180 irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, IXP425_INT_TMR0, 181 IXP425_INT_TMR0, 1, RF_ACTIVE); 182 if (!irq) 183 panic("Unable to setup the clock irq handler.\n"); 184 else 185 bus_setup_intr(dev, irq, INTR_TYPE_CLK, ixpclk_intr, NULL, 186 NULL, &ihl); --- 82 unchanged lines hidden --- | 180 181 irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, IXP425_INT_TMR0, 182 IXP425_INT_TMR0, 1, RF_ACTIVE); 183 if (!irq) 184 panic("Unable to setup the clock irq handler.\n"); 185 else 186 bus_setup_intr(dev, irq, INTR_TYPE_CLK, ixpclk_intr, NULL, 187 NULL, &ihl); --- 82 unchanged lines hidden --- |