Deleted Added
full compact
i80321_timer.c (140305) i80321_timer.c (140308)
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: head/sys/arm/xscale/i80321/i80321_timer.c 140305 2005-01-15 16:57:00Z cognet $");
43__FBSDID("$FreeBSD: head/sys/arm/xscale/i80321/i80321_timer.c 140308 2005-01-15 18:55:22Z cognet $");
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>

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

58#include <machine/cpufunc.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>
63
64#include <arm/xscale/xscalevar.h>
65
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>

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

58#include <machine/cpufunc.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>
63
64#include <arm/xscale/xscalevar.h>
65
66void (*i80321_hardclock_hook)(void) = NULL;
66struct i80321_timer_softc {
67 device_t dev;
68} timer_softc;
69
70
71static unsigned i80321_timer_get_timecount(struct timecounter *tc);
72
73

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

376clockhandler(void *arg)
377{
378 struct clockframe *frame = arg;
379
380 ticked++;
381 tisr_write(TISR_TMR0);
382 hardclock(frame);
383
67struct i80321_timer_softc {
68 device_t dev;
69} timer_softc;
70
71
72static unsigned i80321_timer_get_timecount(struct timecounter *tc);
73
74

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

377clockhandler(void *arg)
378{
379 struct clockframe *frame = arg;
380
381 ticked++;
382 tisr_write(TISR_TMR0);
383 hardclock(frame);
384
385 if (i80321_hardclock_hook != NULL)
386 (*i80321_hardclock_hook)();
384 return;
385}
386
387void
388cpu_startprofclock(void)
389{
390}
391
392void
393cpu_stopprofclock(void)
394{
395
396}
387 return;
388}
389
390void
391cpu_startprofclock(void)
392{
393}
394
395void
396cpu_stopprofclock(void)
397{
398
399}