ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/include/timer.h
Revision: 1.2
Committed: 2000-04-10T18:53:39Z (24 years, 2 months ago) by cebix
Content type: text/plain
Branch: MAIN
CVS Tags: snapshot-13072000
Changes since 1.1: +1 -1 lines
Log Message:
- updated copyright info: 1999->2000

File Contents

# Content
1 /*
2 * timer.h - Time Manager emulation
3 *
4 * Basilisk II (C) 1997-2000 Christian Bauer
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21 #ifndef TIMER_H
22 #define TIMER_H
23
24 extern void TimerInit(void);
25 extern void TimerExit(void);
26 extern void TimerReset(void);
27
28 extern void TimerInterrupt(void);
29
30 extern int16 InsTime(uint32 tm, uint16 trap);
31 extern int16 RmvTime(uint32 tm);
32 extern int16 PrimeTime(uint32 tm, int32 time);
33 extern void Microseconds(uint32 &hi, uint32 &lo);
34
35 extern uint32 TimerDateTime(void);
36
37 // System specific and internal functions/data
38 extern void timer_current_time(tm_time_t &t);
39 extern void timer_add_time(tm_time_t &res, tm_time_t a, tm_time_t b);
40 extern void timer_sub_time(tm_time_t &res, tm_time_t a, tm_time_t b);
41 extern int timer_cmp_time(tm_time_t a, tm_time_t b);
42 extern void timer_mac2host_time(tm_time_t &res, int32 mactime);
43 extern int32 timer_host2mac_time(tm_time_t hosttime);
44
45 #endif