home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Enigma Amiga Life 113
/
EnigmaAmiga113CD.iso
/
software
/
sviluppo
/
quake_src
/
sys_timer.h
< prev
next >
Wrap
C/C++ Source or Header
|
2000-06-17
|
1KB
|
46 lines
/*
Copyright (C) 1996-1997 Id Software, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* WarpOS timer emulation for PowerUp */
/* Based on powerpc.library source by Sam Jordan. Thanks Sam! */
struct ciatimer {
void *resource;
void *interrupt;
unsigned long control;
unsigned long low;
unsigned long high;
unsigned char stopmask;
unsigned char startmask;
unsigned short icrbit;
unsigned long eclock;
};
/* Prototypes from sys_timer68k.s */
int ReserveCIA(struct ciatimer *); /* in a0 */
void FreeCIA(struct ciatimer *); /* in a0 */
/* Prototypes from sys_timerPPC.s */
unsigned long MeasureBusClock(struct ciatimer *);
unsigned long CorrectBusClock(unsigned long);