mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.4 KiB
57 lines
1.4 KiB
/*
|
|
* File: idetect.h
|
|
*
|
|
* Author: J.Roper
|
|
*
|
|
* Import Necessary items for IDLE DETECT
|
|
*
|
|
* SccsID @(#)idetect.h 1.6 08/25/93 Copyright Insignia Solutions Ltd
|
|
*/
|
|
|
|
#ifndef NTVDM
|
|
extern int idle_no_video;
|
|
extern int idle_no_comlpt;
|
|
extern int idle_no_disk;
|
|
#endif
|
|
|
|
void idetect();
|
|
void idle_set();
|
|
void idle_ctl();
|
|
|
|
#define IDLE_INIT 0
|
|
#define IDLE_KYBD_POLL 1
|
|
#define IDLE_TIME_TICK 2
|
|
#define IDLE_WAITIO 3
|
|
|
|
|
|
#ifdef NTVDM
|
|
/*
|
|
* NT VDM idling system based on waits - call funcs for counter idle indicators
|
|
* to allow them to cancel waits.
|
|
*/
|
|
VOID HostIdleNoActivity(VOID);
|
|
|
|
#define IDLE_video() HostIdleNoActivity()
|
|
#define IDLE_comlpt() HostIdleNoActivity()
|
|
#define IDLE_disk() HostIdleNoActivity()
|
|
|
|
/* exported just for kb_setup_vector intialization */
|
|
extern word *pICounter;
|
|
extern word *pCharPollsPerTick;
|
|
extern word *pMinConsecutiveTicks;
|
|
extern word IdleNoActivity;
|
|
extern word ienabled;
|
|
|
|
#else
|
|
#define IDLE_video() idle_no_video = 0
|
|
#define IDLE_comlpt() idle_no_comlpt = 0
|
|
#define IDLE_disk() idle_no_disk = 0
|
|
#endif
|
|
|
|
#define IDLE_tick() idetect(IDLE_TIME_TICK)
|
|
#define IDLE_poll() idetect(IDLE_KYBD_POLL)
|
|
#define IDLE_waitio() idetect(IDLE_WAITIO)
|
|
#define IDLE_init() idetect(IDLE_INIT)
|
|
#define IDLE_set(a,b) idle_set(a,b)
|
|
#define IDLE_ctl(a) idle_ctl(a)
|
|
|