/**************************************************************************** REMARKS: Read the Long Period timer value from the BIOS timer tick. ****************************************************************************/ static ulong __ULZReadTime(void) { ulong ticks; LZ_disable(); /* Turn of interrupts */ ticks = PM_getLong(_ZTimerBIOSPtr+0x6C); LZ_enable(); /* Turn on interrupts again */ return ticks; }
/**************************************************************************** REMARKS: This function is used to return the number of ticks since system startup in milliseconds. This should be the same value that is placed into the time stamp fields of events, and is used to implement auto mouse down events. ****************************************************************************/ ulong _EVT_getTicks(void) { return (ulong)PM_getLong(_EVT_biosPtr+0x6C) * 55UL; }