OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [utils/] [amd-udi/] [include/] [hif.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/* @(#)hif.h    5.19 93/10/26 11:33:44, Srini, AMD */
2
/******************************************************************************
3
 * Copyright 1991 Advanced Micro Devices, Inc.
4
 *
5
 * This software is the property of Advanced Micro Devices, Inc  (AMD)  which
6
 * specifically  grants the user the right to modify, use and distribute this
7
 * software provided this notice is not removed or altered.  All other rights
8
 * are reserved by AMD.
9
 *
10
 * AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS
11
 * SOFTWARE.  IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL
12
 * DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR
13
 * USE OF THIS SOFTWARE.
14
 *
15
 * So that all may benefit from your experience, please report  any  problems
16
 * or  suggestions about this software to the 29K Technical Support Center at
17
 * 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131  in  the  UK,  or
18
 * 0031-11-1129 in Japan, toll free.  The direct dial number is 512-462-4118.
19
 *
20
 * Advanced Micro Devices, Inc.
21
 * 29K Support Products
22
 * Mail Stop 573
23
 * 5900 E. Ben White Blvd.
24
 * Austin, TX 78741
25
 * 800-292-9263
26
 *****************************************************************************
27
 *      Engineer: Srini Subramanian.
28
 *****************************************************************************
29
 * This header file defines the error codes, service numbers for the HIF
30
 * kernel.
31
 *****************************************************************************
32
 */
33
 
34
#ifndef _HIF_H_INCLUDED_
35
#define _HIF_H_INCLUDED_
36
 
37
#define MAX_ENV               256
38
#define MAX_FILENAME          256
39
 
40
#define MAX_OPEN_FILES         20
41
 
42
#define HIF_SUCCESS    0x80000000
43
 
44
/*
45
** HIF services
46
*/
47
 
48
#define HIF_exit            1
49
#define HIF_open           17
50
#define HIF_close          18
51
#define HIF_read           19
52
#define HIF_write          20
53
#define HIF_lseek          21
54
#define HIF_remove         22
55
#define HIF_rename         23
56
#define HIF_ioctl          24
57
#define HIF_iowait         25
58
#define HIF_iostat         26
59
#define HIF_tmpnam         33
60
#define HIF_time           49
61
#define HIF_getenv         65
62
#define HIF_gettz          66
63
 
64
 
65
/*
66
** HIF Error codes
67
*/
68
 
69
#define HIF_EPERM               1
70
#define HIF_ENOENT              2
71
#define HIF_ESRCH               3
72
#define HIF_EINTR               4
73
#define HIF_EIO                 5
74
#define HIF_ENXIO               6
75
#define HIF_E2BIG               7
76
#define HIF_ENOEXEC             8
77
#define HIF_EBADF               9
78
#define HIF_ECHILD             10
79
#define HIF_EAGAIN             11
80
#define HIF_ENOMEM             12
81
#define HIF_EACCESS            13
82
#define HIF_EFAULT             14
83
#define HIF_ENOTBLK            15
84
#define HIF_EBUSY              16
85
#define HIF_EEXIST             17
86
#define HIF_EXDEV              18
87
#define HIF_ENODEV             19
88
#define HIF_ENOTDIR            20
89
#define HIF_EISDIR             21
90
#define HIF_EINVAL             22
91
#define HIF_ENFILE             23
92
#define HIF_EMFILE             24
93
#define HIF_ENOTTY             25
94
#define HIF_ETXTBSY            26
95
#define HIF_EFBIG              27
96
#define HIF_ENOSPC             28
97
#define HIF_ESPIPE             29
98
#define HIF_EROFS              30
99
#define HIF_EMLINK             31
100
#define HIF_EPIPE              32
101
#define HIF_EDOM               33
102
#define HIF_ERANGE             34
103
#define HIF_EWOULDBLOCK        35
104
#define HIF_EINPROGRESS        36
105
#define HIF_EALREADY           37
106
#define HIF_ENOTSOCK           38
107
#define HIF_EDESTADDRREQ       39
108
#define HIF_EMSGSIZE           40
109
#define HIF_EPROTOTYPE         41
110
#define HIF_ENOPROTOOPT        42
111
#define HIF_EPROTONOSUPPORT    43
112
#define HIF_ESOCKTNOSUPPORT    44
113
#define HIF_EOPNOTSUPP         45
114
#define HIF_EPFNOSUPPORT       46
115
#define HIF_EAFNOSUPPORT       47
116
#define HIF_EADDRINUSE         48
117
#define HIF_EADDRNOTAVAIL      49
118
#define HIF_ENETDOWN           50
119
#define HIF_ENETUNREACH        51
120
#define HIF_ENETRESET          52
121
#define HIF_ECONNABORTED       53
122
#define HIF_ECONNRESET         54
123
#define HIF_ENOBUFS            55
124
#define HIF_EISCONN            56
125
#define HIF_ENOTCONN           57
126
#define HIF_ESHUTDOWN          58
127
#define HIF_ETOOMANYREFS       59
128
#define HIF_ETIMEDOUT          60
129
#define HIF_ECONNREFUSED       61
130
#define HIF_ELOOP              62
131
#define HIF_ENAMETOOLONG       63
132
#define HIF_EHOSTDOWN          64
133
#define HIF_EHOSTUNREACH       65
134
#define HIF_ENOTEMPTY          66
135
#define HIF_EPROCLIM           67
136
#define HIF_EUSERS             68
137
#define HIF_EDQUOT             69
138
#define HIF_EVDBAD             70
139
#define HIF_EHIFNOTAVAIL     1001
140
#define HIF_EHIFUNDEF        1002
141
 
142
/*
143
** Open service mode parameters
144
*/
145
 
146
#define HIF_RDONLY     0x0000
147
#define HIF_WRONLY     0x0001
148
#define HIF_RDWR       0x0002
149
#define HIF_APPEND     0x0008
150
#define HIF_NDELAY     0x0010
151
#define HIF_CREAT      0x0200
152
#define HIF_TRUNC      0x0400
153
#define HIF_EXCL       0x0800
154
#define HIF_FORM       0x4000
155
 
156
/*
157
** iostat definitions
158
*/
159
 
160
#define ISATTY         0x0001
161
#define RDREADY        0x0002
162
 
163
 
164
/*
165
** Fix differences between BSD UNIX and MS-DOS in <fcntl.h>
166
*/
167
 
168
#if MSDOS
169
 
170
#define O_NDELAY       0x0000
171
 
172
#else
173
 
174
#define O_BINARY       0x0000
175
#define O_TEXT         0x0000
176
 
177
#endif
178
 
179
 
180
#endif /* _HIF_H_INCLUDED_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.