blob: 0de5831248bc9b71286d444589347a71af4a1594 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/*
* 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)
|