Commit | Line | Data |
---|---|---|
c906108c SS |
1 | /****************************************************************** |
2 | Copyright 1990, 1992 Free Software Foundation, Inc. | |
3 | ||
4 | This code was donated by Intel Corp. | |
5 | ||
6 | Intel hereby grants you permission to copy, modify, and | |
7 | distribute this software and its documentation. Intel grants | |
8 | this permission provided that the above copyright notice | |
9 | appears in all copies and that both the copyright notice and | |
10 | this permission notice appear in supporting documentation. In | |
11 | addition, Intel grants this permission provided that you | |
12 | prominently mark as not part of the original any modifications | |
13 | made to this software or documentation, and that the name of | |
14 | Intel Corporation not be used in advertising or publicity | |
15 | pertaining to distribution of the software or the documentation | |
16 | without specific, written prior permission. | |
17 | ||
18 | Intel Corporation does not warrant, guarantee or make any | |
19 | representations regarding the use of, or the results of the use | |
20 | of, the software and documentation in terms of correctness, | |
21 | accuracy, reliability, currentness, or otherwise; and you rely | |
22 | on the software, documentation and results solely at your own | |
23 | risk. */ | |
24 | /******************************************************************/ | |
25 | ||
26 | /***************************************************************************** | |
27 | * Structures and definitions supporting NINDY requests for services by a | |
28 | * remote host. Used by NINDY monitor, library libnin, comm960, gdb960, | |
29 | * etc. Also contains some defines for NINDY console I/O requests. | |
30 | *****************************************************************************/ | |
31 | ||
32 | /* the following four are hardware dependent */ | |
33 | #define BIT_16 short | |
34 | #define BIT_32 int | |
35 | #define UBIT_16 unsigned short | |
36 | #define UBIT_32 unsigned int | |
37 | ||
38 | /* Service request numbers -- these are the services that can be asked of the | |
39 | * host. | |
40 | */ | |
41 | #define BS_ACCESS 0x10 | |
42 | #define BS_CLOSE 0x20 | |
43 | #define BS_CREAT 0x30 | |
44 | #define BS_SEEK 0x40 | |
45 | #define BS_OPEN 0x50 | |
46 | #define BS_READ 0x60 | |
47 | #define BS_STAT 0x70 | |
48 | #define BS_SYSTEMD 0x80 | |
49 | #define BS_TIME 0x90 | |
50 | #define BS_UNMASK 0xa0 | |
51 | #define BS_UNLINK 0xb0 | |
52 | #define BS_WRITE 0xc0 | |
53 | ||
54 | ||
55 | /* Maximum number of arguments to any of the above service requests | |
56 | * (in addition to the request number). | |
57 | */ | |
58 | #define MAX_SRQ_ARGS 3 | |
59 | ||
60 | /* Number of bytes of data that can be read or written by a single I/O request | |
61 | */ | |
62 | #define BUFSIZE 1024 | |
63 | ||
64 | /* NINDY console I/O requests: CO sends a single character to stdout, | |
65 | * CI reads one. | |
66 | */ | |
67 | #define CI 0 | |
68 | #define CO 1 |