aboutsummaryrefslogtreecommitdiff
path: root/gdb/nindy-share/block_io.h
blob: 6521cdb9b05e68ca8c7fbd672fc7f9777eb92801 (plain)
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
58
59
60
61
62
63
64
65
66
67
68
/******************************************************************
	Copyright 1990, 1992 Free Software Foundation, Inc.

	This code was donated by Intel Corp.

   Intel hereby grants you permission to copy, modify, and 
   distribute this software and its documentation.  Intel grants
   this permission provided that the above copyright notice 
   appears in all copies and that both the copyright notice and
   this permission notice appear in supporting documentation.  In
   addition, Intel grants this permission provided that you
   prominently mark as not part of the original any modifications
   made to this software or documentation, and that the name of 
   Intel Corporation not be used in advertising or publicity 
   pertaining to distribution of the software or the documentation 
   without specific, written prior permission.  

   Intel Corporation does not warrant, guarantee or make any 
   representations regarding the use of, or the results of the use
   of, the software and documentation in terms of correctness, 
   accuracy, reliability, currentness, or otherwise; and you rely
   on the software, documentation and results solely at your own 
   risk.							  */
/******************************************************************/

/*****************************************************************************
 * Structures and definitions supporting NINDY requests for services by a
 * remote host.  Used by NINDY monitor, library libnin, comm960, gdb960,
 * etc.  Also contains some defines for NINDY console I/O requests.
 *****************************************************************************/

/* the following four are hardware dependent */
#define	BIT_16		short
#define	BIT_32		int
#define	UBIT_16		unsigned short
#define	UBIT_32		unsigned int

/* Service request numbers -- these are the services that can be asked of the
 * host.
 */
#define BS_ACCESS	0x10
#define BS_CLOSE	0x20
#define BS_CREAT	0x30
#define BS_SEEK		0x40
#define BS_OPEN		0x50
#define BS_READ		0x60
#define BS_STAT		0x70
#define BS_SYSTEMD	0x80
#define BS_TIME		0x90
#define BS_UNMASK	0xa0
#define BS_UNLINK	0xb0
#define BS_WRITE	0xc0


/* Maximum number of arguments to any of the above service requests
 * (in addition to the request number).
 */
#define MAX_SRQ_ARGS    3

/* Number of bytes of data that can be read or written by a single I/O request
 */
#define BUFSIZE		1024

/* NINDY console I/O requests:  CO sends a single character to stdout,
 * CI reads one.
 */
#define CI 		0
#define CO 		1