00001 /* src/kernel/ptimer.h 00002 CubeOS Version 0.4.90 00003 Copyright (C) 1999,2000 Holger Kenn 00004 00005 CubeOS is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or any later version. 00009 00010 CubeOS is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 */ 00016 #ifndef PTIMER_H 00017 #define PTIMER_H 00018 00023 #include <cubeos.h> 00024 00025 #define PTIMER_VECTOR 64 00026 00027 //#define PTIMER_IRQ_LEVEL 4 00028 #define PTIMER_IRQ_LEVEL 6 00029 00030 #define XTAL_FREQ 32768 00031 00032 #define PTIMER_PITR_VAL 0x0008 00033 #define TICKS_PER_SECOND 1024 00034 //#define QUANTUM TICKS_PER_SECOND/8 00035 #define QUANTUM TICKS_PER_SECOND/128 00036 //#define QUANTUM 1024 /* for scheduler debugging, once a second */ 00037 //#define PTIMER_PITR_VAL 0x0110 /* 1Sec */ 00038 //#define TICKS_PER_SECOND 1 00039 //#define QUANTUM TICKS_PER_SECOND 00040 //#define PTIMER_PITR_VAL 0x0101 /* 62.5 mSec */ 00041 //#define TICKS_PER_SECOND 16 00042 //#define QUANTUM TICKS_PER_SECOND 00043 00044 int KERN_ptint(void); 00045 void KERN_init_ptimer(void); 00046 //unsigned long _gettimeofday(); 00047 //unsigned long _settimeofday(unsigned long val); 00048 int KERN_installdispatcher(void (*dispatcher) ()); 00049 int KERN_removedispatcher(); 00050 00051 #endif