brintos

brintos / linux-shallow public Read only

0
0
Text · 1007 B · 05a3a4f Raw
32 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/*3 * goldfish-timer clocksource4 * Registers definition for the goldfish-timer device5 */6 7#ifndef _CLOCKSOURCE_TIMER_GOLDFISH_H8#define _CLOCKSOURCE_TIMER_GOLDFISH_H9 10/*11 * TIMER_TIME_LOW	 get low bits of current time and update TIMER_TIME_HIGH12 * TIMER_TIME_HIGH	 get high bits of time at last TIMER_TIME_LOW read13 * TIMER_ALARM_LOW	 set low bits of alarm and activate it14 * TIMER_ALARM_HIGH	 set high bits of next alarm15 * TIMER_IRQ_ENABLED	 enable alarm interrupt16 * TIMER_CLEAR_ALARM	 disarm an existing alarm17 * TIMER_ALARM_STATUS	 alarm status (running or not)18 * TIMER_CLEAR_INTERRUPT clear interrupt19 */20#define TIMER_TIME_LOW		0x0021#define TIMER_TIME_HIGH		0x0422#define TIMER_ALARM_LOW		0x0823#define TIMER_ALARM_HIGH	0x0c24#define TIMER_IRQ_ENABLED	0x1025#define TIMER_CLEAR_ALARM	0x1426#define TIMER_ALARM_STATUS	0x1827#define TIMER_CLEAR_INTERRUPT	0x1c28 29extern int goldfish_timer_init(int irq, void __iomem *base);30 31#endif /* _CLOCKSOURCE_TIMER_GOLDFISH_H */32