]>
Commit | Line | Data |
---|---|---|
e7d41e18 | 1 | /** @file\r |
2 | Root include file for Shell Package modules that utilize the SHELL_RETURN type\r | |
3 | \r | |
c6377bfa | 4 | Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r |
1e6e84c7 | 5 | This program and the accompanying materials\r |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
e7d41e18 | 9 | \r |
1e6e84c7 | 10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
e7d41e18 | 12 | \r |
13 | **/\r | |
14 | \r | |
a1d4bfcc | 15 | #ifndef _SHELL_BASE_\r |
16 | #define _SHELL_BASE_\r | |
125c2cf4 | 17 | \r |
a405b86d | 18 | typedef VOID *SHELL_FILE_HANDLE;\r |
19 | \r | |
e7d41e18 | 20 | typedef enum {\r |
21 | ///\r | |
22 | /// The operation completed successfully.\r | |
23 | ///\r | |
24 | SHELL_SUCCESS = 0,\r | |
25 | \r | |
26 | ///\r | |
27 | /// The image failed to load.\r | |
28 | ///\r | |
29 | SHELL_LOAD_ERROR = 1,\r | |
30 | \r | |
31 | ///\r | |
32 | /// The parameter was incorrect.\r | |
33 | ///\r | |
34 | SHELL_INVALID_PARAMETER = 2,\r | |
35 | \r | |
36 | ///\r | |
37 | /// The operation is not supported.\r | |
38 | ///\r | |
39 | SHELL_UNSUPPORTED = 3,\r | |
40 | \r | |
41 | ///\r | |
42 | /// The buffer was not the proper size for the request.\r | |
43 | ///\r | |
44 | SHELL_BAD_BUFFER_SIZE = 4,\r | |
45 | \r | |
46 | ///\r | |
47 | /// The buffer was not large enough to hold the requested data.\r | |
48 | /// The required buffer size is returned in the appropriate\r | |
49 | /// parameter when this error occurs.\r | |
50 | ///\r | |
51 | SHELL_BUFFER_TOO_SMALL = 5,\r | |
52 | \r | |
53 | ///\r | |
54 | /// There is no data pending upon return.\r | |
55 | ///\r | |
56 | SHELL_NOT_READY = 6,\r | |
57 | \r | |
58 | ///\r | |
59 | /// The physical device reported an error while attempting the\r | |
60 | /// operation.\r | |
61 | ///\r | |
62 | SHELL_DEVICE_ERROR = 7,\r | |
63 | \r | |
64 | ///\r | |
a405b86d | 65 | /// The device cannot be written to.\r |
e7d41e18 | 66 | ///\r |
67 | SHELL_WRITE_PROTECTED = 8,\r | |
68 | \r | |
69 | ///\r | |
70 | /// The resource has run out.\r | |
71 | ///\r | |
72 | SHELL_OUT_OF_RESOURCES = 9,\r | |
73 | \r | |
74 | ///\r | |
1e6e84c7 | 75 | /// An inconsistency was detected on the file system causing the\r |
e7d41e18 | 76 | /// operation to fail.\r |
77 | ///\r | |
78 | SHELL_VOLUME_CORRUPTED = 10,\r | |
79 | \r | |
80 | ///\r | |
81 | /// There is no more space on the file system.\r | |
82 | ///\r | |
83 | SHELL_VOLUME_FULL = 11,\r | |
84 | \r | |
85 | ///\r | |
1e6e84c7 | 86 | /// The device does not contain any medium to perform the\r |
e7d41e18 | 87 | /// operation.\r |
88 | ///\r | |
89 | SHELL_NO_MEDIA = 12,\r | |
90 | \r | |
91 | ///\r | |
92 | /// The medium in the device has changed since the last\r | |
93 | /// access.\r | |
94 | ///\r | |
95 | SHELL_MEDIA_CHANGED = 13,\r | |
96 | \r | |
97 | ///\r | |
98 | /// The item was not found.\r | |
99 | ///\r | |
100 | SHELL_NOT_FOUND = 14,\r | |
101 | \r | |
102 | ///\r | |
103 | /// Access was denied.\r | |
104 | ///\r | |
105 | SHELL_ACCESS_DENIED = 15,\r | |
106 | \r | |
107 | // note the skipping of 16 and 17\r | |
108 | \r | |
109 | ///\r | |
110 | /// A timeout time expired.\r | |
111 | ///\r | |
112 | SHELL_TIMEOUT = 18,\r | |
113 | \r | |
114 | ///\r | |
115 | /// The protocol has not been started.\r | |
116 | ///\r | |
117 | SHELL_NOT_STARTED = 19,\r | |
118 | \r | |
119 | ///\r | |
120 | /// The protocol has already been started.\r | |
121 | ///\r | |
122 | SHELL_ALREADY_STARTED = 20,\r | |
123 | \r | |
124 | ///\r | |
125 | /// The operation was aborted.\r | |
126 | ///\r | |
127 | SHELL_ABORTED = 21,\r | |
128 | \r | |
129 | // note the skipping of 22, 23, and 24\r | |
130 | \r | |
131 | ///\r | |
132 | /// A function encountered an internal version that was\r | |
133 | /// incompatible with a version requested by the caller.\r | |
134 | ///\r | |
135 | SHELL_INCOMPATIBLE_VERSION = 25,\r | |
136 | \r | |
137 | ///\r | |
138 | /// The function was not performed due to a security violation.\r | |
139 | ///\r | |
140 | SHELL_SECURITY_VIOLATION = 26,\r | |
141 | \r | |
142 | ///\r | |
ef34de25 | 143 | /// The function was performed and resulted in an unequal\r |
144 | /// comparison..\r | |
e7d41e18 | 145 | ///\r |
ef34de25 | 146 | SHELL_NOT_EQUAL = 27\r |
e7d41e18 | 147 | }SHELL_STATUS;\r |
148 | \r | |
28981267 | 149 | #endif //__SHELL_BASE_\r |