00001 #define CALSRQ 0xcacca
00002
00003 #define CAL_8254 1
00004 #define KLATENCY 2
00005 #define KTHREADS 3
00006 #define END_KLATENCY 4
00007 #define FREQ_CAL 5
00008 #define END_FREQ_CAL 6
00009 #define BUS_CHECK 7
00010 #define END_BUS_CHECK 8
00011 #define GET_PARAMS 9
00012
00013 #define PARPORT 0x370
00014
00015 #define MAXARGS 4
00016 #define STACKSIZE 5000
00017 #define FIFOBUFSIZE 1000
00018 #define INILOOPS 100
00019
00020 struct params_t { unsigned long
00021 mp,
00022 setup_time_8254,
00023 latency_8254,
00024 freq_apic,
00025 latency_apic,
00026 setup_time_apic,
00027 calibrated_apic_freq,
00028 cpu_freq,
00029 calibrated_cpu_freq,
00030 clock_tick_rate,
00031 latch;
00032 };
00033
00034 struct times_t {
00035 unsigned long long cpu_time;
00036 unsigned long apic_time;
00037 int intrs;
00038 };