OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-arm/] [arch-ebsa110/] [time.h] - Rev 1765

Compare with Previous | Blame | View Log

/*
 *  linux/include/asm-arm/arch-ebsa110/time.h
 *
 *  Copyright (C) 1996,1997,1998 Russell King.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * No real time clock on the evalulation board!
 *
 * Changelog:
 *  10-Oct-1996	RMK	Created
 *  04-Dec-1997	RMK	Updated for new arch/arm/kernel/time.c
 *  07-Aug-1998	RMK	Updated for arch/arm/kernel/leds.c
 *  28-Dec-1998	APH	Made leds code optional
 */
 
#include <asm/leds.h>
 
extern int  ebsa110_reset_timer(void);
extern void ebsa110_setup_timer(void);
 
static void timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
{
	if (ebsa110_reset_timer()) {
		do_leds();
		do_timer(regs);
		do_profile(regs);
	}
}
 
/*
 * Set up timer interrupt.
 */
static inline void setup_timer(void)
{
	ebsa110_setup_timer();
 
	timer_irq.handler = timer_interrupt;
 
	setup_arm_irq(IRQ_EBSA110_TIMER0, &timer_irq);
}
 
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.