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