Subversion Repositories HelenOS-historic

Rev

Rev 1754 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1754 Rev 1780
Line 76... Line 76...
76
 
76
 
77
#define LOOPS 150000
77
#define LOOPS 150000
78
#define SHIFT 11
78
#define SHIFT 11
79
void i8254_calibrate_delay_loop(void)
79
void i8254_calibrate_delay_loop(void)
80
{
80
{
81
    __u64 clk1, clk2;
81
    uint64_t clk1, clk2;
82
    __u32 t1, t2, o1, o2;
82
    uint32_t t1, t2, o1, o2;
83
    __u8 not_ok;
83
    uint8_t not_ok;
84
 
84
 
85
 
85
 
86
    /*
86
    /*
87
     * One-shot timer. Count-down from 0xffff at 1193180Hz
87
     * One-shot timer. Count-down from 0xffff at 1193180Hz
88
     * MAGIC_NUMBER is the magic value for 1ms.
88
     * MAGIC_NUMBER is the magic value for 1ms.