xref: /csrg-svn/usr.bin/tn3270/ctlr/api.h (revision 31161)
1 /*
2  * This file contains header information used by the PC API routines.
3  */
4 
5 #define	API_INTERRUPT_NUMBER	0x7A		/* API Interrupt Number */
6 
7 /*
8  * Define the gate numbers.  These are returned via the Name Resolution
9  * service.
10  */
11 
12 #define	GATE_SESSMGR	1
13 #define	GATE_KEYBOARD	2
14 #define	GATE_COPY	3
15 #define	GATE_OIAM	4
16 
17 #define	NAME_SESSMGR	"SESSMGR"
18 #define	NAME_KEYBOARD	"KEYBOARD"
19 #define	NAME_COPY	"COPY"
20 #define	NAME_OIAM	"OIAM"
21 
22 
23 /*
24  * Name Resolution is specified in AH.
25  */
26 
27 #define	NAME_RESOLUTION	0x81
28 
29 /*
30  * Codes specified in AL for various services.
31  */
32 
33 #define	QUERY_SESSION_ID	0x01
34 #define	QUERY_SESSION_PARMS	0x02
35 #define	QUERY_SESSION_CURSOR	0x0b
36 
37 #define	CONNECT_TO_KEYBOARD	0x01
38 #define	DISCONNECT_FROM_KEYBOARD	0x02
39 #define	WRITE_KEYSTROKE		0x04
40 #define	DISABLE_INPUT		0x05
41 #define	ENABLE_INPUT		0x06
42 
43 #define	COPY_STRING		0x01
44 
45 #define	READ_OIA_GROUP		0x02
46