1 /* include/asm-mips/mach-goldfish/timer.h 2 ** 3 ** Copyright (C) 2007 Google, Inc. 4 ** 5 ** This software is licensed under the terms of the GNU General Public 6 ** License version 2, as published by the Free Software Foundation, and 7 ** may be copied, distributed, and modified under those terms. 8 ** 9 ** This program is distributed in the hope that it will be useful, 10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 ** GNU General Public License for more details. 13 ** 14 */ 15 16 #ifndef __ASM_MACH_GOLDFISH_TIMER_H 17 #define __ASM_MACH_GOLDFISH_TIMER_H 18 19 enum { 20 TIMER_TIME_LOW = 0x00, // get low bits of current time and update TIMER_TIME_HIGH 21 TIMER_TIME_HIGH = 0x04, // get high bits of time at last TIMER_TIME_LOW read 22 TIMER_ALARM_LOW = 0x08, // set low bits of alarm and activate it 23 TIMER_ALARM_HIGH = 0x0c, // set high bits of next alarm 24 TIMER_CLEAR_INTERRUPT = 0x10, 25 TIMER_CLEAR_ALARM = 0x14 26 }; 27 28 #endif 29 30