Deleted Added
full compact
i80321_timer.c (256281) i80321_timer.c (278613)
1/* $NetBSD: i80321_timer.c,v 1.7 2003/07/27 04:52:28 thorpej Exp $ */
2
3/*-
4 * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
5 * All rights reserved.
6 *
7 * Written by Jason R. Thorpe for Wasabi Systems, Inc.
8 *

--- 26 unchanged lines hidden (view full) ---

35 * POSSIBILITY OF SUCH DAMAGE.
36 */
37
38/*
39 * Timer/clock support for the Intel i80321 I/O processor.
40 */
41
42#include <sys/cdefs.h>
1/* $NetBSD: i80321_timer.c,v 1.7 2003/07/27 04:52:28 thorpej Exp $ */
2
3/*-
4 * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
5 * All rights reserved.
6 *
7 * Written by Jason R. Thorpe for Wasabi Systems, Inc.
8 *

--- 26 unchanged lines hidden (view full) ---

35 * POSSIBILITY OF SUCH DAMAGE.
36 */
37
38/*
39 * Timer/clock support for the Intel i80321 I/O processor.
40 */
41
42#include <sys/cdefs.h>
43__FBSDID("$FreeBSD: stable/10/sys/arm/xscale/i80321/i80321_timer.c 236987 2012-06-13 04:38:09Z imp $");
43__FBSDID("$FreeBSD: stable/10/sys/arm/xscale/i80321/i80321_timer.c 278613 2015-02-12 03:50:33Z ian $");
44
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/kernel.h>
48#include <sys/module.h>
49#include <sys/time.h>
50#include <sys/bus.h>
51#include <sys/resource.h>
52#include <sys/rman.h>
53#include <sys/timetc.h>
54
44
45#include <sys/param.h>
46#include <sys/systm.h>
47#include <sys/kernel.h>
48#include <sys/module.h>
49#include <sys/time.h>
50#include <sys/bus.h>
51#include <sys/resource.h>
52#include <sys/rman.h>
53#include <sys/timetc.h>
54
55#include <machine/armreg.h>
55#include <machine/bus.h>
56#include <machine/cpu.h>
57#include <machine/cpufunc.h>
58#include <machine/frame.h>
59#include <machine/resource.h>
60#include <machine/intr.h>
61#include <arm/xscale/i80321/i80321reg.h>
62#include <arm/xscale/i80321/i80321var.h>

--- 313 unchanged lines hidden (view full) ---

376 stathz = 0;
377
378 if (profhz != 0)
379 printf("Cannot get %d Hz profclock\n", profhz);
380 profhz = 0;
381
382 /* Report the clock frequency. */
383
56#include <machine/bus.h>
57#include <machine/cpu.h>
58#include <machine/cpufunc.h>
59#include <machine/frame.h>
60#include <machine/resource.h>
61#include <machine/intr.h>
62#include <arm/xscale/i80321/i80321reg.h>
63#include <arm/xscale/i80321/i80321var.h>

--- 313 unchanged lines hidden (view full) ---

377 stathz = 0;
378
379 if (profhz != 0)
380 printf("Cannot get %d Hz profclock\n", profhz);
381 profhz = 0;
382
383 /* Report the clock frequency. */
384
384 oldirqstate = disable_interrupts(I32_bit);
385 oldirqstate = disable_interrupts(PSR_I);
385
386 irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid,
387#ifdef CPU_XSCALE_81342
388 ICU_INT_TIMER0, ICU_INT_TIMER0,
389#else
390 ICU_INT_TMR0, ICU_INT_TMR0,
391#endif
392 1, RF_ACTIVE);

--- 92 unchanged lines hidden ---
386
387 irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid,
388#ifdef CPU_XSCALE_81342
389 ICU_INT_TIMER0, ICU_INT_TIMER0,
390#else
391 ICU_INT_TMR0, ICU_INT_TMR0,
392#endif
393 1, RF_ACTIVE);

--- 92 unchanged lines hidden ---